[OpenLayers-Users] Zoom on GML extent

2010-01-19 Thread christophe triquet
2010/1/18 christophe triquet > > 2010/1/18 Christopher Schmidt > > On Mon, Jan 18, 2010 at 01:32:24PM +0100, christophe triquet wrote: >> > Hi, >> > >> > I'm adding a GML file in my map with the object OpenLayers.Layer.GML. >> I'm >> > trying to zoom to this layer extent at map's loading. I can

Re: [OpenLayers-Users] Zoom on GML extent

2010-01-18 Thread Christopher Schmidt
On Mon, Jan 18, 2010 at 01:32:24PM +0100, christophe triquet wrote: > Hi, > > I'm adding a GML file in my map with the object OpenLayers.Layer.GML. I'm > trying to zoom to this layer extent at map's loading. I can do this if I > know de bounding box coordinates with a postgis query. > > My PHP co

Re: [OpenLayers-Users] Zoom on GML extent

2010-01-18 Thread Andreas Hocevar
christophe triquet wrote: > Hi, > > I'm adding a GML file in my map with the object OpenLayers.Layer.GML. > I'm trying to zoom to this layer extent at map's loading. I can do > this if I know de bounding box coordinates with a postgis query. > > Is it possible the get the gml extent to be able to

[OpenLayers-Users] Zoom on GML extent

2010-01-18 Thread christophe triquet
Hi, I'm adding a GML file in my map with the object OpenLayers.Layer.GML. I'm trying to zoom to this layer extent at map's loading. I can do this if I know de bounding box coordinates with a postgis query. My PHP code : var bounds = new OpenLayers.Bounds(); bounds.extend((new Ope