Aveg Patekar
Aveg Patekar

Reputation: 71

How to use OSM for offline map for application in C#?

I want to develop an application in C# which is having one offline map and I want to plot some markers on that. Is it possible to to use OSM for offline map with C# or ASP.NET? If it is possible, then how?

Upvotes: 1

Views: 8699

Answers (1)

Habib
Habib

Reputation: 223402

You can download the OSM data using http://download.geofabrik.de/index.html. One of the most common format used by Applications is Shapefile which is ESRI standard. You can download the data in Shapefile Format. From there you have various avenues of using it in the .Net application. SharpMap is one of the open source project which supports shapefiles. That will be an offline map application, since your application will hold the data. DotSpatial is anohter open source project, which you can look into.

For ASP.Net application and for it to be an offline map, you have to devise some kind of caching approach. You would also need your own server to rendering map tiles. So that the client can have the map data at his/her end. Instead of having your own server I would suggest you to look into OSM Map API and use that in your web application.

Upvotes: 1

Related Questions