AW: [OpenLayers-Users] WMS-C/TMS and WMTS

Noli Sicad nsicad at gmail.com
Wed Aug 3 05:53:27 EDT 2011


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 <ahocevar at opengeo.org> 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
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
>


More information about the Users mailing list