nickponline
nickponline

Reputation: 25914

How do I rotate a map marker in angular-leaflet-directive?

My map markers are adorable little aeroplanes and I would like to be able to orientate them? If there a way to do this programmatically without creating multiple images?

Upvotes: 2

Views: 1643

Answers (1)

Andrei Nemes
Andrei Nemes

Reputation: 3122

You can use CSS3:

transform: rotate(<angle>deg);

or

<element>.style.transform = "rotate(<angle>deg)";

Upvotes: 1

Related Questions