Re: [OpenLayers-Users] Zoom to WMC extent

2008-08-15 Thread jvanulde
Hi Bart, I tried that but I get an null error on format.context.bounds. Bart van den Eijnden wrote: 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

[OpenLayers-Users] Zoom to WMC extent

2008-08-13 Thread jvanulde
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

Re: [OpenLayers-Users] Zoom to WMC extent

2008-08-13 Thread bartvde
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