geodirectory
geodirectory copied to clipboard
Google Maps JavaScript API deprecated changes
- Google Maps JavaScript API has been loaded directly without loading=async. This can result in suboptimal performance. For best-practice loading patterns please see https://goo.gle/js-api-loading
- Check points
- Lazy load feature
- Cache plugins & plugins that allows loading JS async via feature
- As of February 21st, 2024, google.maps.Marker is deprecated. Please use google.maps.marker.AdvancedMarkerElement instead. Please see https://developers.google.com/maps/deprecations for deprecation details.
- Check points
- With new marker instance, some functions like marker.getPosition() no longer supported.
- Marker cluster plugin make compatible with google.maps.marker.AdvancedMarkerElement