Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

     1    
  -------
  |      |
 4|      |2
  |      |
  --------
     3

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

Thanks,

Vijay

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

1 Answer

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
add comment

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.