Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

I am using Jquery mobile along with OpenLayers mobile.

I want to give users the ability to draw features like lines and polygons. I would also like to give them the ability to "write" an annotation and place the text at a point on the map.

Does anyone have a small example of how to add text to the map?

Thanks!

share|improve this question
    
Please comment. – B Chawla Nov 10 '12 at 10:29

Use some JavaScript and HTML text input to achieve the text input. To save your annotations you can try exporting and importing geojson You can set text on a map marker: marker.icon.imageDiv.title = 'yourTitleHere';

share|improve this answer

Your Answer

 
discard

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.