Problem/Motivation
As of February 21st, 2024 (v3.56), google.maps.Marker is deprecated. We to transition to the new google.maps.marker.AdvancedMarkerElement class. Advanced markers provide substantial improvements over the legacy google.maps.Marker class.
To update a legacy marker to be an advanced marker, take the following steps:
- Add code to import the marker library. Note that the previous version of markers (google.maps.Marker) does not have this requirement.
- Change google.maps.Marker to google.maps.marker.AdvancedMarkerElement
- Add a map ID to your map initialization code. For example mapId: 'DEMO_MAP_ID' for testing purposes if you don't have a map ID already.
https://developers.google.com/maps/documentation/javascript/advanced-mar...
Proposed resolution
- Replace Marker with Advance Marker
- Provides settings and implement PinElement
- Cloud-based maps styling
Remaining tasks
Implement new features.
Issue fork styled_google_map-3488261
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3488261-migrate-to-advanced
changes, plain diff MR !6
Comments
Comment #9
a.dmitriiev commentedMR #5 was merged.