-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(google-maps): switch to non-deprecated API for clustering #24853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Blocked on the new API being available in g3 and existing users being migrated. |
28eff59 to
cb2105c
Compare
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 angular#23695.
cb2105c to
21405f4
Compare
|
This was marked to be released in v15 but it looks like it didn't make it. |
|
any update on this @crisbeto ? |
|
@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? |
|
Hi guys, any updates on this PR ? Do we have a potential timeline of when this will land? |
|
Closing in favor of #29885. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The marker clusterer component is currently based on the
@googlemaps/markerclustererpluspackage which is deprecated. These changes rewrite the component to use@googlemaps/markerclustererinstead.BREAKING CHANGE:
The new
@googlemaps/markerclustererAPI should be imported instead of the old one. Read more at: https://github.com/googlemaps/js-markerclustererFurthermore, the new clustering package doesn't offer the same set of public APIs. As a result, the following inputs to the
MapMarkerClusterercomponent have been removed:ariaLabelFnaverageCenterbatchSizeIEcalculatorclusterClassenableRetinaIconsgridSizeignoreHiddenimageExtensionimagePathimageSizesmaxZoomminimumClusterSizestylestitlezIndexzoomOnClickoptionsIt is now recommended to customize the cluster using the
rendererandalgorithminputs.Fixes #23695.