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.

I want show one marker with normal angle 90 degrees(it is default of openlayers) and other marker with 120 degrees in openlayers. To differentiate with the normal ones. how can i do this.

share|improve this question
add comment

1 Answer 1

You can rotate a feature. Here's an example.

http://dev.openlayers.org/releases/OpenLayers-2.12/examples/rotate-features.html

share|improve this answer
    
but i want to the marker to bend little bit, not exactly rotating.. so how can i achieve this. –  Ramesh Kotha Aug 6 '12 at 20:12
    
The example has animated rotation. That's just "cute". But the meat is there in the .rotate() function call. You original question stated you wanted to rotate by 120 deg. The rotate() function is your perfect answer. Unless...it's something else you're looking for and you might need to restate your question. –  Vadim Aug 6 '12 at 20:45
    
yes i have to rotate the marker with some angle other than regular one. will try that thanks.. –  Ramesh Kotha Aug 6 '12 at 21:12
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.