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

Marker will be discontinued on February 21, 2024. Please use google.maps.marker.AdvancedMarkerElement instead. For more information about the end of support, please visit https://developers.google.com/maps/deprecations. #3337

Open
abb438 opened this issue Feb 22, 2024 · 14 comments

Comments

@abb438
Copy link

abb438 commented Feb 22, 2024

Marker will be discontinued on February 21, 2024. Please use google.maps.marker.AdvancedMarkerElement instead. For more information about the end of support, please visit https://developers.google.com/maps/deprecations.

"@react-google-maps/api": "^2.19.3",

When I looked at the console, I saw the above. (The wording may be slightly different because I am translating it into English)
What should I do?

The author wrote that he is no longer interested in this library, but what is everyone going to do if the googlemapsApi spec is changed thereafter?
The official google library for react is still barely documented and has not been officially released yet.

Please forgive the poor English as I am using translation software to write the text.

@GolfredoPerezFernandez
Copy link

i have the same problem how we can use Market now?

@Hyodori04
Copy link

I have the same issue.

@wojtekmaj
Copy link

Instead of loading weekly, quarterly or other Google Maps API version, choose the last one in which Marker was still available: 3.55.

It's probably a good idea to lock to a specific Google Maps API version anyway, unless you're gonna be actively and continuously maintaining the app you're building.

@abb438
Copy link
Author

abb438 commented Feb 27, 2024

The version that can be specified and used will also be updated (am I right?). I feel that specifying and using 3.55 is not a fundamental solution.
My project needs to be maintained, and I guess I will have to rewrite it to the official library or incorporate the vanilla js into react...

@wojtekmaj
Copy link

I don't think you're right. This would pretty much defeat the point of versioning.

@SuryaWebfox
Copy link

The fact that versioning exists and has it's uses doesn't mean that it is the best long term solution. I'm with @abb438 on this one, the new version of the API should be supported to ensure long term support.

@abb438
Copy link
Author

abb438 commented Feb 28, 2024

https://developers.google.com/maps/documentation/javascript/versions
Choosing a version number
Specify a version by number only if you regularly test and update your application. This is because numbered versions are eventually deleted as new versions are created every quarter. You can specify the version number by loading the Maps JavaScript API with the following script tag:
ーーーーー
I interpret this statement to mean that the version that can be specified and used will also be updated at some point, am I wrong?
If I'm wrong, I'm sorry.

@natoszme
Copy link

Hi there! Did someone find a solution for this?

Thanks!

@wangela
Copy link

wangela commented Feb 29, 2024

The Marker class should continue to work and be available in all versions of the JS API (the warning message should not have been translated, which caused confusion because translations converted "deprecated" to "discontinued" and "no longer available"). At this time there is no plan to decommission the Marker class. Please see this migration guide for converting from Marker to Advanced MarkerElement if you wish to convert.

https://developers.google.com/maps/documentation/javascript/advanced-markers/migration

@abb438
Copy link
Author

abb438 commented Mar 1, 2024

I didn't expect to get an explanation from you, who belongs to google, thank you!
However, while I understood what you explained, I could not find any source to back it up.
Still the warning has not been rescinded either.
However, I am sure that is the case because I am still able to use "Marker" even after the deadline written in the warning.
Can I take your statement as an official statement?

@skyt-a
Copy link

skyt-a commented Mar 4, 2024

Looking at the documentation, it doesn't look like google.maps.Marker is going to be discontinued at this time!

@JustFly1984
Copy link
Owner

You have to create AdvancedMarker, or wait for somebody else creating it and providing PR. This is opensource.
If you really need it, but can't do it yourself, I'm open for donations crowdfunding. After I get 500$ on opencollective I can find the time to implement it.

@Fabioni
Copy link
Contributor

Fabioni commented Mar 13, 2024

@JustFly1984 love that idea. Since you are personally not interested anymore, why would you give your time for free. I already gave 50 bucks since that's what I always try to do when using Open Source Software, happy to go further. If all the others here do the same, we go! :)

@wojtekmaj @wangela @natoszme @skyt-a @abb438 @SuryaWebfox @GolfredoPerezFernandez @Hyodori04

@Fabioni
Copy link
Contributor

Fabioni commented Mar 13, 2024

Here's the link from the readMe just so you don't have to search for it: https://opencollective.com/react-google-maps-api#category-CONTRIBUTE

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

10 participants