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

New Post: Using offline OpenStreetMap with MapWinGis in a C# Application

$
0
0
Hi,
at first thanks for the response.

As you can see in the top i try 3 different ways to get the tiles.

first case:

bool tmp = providers.Add(providerId, "Custom TMS provider", "http://localhost/cgi-bin/mapserv.exe?map=D:/ms4w/apps/osm/basemaps/osm-google.map&mode=tile&layers=all&tilemode=gmap&tile={x}+{y}+{zoom}.png", tkTileProjection.SphericalMercator, 0, 17);
here i try to get the tiles via the mapserv.exe running on my localhost Apache server. (doesnt work)

second case:

bool tmp = providers.Add(providerId, "Custom TMS provider", "http://tile.openstreetmap.org/{zoom}/{x}/{y}.png", tkTileProjection.SphericalMercator, 0, 17);
here i try to get the tiles via openstreetmap.org directly from the internet. (works fine)

And in the 3rd case:

bool tmp = providers.Add(providerId, "Custom TMS provider", "file:///d:/ms4w/Apache/htdocs/maps/{zoom}/{x}/{y}.png", tkTileProjection.SphericalMercator, 0, 17);
here i try to get the tiles from the localhost Apache via file access. (doesnt work)

Viewing all articles
Browse latest Browse all 2341

Trending Articles



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