I wonder if we can make this XYZ works with mbTiles. https://github.com/mapbox/mbtiles-spec/issues/14
Noli On 8/3/11, Andreas Hocevar <[email protected]> wrote: > Yes you can. Let's say you have a typical xyz directory structure, like the > Mapnik OSM tiles. Then you could create a custom XYZ layer: > > new OpenLayers.Layer.XYZ({ > name: "My tiles", > url: "file:///path/to/my/tiles/${z}/${x}/${y}.png" > }); > > Andreas. > > On Aug 3, 2011, at 11:32 , Noli Sicad wrote: > >>> it is enough to have the tiles in a folder structure on the disk. If the >>> disk is on your local machine, you can even use file urls (file://). If >>> it's >>> on a server, the directory structure should be served by a plain HTTP >>> server >>> (e.g. Apache). >> >> >>> If the disk is on your local machine, you can even use file urls >>> (file://). >> >> Just to clarify this statement above, can use tile files without http >> or tile sever in OpenLayers? >> >> Any OL example for this tile files without the server? >> >> Thanks. >> >> Noli >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > > _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
