Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon not rotating #30

Open
Irokaiser opened this issue Dec 14, 2021 · 2 comments
Open

Icon not rotating #30

Irokaiser opened this issue Dec 14, 2021 · 2 comments

Comments

@Irokaiser
Copy link

Irokaiser commented Dec 14, 2021

Hi, I've installed your extension of Leaflet. My icons appear but are not rotating. Here is the code that I am using:

this.marker = L.marker([51.505, -0.09], {rotationAngle: 120, rotationOrigin: 'center'}).addTo(this.map);

image
As you can see the icon is not rotated. Functions setRotationAngle and setRotationOrigin don't appear to do anything either.

I have dropped the extension .js script file in my Leaflet folder like so:

image

Any ideas to what I am doing wrong? @bbecquet

Thanks in advance.

@saai63
Copy link

saai63 commented Jan 4, 2022

Seems to work fine for me.
Could you check the console logs for errors if any?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@saai63 @Irokaiser and others