Example #1
0
        public IInfoWindow ShowInfoWindow(string contentString, IMarker marker, InfoWindowOptions infoWindowOptions, bool hideOthers = false)
        {
            string jsonInfoWindowOptions = JsonConvert.SerializeObject(infoWindowOptions);
            int    infoWindowId          = (int)_browser.InvokeScript("showInfoWindow", contentString, null, marker.MarkerId, jsonInfoWindowOptions, hideOthers, false);

            _infoWindows[infoWindowId] = new InfoWindow(_browser, infoWindowId);
            return(_infoWindows[infoWindowId]);
        }
Example #2
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)_browser.InvokeScript("showInfoWindow", contentString, jsonLocation, null, jsonInfoWindowOptions, hideOthers, false);

            _infoWindows[infoWindowId] = new InfoWindow(_browser, infoWindowId);
            return(_infoWindows[infoWindowId]);
        }