[OpenLayers-Users] Zoom to WMC extent
bartvde at osgis.nl
bartvde at osgis.nl
Thu Aug 14 01:59:31 EDT 2008
Hi Joost,
it should be as simple as:
map.zoomToExtent(format.context.bounds);
Best regards,
Bart
>
> I thought this would be simple and probably is, but the solution is
> evading
> me. I have loaded a WMC into a map but the image is centered in the map
> window with lots of white space. I would like the map to zoom to the
> context extent. Any ideas on how this can be done? I have tried setting
> the map option maxExtent to context.bounds but no dice.
>
> Cheers and thanks!
> --
> View this message in context:
> http://www.nabble.com/Zoom-to-WMC-extent-tp18974245p18974245.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
More information about the Users
mailing list