Why not ask your question on the new OpenStreetMap Community Forum?

I'm trying to get the bounding box of the map area displayed by OpenLayers

I created the map using below code

map = new OpenLayers.Map({
            div: "map", projection: "EPSG:4326",
            layers: [new OpenLayers.Layer.OSM(), overlay],
            center: myLocation.getBounds().getCenterLonLat(), zoom: 12

I used map.getExtent() to get the bounds. It returns like this 8902156.9343171,1452273.0082078,8960210.8572917,1459916.7110352

How to convert or transform bounds to lat & long...Is this possible to convert bounds to lat & long

asked 14 Jun '13, 06:43

gayathri's gravatar image

accept rate: 0%

closed 14 Jun '13, 15:11

SK53's gravatar image

SK53 ♦

The question has been closed for the following reason "Duplicate Question" by SK53 14 Jun '13, 15:11

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 14 Jun '13, 06:43

question was seen: 3,151 times

last updated: 14 Jun '13, 15:11

powered by OSQA