Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

My requirement is to show dynamic label on polygon feature's segments with some offeset. The label text should have the rank of each segment. If it is a square which starts at top left corner it will look as

  |      |
 4|      |2
  |      |

Can anyone give me somoe pointers in achieving this using openlayers?



share|improve this question
What do you mean by the rank of each segment? – CaptDragon Feb 15 '12 at 14:30

As far as i know you can only have one label per feature. So you'll probably need to generate 4 lines from feature.geometry.getVertices() with individual labels and their offsets.

Or generate an invisible points between each location of feature.geometry.getVertices() with individual labels and their offsets.

share|improve this answer

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.