Exemple #1
0
 private static BingMapsOverlay AddBingMapOverlayToMap(GisEditorWpfMap map, BingMapsConfigWindow configWindow, BingMapsOverlay bingOverlay)
 {
     bingOverlay                      = new BingMapsOverlay(configWindow.BingMapsKey, (Wpf.BingMapsMapType)configWindow.BingMapsStyle);//new BingMapsOverlay(configWindow.BingMapsKey);
     bingOverlay.Logo                 = null;
     bingOverlay.Name                 = GisEditor.LanguageManager.GetStringResource("BingMapsConfigWindowTitle");
     bingOverlay.TileType             = TileType.HybridTile;
     bingOverlay.DrawingExceptionMode = DrawingExceptionMode.DrawException;
     bingOverlay.DrawingException    += new EventHandler <DrawingExceptionTileOverlayEventArgs>(BingOverlay_DrawingException);
     bingOverlay.RefreshCache();
     BaseMapsHelper.AddOverlayInGoogleProjection(bingOverlay, map);
     return(bingOverlay);
 }
Exemple #2
0
        public static OpenStreetMapOverlay AddOpenStreetMapOverlay(GisEditorWpfMap map)
        {
            OpenStreetMapOverlay osmOverlay = new OpenStreetMapOverlay();

            osmOverlay.TileType             = TileType.HybridTile;
            osmOverlay.Name                 = "OpenStreetMap";
            osmOverlay.DrawingExceptionMode = DrawingExceptionMode.DrawException;
            osmOverlay.DrawingException    += new EventHandler <DrawingExceptionTileOverlayEventArgs>(OsmOverlay_DrawingException);
            osmOverlay.RefreshCache();
            BaseMapsHelper.AddOverlayInGoogleProjection(osmOverlay, map);
            return(osmOverlay);
        }