geodirectory icon indicating copy to clipboard operation
geodirectory copied to clipboard

Google Maps JavaScript API deprecated changes

Open kprajapatii opened this issue 11 months ago • 0 comments

  1. 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
  1. 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

kprajapatii avatar Mar 05 '24 13:03 kprajapatii