-
Notifications
You must be signed in to change notification settings - Fork 106
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
AdvancedMarkerView. #217
Comments
Sorry but i am out of time. Only minor changes fixes. |
I am trying to implement, if I will be success, shall I create PR? |
Thanks, I have success for implementing AdvancedMarkerView but need beta version of google map. Will explore more possibilities and will create check-in once all well tested. |
@vishalsmart any progress on this? |
@alelom @valentasm1 AdvancedMarkerView is still in Beta. Instead I have used RichMarker to achieve HTML markers. If @valentasm1 agrees, I can bit optimize my implementation and create PR to merge including richmarker https://github.com/googlearchive/js-rich-marker |
I am in progress migrating from json.net to system.text.json. Need some testing and adding some atributes. Most of work is done. I will finish next sunday. After that you could make PR :). I will put reminder and will write here update. |
Everything looks working on migration to system.text.json, just need some testing and will release next week |
I tested and looks improved performance. I'm going to create PR for RichMarker in day or two. |
Awesome :). |
@valentasm1 what about PR? :) |
I never promised PR. I think you refering @vishalsmart |
@valentasm1 , can you push it as a draft at least? |
I never promised PR. I think you refering @vishalsmart he said he will be ready in 2d (April 2023 :) ) |
yes i'm tagging him |
@vishalsmart how are you? what about PR?) |
I like this part from article Just did quick draft. Doesnt look that it could be very complicated to implement from here. |
I managed to add this part, and so far it looks like a standard marker, I was working on adding the content parameter to the advanced maker, and this is where things got missy |
There is huge chance that you need to write exception in js file. There are already couple exception to some actions. |
Sorry but if i need to guide you is such cases i could implement it faster. I dont have much free time. |
@coeur85 Would recommend going to the google docs, the error also says that the problem is that Not sure how its currently handled in our library but we would have to send a reference to a htmlElement or do something about that. Might have a look tomorrow to see if I can help figure it out. |
Maybe you could allow the user to pass a |
@Nickztar it should a dom object like a div true, so I tried to pass as on object from JS function but got the same error |
Well from what I can see you are just passing the string ´await CreateDiv(innerHTML)´? We would have to have something that overrides the call to |
Wrong thinking. Content must by node since all params is serialized before passing to google maps passing reference is impossible. Need some workaround like here |
A ElementReference is serializable though? Alteast when passing to JS. Should be possible without a workaround. I will try tomorrow. 😄 |
sure you don't need my help |
Tomorrow never comes :). |
Oh I have completely forgotten about it. This solution looks fine, maybe i'll get some more time soon and can try to do the elementReference. The "non-duplication" thing sounds like a feature to me, could save us from having to update the marker if it works as I think. I guess a good solution might be to make Content a OneOf<string, ElementReference> but this should be fine until (if?) we figure it out 👍🏼 |
For sure what is missing PinElement . It could be again issues since it is HTMLElement. In other hand it dont have much properties and dont have much use case. IMO this view is most usefull for html content markers. |
As of February 21st, 2024 (v3.56), google.maps.Marker is deprecated. We encourage you to transition to the new google.maps.marker.AdvancedMarkerElement class. Advanced markers provide substantial improvements over the legacy google.maps.Marker class. The minimum version of the Maps JavaScript API with google.maps.marker.AdvancedMarkerElement is 3.53.2. At this time, google.maps.Marker is not scheduled to be discontinued. https://developers.google.com/maps/documentation/javascript/markers |
I dont think i need to add this to library since same info appears to browser console. |
@valentasm1 Is there a AdvancedMarkerElement implementation available now?? |
There is. It just use old naming AdvancedMarkerView. Google just renamed it to AdvancedMarkerElement |
Hi,
Can you please implement AdvancedMarkerView as well?
https://developers.google.com/maps/documentation/javascript/advanced-markers/html-markers#maps_advanced_markers_html-javascript
Regards,
Vishal
The text was updated successfully, but these errors were encountered: