March-hare / MarchHare-Mobile

Other
4 stars 0 forks source link

Integrate local tile storage with Openlayers #2

Open evoltech opened 12 years ago

evoltech commented 12 years ago

Supposedly it is possible to use openlayers with a local tile store in a HTML5 scenario. From valikov@gmx.net on the OpenLayers-Users mailing list:

We are using "File API: Directories and System" for this.

As long as raster image catalog respects the directory structure of the layer type (like, ${z}/${x}/${y}.png for XYZ layers), OpenLayers has no problem showing the "offline" raster data in the map.

BTW, we use PhoneGap to make it truly multi-platform, but it also works in compatible browsers (Chrome, Safari) out of the box without PhoneGap.