Quantcast
Channel: MapWinGIS ActiveX Map and GIS Component
Viewing all articles
Browse latest Browse all 2341

New Post: Custom Tile Provider

$
0
0
Hi,
I used PrefetchToFolder() function to get tiles from providers and save then to a folder. this section work fine. then I run a local web with a web server on my computer. the address of my local provider is
http://localhost/myMap
but when I want to use this custom provider for using this provider, not working. I use these codes:
TileProviders providers = axMap1.Tiles.Providers;
int providerId = (int)tkTileProvider.ProviderCustom + 1;
providers.Add(providerId, "myProvider", "http://localhost/myMap/{zoom}/{x}/{y}.png", tkTileProjection.SphericalMercator, 0, 18);
axMap1.Tiles.ProviderId = providerId;
I test the address for access to tiles and it works but the custom tile provider for my axmap not working. anybody can help to me?

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>