components icon indicating copy to clipboard operation
components copied to clipboard

feat(google-maps): switch to non-deprecated API for clustering

Open crisbeto opened this issue 2 years ago • 4 comments

The marker clusterer component is currently based on the @googlemaps/markerclustererplus package which is deprecated. These changes rewrite the component to use @googlemaps/markerclusterer instead.

BREAKING CHANGE: The new @googlemaps/markerclusterer API should be imported instead of the old one. Read more at: https://github.com/googlemaps/js-markerclusterer

Furthermore, the new clustering package doesn't offer the same set of public APIs. As a result, the following inputs to the MapMarkerClusterer component have been removed:

  • ariaLabelFn
  • averageCenter
  • batchSizeIE
  • calculator
  • clusterClass
  • enableRetinaIcons
  • gridSize
  • ignoreHidden
  • imageExtension
  • imagePath
  • imageSizes
  • maxZoom
  • minimumClusterSize
  • styles
  • title
  • zIndex
  • zoomOnClick
  • options

It is now recommended to customize the cluster using the renderer and algorithm inputs.

Fixes #23695.

crisbeto avatar Apr 29 '22 10:04 crisbeto

Blocked on the new API being available in g3 and existing users being migrated.

crisbeto avatar Apr 29 '22 10:04 crisbeto

This was marked to be released in v15 but it looks like it didn't make it. Is there any information, when this will be available?

pfeigl avatar Dec 19 '22 16:12 pfeigl

any update on this @crisbeto ?

mrehman7095 avatar Jan 04 '23 10:01 mrehman7095

@crisbeto Google forcing the use of an API that Google deprecated years ago is not a good look. Isn't it time this one was actioned?

runette avatar Feb 10 '24 16:02 runette