-
Notifications
You must be signed in to change notification settings - Fork 105
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
Add Support for PinElement (AdvancedMarkerElement Customization) #336
Comments
Yea i saw that recently. Problem with blazor that it dont have HTMLElement. you could pass reference, but then it treadet as different one. In AdvancedMarker case we just create HTMLElement in javascript. Maybe we should do the same. Need more investigation. |
I tried and then realize, that it is quite impossible. At least in standart way Created seperate branch where i playaround. |
In my country we say "That morning is smarter than evening". I realised that instead creating seperate PinElement and then asssign to AdvancedMarkerElement i could simple add PinElement options to AdvancedMarkerElement and then assign PinElement to AdvancedMarkerElement in js. |
That sounds like a good path forward to me. I also agree with your country's saying. :) Let me know when you have something you want me to try out. |
Added functionality. Basicaly you could set up AdvancedMarkerElementOptions::Content as PinElement. |
Thank you for this update! I'm still working on my full implementation, but so far so good. I am curious how the position of an AdvancedMarkerElement should be updated. For a regular Marker I would call the .SetPosition(position) method. How should this be done on an AdvancedMarkerElement? Just to be clear this is after initial creation of the marker, and the marker is needing to be moved to a different spot. Thanks! |
AdvancedMarker doesnt have function to update position (unlike marker). Currently there are no func to set property but there is issue for that. You could subs |
Thank you for the information, I will subscribe to #338. I've completed my implementation with advanced markers and all went well. Thanks! |
Thank you for making it easy for us to add Google Maps to our Blazor applications with this great library!
Now that the old Markers are deprecated, would it be possible to add support for the PinElement (https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#PinElement) to allow us to better customize the Advanced Marker Elements?
The text was updated successfully, but these errors were encountered: