[OSM-talk] mapnik and openlayers?
Lukasz Szybalski
szybalski at gmail.com
Wed Oct 22 15:36:29 BST 2008
On Wed, Oct 22, 2008 at 9:23 AM, Ed Loach <ed at loach.me.uk> wrote:
> I realise now that one of those two examples uses an offline tile
> source - it's interesting to see how much the area around here has
> changed, but not much use for you.
>
> Hopefully this one is more use?
> http://www.openlayers.org/dev/examples/sundials-osm.html
>
> Ed
>
>> -----Original Message-----
>> From: talk-bounces at openstreetmap.org [mailto:talk-
>> bounces at openstreetmap.org] On Behalf Of Lukasz Szybalski
>> Sent: 22 October 2008 14:51
>> To: Grant Slater
>> Cc: OSM Talk
>> Subject: Re: [OSM-talk] mapnik and openlayers?
>>
>> On Wed, Oct 22, 2008 at 8:29 AM, Grant Slater
>> <openstreetmap at firefishy.com> wrote:
>> > Lukasz Szybalski wrote:
>> >>
>> >> So its safe to assume that TMS is what mapnik provides?
>> (only) and if
>> >> I want WMS I would have to create that service on my server?
>> >>
>> >
>> > Your server yes. OSM's tile servers do TMS only.
>>
>> So now what is the layer name for this url? I know the image is
>> png:
>>
>> http://www.openlayers.org/dev/examples/tms.html
>>
>> I replaced the url with "http://tile.openstreetmap.org/" what
>> is the layer_name?
>>
This is the code to get the maps but it doesn't have a TMS layer name
????????????????????????????
var mapnik = new OpenLayers.Layer.TMS(
34 "OpenStreetMap (Mapnik)",
35 "http://tile.openstreetmap.org/",
36 {
37 type: 'png', getURL: osm_getTileURL,
38 displayOutsideMaxExtent: true,
39 attribution: '<a
href="http://www.openstreetmap.org/">OpenStreetMap</a>'
40 }
Anybody?
http://www.openlayers.org/dev/examples/tms.html
Thanks,
Lucas
More information about the talk
mailing list