How can I show the offline mapsforge openstreetmap in HTML5?
The mapsforge files are *.map files. Is there an javascript library to access the mapsforge tiles?
How can I show the offline mapsforge openstreetmap in HTML5?
The mapsforge files are *.map files. Is there an javascript library to access the mapsforge tiles?
Mapsforge only supports Java (on Desktop and Android).
And unofficially for iOs written by medvedNick.
I have never seen a javascript implementation... I guess up till now for most people classical osm tiles are sufficient for html.
If this is still relevant:
Provided that you have a working implementation of your offline mapsforge map (on an Android device or a Desktop), you can make that implementation return the map tiles you need into a "mapcache" folder, for example, by adding the following line of code to your Mapview
.
TileCache tileCache = AndroidUtil.createTileCache(activity, "mapcache", mapView.getModel().displayModel.getTileSize(), this.getScreenRatio(), mapView.getModel().frameBufferModel.getOverdrawFactor());
You can then use those map tiles in Leaflet or OpenLayers.