[OpenLayers-Users] Zoom Level and Base Layer problem

2009-08-03 Thread Raul David Orozco
Hi. I´m dealing with an issue  and I'm out of ideas right now. I've a layer created in my own WMS server, this layer is built with data from some part of my city of residence, but when I load the layer with OL, the zoom level is very far away, because of that my map looks like a tiny black dot,

Re: [OpenLayers-Users] Zoom Level and Base Layer problem

2009-08-03 Thread Marc Jansen
Hi Raul, just a guess: JavaScript / OpenLayers is case sensitive, so first you would need to write: minExtent: new OpenLayers.Bounds(-75.69927, -4.79079, -75.67719, 4.81273), maxExtent: new OpenLayers.Bounds(-180,-90,180,90) Then you could set min- and max extent on the map-object as well,

Re: [OpenLayers-Users] Zoom Level and Base Layer problem

2009-08-03 Thread Nicholas Efremov-Kendall
Hi, You can either specify the zoom level in your map options and drop the zoomtomaxextent, or once you've loaded data, you a map.centerfunction set on whatever data you load. best, N e.g. if( ! map.getCenter() ){ sites2.events.register('loadend', sites2,