Ejemplo n.º 1
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.º 2
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);
 }