dariapra wrote:
> 
> On map initialization I miss projection.
> <br />
> <br />
> var options = {<br />
>             'controls': [new OpenLayers.Control.Navigation()], //Needed to
> use GeoExt controls such as the zoomslider<br />
>             'maxExtent': new OpenLayers.Bounds(-20037508.34, -20037508.34,
> 20037508.34, 20037508.34),<br />
>             'projection': 'EPSG:4326', <br />
>             'units': 'm',<br />
>             'allOverlays': false <br />
> }
> 

I appreciate your feedback dariapra, but unfortunately I am still not
obtaining the result I am looking for :(.  I need a way that when I set my
map's center for the bbox of the viewport (this is working), that I am able
to call a function and receive that same bbox back.  Supposedly the
OpenLayers library recommends map.getExtent(); for this, but I get an error
telling me that this function does not exist.  I've also tried
map.getMaxExtent(), this works, but gives me a bbox of the maximum zoomed
out view of the map :(

Thanks,

elshae
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Get-Bounds-of-Longitude-and-Latittude-tp5640152p5647143.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to