-
Notifications
You must be signed in to change notification settings - Fork 816
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
Need property icon rotation in agm-marker #1622
Comments
yes please anyone have done this because i have same situation need to rotation icon. |
currently you can workaround by setting You are invited to create a PR extending the AgmMarker directive with new properties |
@doom777 it doesn't work for custom marker icons |
@magnusfernandes , should work. If anything, the example I gave doesn't work because google namespace isn't available at that time. Can you make an example on stackblitz? |
@doom777 can this issue be solved soon? Need it for an app release. |
can you create a stackblitz? |
@doom777 can't rotate the custom icon |
Same problem here... |
@SebastianM @doom777 any update on this, please? |
Ok, so I think I got it. MarkerOptions#icon property can either be an Icon or a Symbol. Symbol class has This is a limitation of Google Maps, so we cannot fix it. Please confirm that this is your problem, and if so, close the issue. |
Is someone working on this issue? Otherwise I could try to implement this (need the functionality aswell 👍 ). |
stackbiz is not working |
Stackblitz stopped working generally. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Rotation is working fine but when i am changing rotation value at run time it not working, Example project https://angular-google-maps-demo-b3cm38.stackblitz.io |
You cannot rotate markers using agm-marker and iconUrl property. I recommend using agm-overlay. This way you can set the icon with "img src" and use inline css "style" to rotate the icon. You can check my working example here: |
Any update on this request? |
I created PR to add icon type |
Issue description
Need property icon rotation in agm-marker could be great.
Is possible to have a class for agm-marker
Example : https://stackoverflow.com/questions/46843606/how-to-make-custom-arrow-mark-in-agm-map
The text was updated successfully, but these errors were encountered: