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

How to set dynamic icons with path #1740

Closed
mainginski opened this issue Oct 10, 2019 · 1 comment
Closed

How to set dynamic icons with path #1740

mainginski opened this issue Oct 10, 2019 · 1 comment

Comments

@mainginski
Copy link

mainginski commented Oct 10, 2019

Issue description

If I use 'vanilla' google maps to create a Marker, I can set the following properties in icon attribute:

{
      path: 'M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z',
      fillColor: color,
      scale: .075,
      anchor: new google.maps.Point(191, 513),
      labelOrigin: new google.maps.Point(192, 192)
}

How to make this happen with agm-marker (specifically: an path with different colors)?

@ghost
Copy link

ghost commented Oct 10, 2019

Hey,

github issues are for bug reports and feature requests. Usage questions belong in our discord.

For your question, you can overwrite the iconUrl input with a Symbol object

@ghost ghost closed this as completed Oct 10, 2019
ghost pushed a commit that referenced this issue Jul 16, 2020
allow AgmMarker `iconUrl` to be a GoogleSymbol or an Icon type.

fixes: #1740
fixes: #1622
fixes: #1580
probably fixes a bunch more, since this was often requested.
This issue was closed.
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

1 participant