Ejemplo n.º 1
0
        /// <summary>
        /// Initializes the map to a center on a set of coordinates.
        /// </summary>
        /// <param name="latitude"></param>
        /// <param name="longitude"></param>
        /// <param name="mapStyle"></param>
        /// <param name="zoomLevel"></param>
        public void LoadMap(float latitude, float longitude, string reserved, string mapStyle, int zoomLevel, VEBirdseyeScene scene)
        {
            MapActiveObject = new MapActiveObject(new VELatLong(latitude, longitude, reserved), mapStyle, zoomLevel, scene);

            //string url = MapUrlHelper.CreateMapUrl(LocalMapUrl, latitude, longitude, mapStyle, zoomLevel);
            string url = LocalMapUrl;

            url = new Uri(url).ToString();
            explorerBrowserControl.Navigate(url);
        }
Ejemplo n.º 2
0
        private void explorerBrowserControl_DocumentComplete(object sender, BrowserDocumentEventArgs e)
        {
            IHTMLDocument2 document = (IHTMLDocument2)explorerBrowserControl.Document;

            // turn off borders
            (document.body as IHTMLElement).style.borderStyle = "none";

            //MapActiveObject.ClearEvents();
            if (_address != null)
            {
                MapActiveObject.FindLocation(_address);
                _address = null;
            }

            MapActiveObject.AttachToMapDocument(document);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes the map to a center on a set of coordinates.
        /// </summary>
        /// <param name="latitude"></param>
        /// <param name="longitude"></param>
        /// <param name="mapStyle"></param>
        /// <param name="zoomLevel"></param>
        public void LoadMap(float latitude, float longitude, string reserved, string mapStyle, int zoomLevel, VEBirdseyeScene scene)
        {
            MapActiveObject = new MapActiveObject(new VELatLong(latitude, longitude, reserved), mapStyle, zoomLevel, scene);

            //string url = MapUrlHelper.CreateMapUrl(LocalMapUrl, latitude, longitude, mapStyle, zoomLevel);
            string url = LocalMapUrl;
            url = new Uri(url).ToString();
            explorerBrowserControl.Navigate(url);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes the map to a center on a set of coordinates.
 /// </summary>
 /// <param name="address"></param>
 public void LoadMap(string address)
 {
     MapActiveObject.FindLocation(address);
 }