1

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.

1

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

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

3
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.