-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(MapMarkerClusterer): Add options input parameter #21763
Copy link
Copy link
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: google-mapsfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
Description
Feature Description
Several components including GoogleMap and MapMarker have a options input parameter that allow to pass a complete options object. The wrapped APIs already support such an options object. The MarkerClusterer constructor is no exception.
For the sake of consistency, MapMarkerClusterer should also expose an options input.
Use Case
Currently:
<map-marker-clusterer
[gridSize]="markerClustererOptions.gridSize"
[maxZoom]="markerClustererOptions.maxZoom"
[zoomOnClick]="markerClustererOptions.zoomOnClick"
...
>
<map-marker
*ngFor="let markerOptions of markerOptions"
[options]="markerOptions.options"
></map-marker>
</map-marker-clusterer>
Instead, it would be more useful:
<map-marker-clusterer
[options]="markerClustererOptions"
>
<map-marker
*ngFor="let markerOptions of markerOptions"
[options]="markerOptions.options"
></map-marker>
</map-marker-clusterer>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: google-mapsfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues