[MapProxy] MapProxy OpenLayers example

Oliver Tonnhofer olt at omniscale.de
Tue Aug 31 06:57:46 EDT 2010


On 31.08.2010, at 12:27, Sebastian E. Ovide wrote:
> is anybody using OpenLayers ?
> 
> I'm trying to usit with
> 
>             var ca_wild_fire = new OpenLayers.Layer.WMS( "CA Wild Fire",

You need to use Layer.TMS.

>                 "http://mymachine:8123/tms/1.0.0",
>                 {    layers: 'ca_wild_fire'
>                 },

and if you use an SRS other than EPSG:900913, then you need to add that to the layername:
e.g. ca_wild_fire_EPSG4326

See http://osm.omniscale.de/static/demo_setup.js for an example. (You can ignore the OpenLayers.Control stuff, it is for our custom layer switcher.)


Regards,
Oliver

-- 
Oliver Tonnhofer <olt at omniscale.de>
Omniscale - Dominik Helle, Oliver Tonnhofer GbR
Nadorster Str. 60, 26123 Oldenburg
Tel: +49(0)441/9392774-2 (Fax: 9)



More information about the MapProxy mailing list