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 published/overlay my layers in openlayers from geoserver as wms. Now I want to add/create vector layers on those layer either point/line or polygon, if it is line/polygon I need to display length/area of the feature respectively. Is it possible?, Then how can i?

share|improve this question
What have you tried so far? Have you looked at this sample: Once you have the drawn shape, you could use code similar to this:… to get the area/length. – Devdatta Tengshe May 7 '13 at 6:50
Can you please share some code ? – Myra May 7 '13 at 8:30

Your Answer


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

Browse other questions tagged or ask your own question.