Skip to content

feat(MapMarkerClusterer): Add options input parameter #21763

Closed
@LexLuengas

Description

@LexLuengas

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>

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: google-mapsfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions