JustFly1984 / react-google-maps-api

React Google Maps API
MIT License
1.75k stars 421 forks source link

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 4 months ago

abb438 commented 4 months ago

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 commented 4 months ago

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

Hyodori04 commented 4 months ago

I have the same issue.

wojtekmaj commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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

SuryaWebfox commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

Hi there! Did someone find a solution for this?

Thanks!

wangela commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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

JustFly1984 commented 3 months ago

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 commented 3 months ago

@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 commented 3 months ago

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