Beispiel #1
0
        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];
        }
Beispiel #2
0
 public void UpdateMapOptions()
 {
     if (_documentLoaded)
     {
         _browser.InvokeScript("updateMapOptions");
     }
 }
Beispiel #3
0
 public void Close()
 {
     _host.InvokeScript("closeInfoWindow", InfoWindowID);
 }
Beispiel #4
0
 public void PlayAnimation(MarkerAnimation?animation)
 {
     _host.InvokeScript("setMarkerAnimation", MarkerId, animation.HasValue ? (int)animation : 0);
 }
Beispiel #5
0
        public List <GeographicLocation> DecodePolyline(EncodedPolyline polyline)
        {
            string jsonLocations = (string)_host.InvokeScript("decodePathString", polyline.EncodedPoints);

            return(JsonConvert.DeserializeObject <List <GeographicLocation> >(jsonLocations));
        }