Example #1
0
 private void toolStripMenuItem5_Click(object sender, EventArgs e)
 {
     MView.DrawTilesXYZ         = !MView.DrawTilesXYZ;
     toolStripMenuItem5.Checked = MView.DrawTilesXYZ;
     MView.ReloadMap();
 }
Example #2
0
        private void iStorages_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (iStorages.SelectedIndex == 0)
            {
                MView.ImageSourceService = NaviMapNet.NaviMapNetViewer.MapServices.Custom_UserDefined;
                MView.ImageSourceType    = NaviMapNet.NaviMapNetViewer.ImageSourceTypes.tiles;
                MView.ImageSourceUrl     = "";
            }
            ;
            if (iStorages.SelectedIndex == 1)
            {
                MView.ImageSourceService = NaviMapNet.NaviMapNetViewer.MapServices.OSM_Mapnik;
            }
            if (iStorages.SelectedIndex == 2)
            {
                MView.ImageSourceService = NaviMapNet.NaviMapNetViewer.MapServices.OSM_Openvkarte;
            }
            if (iStorages.SelectedIndex == 3)
            {
                MView.ImageSourceService = NaviMapNet.NaviMapNetViewer.MapServices.OSM_Wikimapia;
            }
            if (iStorages.SelectedIndex > 3)
            {
                MView.ImageSourceService    = NaviMapNet.NaviMapNetViewer.MapServices.Custom_UserDefined;
                MView.ImageSourceType       = NaviMapNet.NaviMapNetViewer.ImageSourceTypes.tiles;
                MView.ImageSourceProjection = NaviMapNet.NaviMapNetViewer.ImageSourceProjections.EPSG3857;
            }
            ;
            if (iStorages.SelectedIndex == 4)
            {
                MView.ImageSourceUrl = "http://a.tile.opentopomap.org/{z}/{x}/{y}.png";
            }
            if (iStorages.SelectedIndex == 5)
            {
                MView.ImageSourceUrl = "http://tiles.maps.sputnik.ru/{z}/{x}/{y}.png";
            }
            if (iStorages.SelectedIndex == 6)
            {
                MView.ImageSourceUrl = "http://tile.digimap.ru/rumap/{z}/{x}/{y}.png";
            }
            if (iStorages.SelectedIndex == 7)
            {
                MView.ImageSourceUrl = "https://tile1.maps.2gis.com/tiles?x={x}&y={y}&z={z}&v=1.1";
            }
            if (iStorages.SelectedIndex == 8)
            {
                MView.ImageSourceUrl = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}.png";
            }
            if (iStorages.SelectedIndex == 9)
            {
                MView.ImageSourceUrl = "http://maptile.mapplayer1.maps.svc.ovi.com/maptiler/maptile/newest/normal.day/{z}/{x}/{y}/256/png8";
            }
            if (iStorages.SelectedIndex == 10)
            {
                MView.ImageSourceUrl = "http://1.maptile.lbs.ovi.com/maptiler/v2/maptile/newest/normal.day/{z}/{x}/{y}/256/png8?lg=RUS&token=fee2f2a877fd4a429f17207a57658582&appId=nokiaMaps";
            }
            if (iStorages.SelectedIndex == 11)
            {
                MView.ImageSourceUrl = "http://1.maptile.lbs.ovi.com/maptiler/v2/maptile/newest/satellite.day/{z}/{x}/{y}/256/png8?lg=RUS&token=fee2f2a877fd4a429f17207a57658582&appId=nokiaMaps";
            }
            if (iStorages.SelectedIndex == 12)
            {
                MView.ImageSourceUrl = "http://1.maptile.lbs.ovi.com/maptiler/v2/maptile/newest/hybrid.day/{z}/{x}/{y}/256/png8?lg=RUS&token=fee2f2a877fd4a429f17207a57658582&appId=nokiaMaps";
            }
            if (iStorages.SelectedIndex == 13)
            {
                MView.ImageSourceUrl = "http://1.maptile.lbs.ovi.com/maptiler/v2/maptile/newest/terrain.day/{z}/{x}/{y}/256/png8?lg=RUS&token=fee2f2a877fd4a429f17207a57658582&appId=nokiaMaps";
            }
            if (iStorages.SelectedIndex == 14)
            {
                MView.ImageSourceUrl = "http://maps.kosmosnimki.ru/TileService.ashx?Request=gettile&LayerName=04C9E7CE82C34172910ACDBF8F1DF49A&apikey=7BDJ6RRTHH&crs=epsg:3857&z={z}&x={x}&y={y}";
            }
            if (iStorages.SelectedIndex == 15)
            {
                MView.ImageSourceUrl = "http://maps.kosmosnimki.ru/TileService.ashx?Request=gettile&LayerName=04C9E7CE82C34172910ACDBF8F1DF49A&apikey=7BDJ6RRTHH&crs=epsg:3857&z={z}&x={x}&y={y}";
            }
            if (iStorages.SelectedIndex == 16)
            {
                MView.ImageSourceUrl = "http://irs.gis-lab.info/?layers=irs&request=GetTile&z={z}&x={x}&y={y}";
            }
            if (iStorages.SelectedIndex == 17)
            {
                MView.ImageSourceUrl = "http://mts0.google.com/vt/lyrs=m@177000000&hl=ru&src=app&x={x}&s=&y={y}&z={z}&s=Ga";
            }
            if (iStorages.SelectedIndex == 18)
            {
                MView.ImageSourceUrl = "http://mts0.google.com/vt/lyrs=h@177000000&hl=ru&src=app&x={x}&s=&y={y}&z={z}&s=G";
            }
            if (iStorages.SelectedIndex == 20)
            {
                MView.ImageSourceUrl = UserDefindedUrl;
            }

            MView.ReloadMap();
        }
Example #3
0
 private void toolStripMenuItem4_Click(object sender, EventArgs e)
 {
     MView.DrawTilesBorder      = !MView.DrawTilesBorder;
     toolStripMenuItem4.Checked = MView.DrawTilesBorder;
     MView.ReloadMap();
 }