public IInfoWindow ShowInfoWindow(string contentString, GeographicLocation location, InfoWindowOptions infoWindowOptions, bool hideOthers = false) { string jsonLocation = JsonConvert.SerializeObject(location); string jsonInfoWindowOptions = JsonConvert.SerializeObject(infoWindowOptions); int infoWindowId = (int)_host.InvokeScript("showInfoWindow", contentString, jsonLocation, null, jsonInfoWindowOptions, hideOthers, true); _infoWindows[infoWindowId] = new InfoWindow(_host, infoWindowId); return _infoWindows[infoWindowId]; }
public void UpdateMapOptions() { if (_documentLoaded) { _browser.InvokeScript("updateMapOptions"); } }
public void Close() { _host.InvokeScript("closeInfoWindow", InfoWindowID); }
public void PlayAnimation(MarkerAnimation?animation) { _host.InvokeScript("setMarkerAnimation", MarkerId, animation.HasValue ? (int)animation : 0); }
public List <GeographicLocation> DecodePolyline(EncodedPolyline polyline) { string jsonLocations = (string)_host.InvokeScript("decodePathString", polyline.EncodedPoints); return(JsonConvert.DeserializeObject <List <GeographicLocation> >(jsonLocations)); }