[OpenLayers-Users] What is the layer name for mapnik?
Christopher Schmidt
crschmidt at metacarta.com
Wed Oct 22 10:46:44 EDT 2008
On Wed, Oct 22, 2008 at 09:40:59AM -0500, Lukasz Szybalski wrote:
> Hello,
> Actually I found out that mapnik aka tile.openstreetmaps.org uses only TMS.
OpenStreetMap uses 'flipped TMS', as described in
http://trac.openlayers.org/wiki/UsingCustomTiles
> Trying to run the TMS:
> http://www.openlayers.org/dev/examples/tms.html
> url of : http://tile.openstreetmap.org/
> image: png
> layer_name???????? what is the layer name for mapnik.....
Since OSM does not use TMS, but uses a custom getURL function, ther eis
no layer name.
>
> var mapnik = new OpenLayers.Layer.TMS(
> 82 "OpenStreetMap (Mapnik)",
> 83 "http://tile.openstreetmap.org/",
> 84 {
> 85 type: 'png', getURL: osm_getTileURL,
> 86 displayOutsideMaxExtent: true,
> 87 attribution: '<a
> href="http://www.openstreetmap.org/">OpenStreetMap</a>'
> 88 }
>
>
> Was anybody able to run this url with openstreetmaps TMS service?
Yes. It's in the examples, after all.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list