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

Andreas Hocevar ahocevar at opengeo.org
Wed Aug 3 06:33:41 EDT 2011


Hi Noli,

currently this is not possible, but getting mbtiles / UTF Grid support into OpenLayers would definitely be a big win. Contributions (funding or patches) highly appreciated.

Andreas.

On Aug 3, 2011, at 11:53 , Noli Sicad wrote:

> 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.
>> 
>> 
> _______________________________________________
> 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