Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to get drawn polygon coordinates.

var myLatLonSquare = vectorLayer.features[0].geometry.transform(map.getProjectionObject(), 
                     new OpenLayers.Projection("EPSG:4326"));

after zoom drawn polygon disappears because of geometry transform.

how can I solve this problem without disappearing drawn polygon?


share|improve this question
up vote 6 down vote accepted

according to me it cant dissapear. the feature has changed due to the changes in the natural projection. Naturally, the feature might be located to 0,0.

if you want to see your feature:


and still you can get your feature as,


i hope it helps you...

share|improve this answer
Yes you are right, I transformed again feature. Thanks!!! – Iliaka Jun 19 '12 at 13:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.