Hi Alessandro,

I'm also new to the list, but at least this response will get you some 
more attention ;-)

As stated in the docs, OpenLayers.Layer.getDataExtent() is to be 
implemented by the subclasses of layer.

For layers.WMS this is not the case 
(http://dev.openlayers.org/docs/files/OpenLayers/Layer/WMS-js.html) but 
e.g for Layers.Markers 
(http://dev.openlayers.org/docs/files/OpenLayers/Layer/Markers-js.html#OpenLayers.Layer.Markers.getDataExtent)
 
the method is defined.

I hope this helped a little bit, but keep in mind that this email is 
coming from a novice.

See you over at mapstorer...
... Marc


Alessandro Pasotti schrieb:
> Forgive me if I push on this, even an RTFM or a "forget it" would be 
> appreciated before I start implementing this by myself.
>
>
>
> ----------  Messaggio inoltrato  ----------
>
> Subject: [OpenLayers-Users] WMS layer getDataExtent?
> Date: martedì 23 ottobre 2007
> From: Alessandro Pasotti <[EMAIL PROTECTED]>
> To: [email protected]
>
> Hi all,
>
> I'm new to this list and to ol.
>
> I'm playing with a WMS layer and I'm trying to auto-center the map depending 
> on the layer extent.
>
> Is there a way to do this automatically? 
>
> I mean extracting layer extent from a getCapabilities request or sometinhg 
> the 
> like.
>
> I tried getDataExtent() on the layer, but it does'nt seem to work but I guess 
>  
> I misunderstood some important points.
>
>
>   

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to