From 4f8d8f173e3e9c53b14ce46e239d2159e9276d15 Mon Sep 17 00:00:00 2001 From: googlemaps-bot Date: Tue, 30 Jul 2024 13:53:24 +0000 Subject: [PATCH] chore(main): release 2.5.4 (#901) ef5fc5be6364fa22da463f2c87900c86e3b416c0 --- classes/Cluster.html | 10 +++++----- classes/ClusterStats.html | 4 ++-- classes/DefaultRenderer.html | 4 ++-- classes/GridAlgorithm.html | 6 +++--- classes/MarkerClusterer.html | 14 +++++++------- classes/MarkerUtils.html | 4 ++-- classes/NoopAlgorithm.html | 6 +++--- classes/SuperClusterAlgorithm.html | 6 +++--- classes/SuperClusterViewportAlgorithm.html | 6 +++--- enums/MarkerClustererEvents.html | 4 ++-- functions/defaultOnClusterClickHandler.html | 2 +- functions/extendBoundsToPaddedViewport.html | 2 +- functions/filterMarkersToPaddedViewport.html | 2 +- functions/getPaddedViewport.html | 2 +- interfaces/Algorithm.html | 4 ++-- interfaces/AlgorithmInput.html | 8 ++++---- interfaces/AlgorithmOptions.html | 4 ++-- interfaces/AlgorithmOutput.html | 6 +++--- interfaces/ClusterOptions.html | 4 ++-- interfaces/GridOptions.html | 8 ++++---- interfaces/MarkerClustererOptions.html | 6 +++--- interfaces/Renderer.html | 4 ++-- interfaces/SuperClusterViewportOptions.html | 4 ++-- interfaces/SuperClusterViewportState.html | 4 ++-- types/Marker.html | 2 +- types/SuperClusterOptions.html | 2 +- types/onClusterClickHandler.html | 2 +- 27 files changed, 65 insertions(+), 65 deletions(-) diff --git a/classes/Cluster.html b/classes/Cluster.html index 5a644f41..8a46a1cf 100644 --- a/classes/Cluster.html +++ b/classes/Cluster.html @@ -1,4 +1,4 @@ -Cluster | @googlemaps/js-markerclusterer

Constructors

constructor +Cluster | @googlemaps/js-markerclusterer

Constructors

Properties

Methods

Constructors

Properties

_position: LatLng
marker?: Marker
markers?: Marker[]

Accessors

  • get bounds(): LatLngBounds
  • Returns LatLngBounds

  • get count(): number
  • Get the count of visible markers.

    -

    Returns number

Methods

  • Cleanup references and remove marker from map.

    -

    Returns void

  • Add a marker to the cluster.

    -

    Parameters

    Returns void

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

_position: LatLng
marker?: Marker
markers?: Marker[]

Accessors

  • get bounds(): LatLngBounds
  • Returns LatLngBounds

  • get count(): number
  • Get the count of visible markers.

    +

    Returns number

Methods

  • Cleanup references and remove marker from map.

    +

    Returns void

  • Add a marker to the cluster.

    +

    Parameters

    Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/ClusterStats.html b/classes/ClusterStats.html index deeb38de..d5076f75 100644 --- a/classes/ClusterStats.html +++ b/classes/ClusterStats.html @@ -1,5 +1,5 @@ ClusterStats | @googlemaps/js-markerclusterer

Provides statistics on all clusters in the current render cycle for use in Renderer.render.

-

Constructors

Constructors

Properties

Constructors

Properties

clusters: {
    count: number;
    markers: {
        max: number;
        mean: number;
        min: number;
        sum: number;
    };
}

Type declaration

  • count: number
  • markers: {
        max: number;
        mean: number;
        min: number;
        sum: number;
    }
    • max: number
    • mean: number
    • min: number
    • sum: number
markers: {
    sum: number;
}

Type declaration

  • sum: number

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

clusters: {
    count: number;
    markers: {
        max: number;
        mean: number;
        min: number;
        sum: number;
    };
}

Type declaration

  • count: number
  • markers: {
        max: number;
        mean: number;
        min: number;
        sum: number;
    }
    • max: number
    • mean: number
    • min: number
    • sum: number
markers: {
    sum: number;
}

Type declaration

  • sum: number

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/DefaultRenderer.html b/classes/DefaultRenderer.html index 662c474c..dfe36a88 100644 --- a/classes/DefaultRenderer.html +++ b/classes/DefaultRenderer.html @@ -1,7 +1,7 @@ -DefaultRenderer | @googlemaps/js-markerclusterer

Implements

Constructors

constructor +DefaultRenderer | @googlemaps/js-markerclusterer

Implements

Constructors

Methods

Constructors

Methods

  • The default render function for the library used by MarkerClusterer.

    Currently set to use the following:

    // change color if this cluster has more markers than the mean cluster
    const color =
    count > Math.max(10, stats.clusters.markers.mean)
    ? "#ff0000"
    : "#0000ff";

    // create svg url with fill color
    const svg = window.btoa(`
    <svg fill="${color}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">
    <circle cx="120" cy="120" opacity=".6" r="70" />
    <circle cx="120" cy="120" opacity=".3" r="90" />
    <circle cx="120" cy="120" opacity=".2" r="110" />
    <circle cx="120" cy="120" opacity=".1" r="130" />
    </svg>`);

    // create marker using svg icon
    return new google.maps.Marker({
    position,
    icon: {
    url: `data:image/svg+xml;base64,${svg}`,
    scaledSize: new google.maps.Size(45, 45),
    },
    label: {
    text: String(count),
    color: "rgba(255,255,255,0.9)",
    fontSize: "12px",
    },
    // adjust zIndex to be above other markers
    zIndex: 1000 + count,
    });
    -

    Parameters

    Returns Marker

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns Marker

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/GridAlgorithm.html b/classes/GridAlgorithm.html index b6e1f3b2..b1c30e20 100644 --- a/classes/GridAlgorithm.html +++ b/classes/GridAlgorithm.html @@ -2,7 +2,7 @@ clustering.

The Grid algorithm does not implement caching and markers may flash as the viewport changes. Instead use SuperClusterAlgorithm.

-

Hierarchy

Constructors

Hierarchy

  • AbstractViewportAlgorithm
    • GridAlgorithm

Constructors

Properties

Constructors

Properties

clusters: Cluster[] = []
gridSize: number
maxDistance: number
maxZoom: number
state: {
    zoom: number;
} = ...

Type declaration

  • zoom: number
viewportPadding: number = 60

Methods

  • Parameters

    • marker: Marker
    • map: Map
    • projection: MapCanvasProjection

    Returns void

  • Helper function to bypass clustering based upon some map state such as +

Constructors

Properties

clusters: Cluster[] = []
gridSize: number
maxDistance: number
maxZoom: number
state: {
    zoom: number;
} = ...

Type declaration

  • zoom: number
viewportPadding: number = 60

Methods

  • Parameters

    • marker: Marker
    • map: Map
    • projection: MapCanvasProjection

    Returns void

  • Helper function to bypass clustering based upon some map state such as zoom, number of markers, etc.

     cluster({markers, map}: AlgorithmInput): Cluster[] {
    if (shouldBypassClustering(map)) {
    return this.noop({markers})
    }
    }
    -

    Type Parameters

    Parameters

    • __namedParameters: T

    Returns Cluster[]

Generated using TypeDoc

\ No newline at end of file +

Type Parameters

Parameters

Returns Cluster[]

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/MarkerClusterer.html b/classes/MarkerClusterer.html index 70325bc9..715fc60b 100644 --- a/classes/MarkerClusterer.html +++ b/classes/MarkerClusterer.html @@ -1,6 +1,6 @@ MarkerClusterer | @googlemaps/js-markerclusterer

MarkerClusterer creates and manages per-zoom-level clusters for large amounts of markers. See MarkerClustererOptions for more details.

-

Hierarchy

  • OverlayViewSafe
    • MarkerClusterer

Constructors

Hierarchy

  • OverlayViewSafe
    • MarkerClusterer

Constructors

Properties

Constructors

Properties

algorithm: Algorithm
clusters: Cluster[]
idleListener: MapsEventListener
map: Map
markers: Marker[]
onClusterClick: onClusterClickHandler
renderer: Renderer

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

algorithm: Algorithm
clusters: Cluster[]
idleListener: MapsEventListener
map: Map
markers: Marker[]
onClusterClick: onClusterClickHandler
renderer: Renderer

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/MarkerUtils.html b/classes/MarkerUtils.html index bbde4b75..20a706cb 100644 --- a/classes/MarkerUtils.html +++ b/classes/MarkerUtils.html @@ -1,9 +1,9 @@ MarkerUtils | @googlemaps/js-markerclusterer

util class that creates a common set of convenience functions to wrap shared behavior of Advanced Markers and Markers.

-

Constructors

Constructors

Methods

  • Parameters

    Returns marker is AdvancedMarkerElement

  • Parameters

    • map: Map

    Returns boolean

Generated using TypeDoc

\ No newline at end of file +

Constructors

Methods

  • Parameters

    Returns marker is AdvancedMarkerElement

  • Parameters

    • map: Map

    Returns boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/NoopAlgorithm.html b/classes/NoopAlgorithm.html index 173086dc..dd673278 100644 --- a/classes/NoopAlgorithm.html +++ b/classes/NoopAlgorithm.html @@ -1,11 +1,11 @@ NoopAlgorithm | @googlemaps/js-markerclusterer

Noop algorithm does not generate any clusters or filter markers by the an extended viewport.

-

Hierarchy

  • AbstractAlgorithm
    • NoopAlgorithm

Constructors

Hierarchy

  • AbstractAlgorithm
    • NoopAlgorithm

Constructors

Properties

Methods

Constructors

Properties

maxZoom: number

Methods

  • Helper function to bypass clustering based upon some map state such as +

Constructors

Properties

maxZoom: number

Methods

  • Helper function to bypass clustering based upon some map state such as zoom, number of markers, etc.

     cluster({markers, map}: AlgorithmInput): Cluster[] {
    if (shouldBypassClustering(map)) {
    return this.noop({markers})
    }
    }
    -

    Type Parameters

    Parameters

    • __namedParameters: T

    Returns Cluster[]

Generated using TypeDoc

\ No newline at end of file +

Type Parameters

Parameters

Returns Cluster[]

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/SuperClusterAlgorithm.html b/classes/SuperClusterAlgorithm.html index a5638e54..d5e00168 100644 --- a/classes/SuperClusterAlgorithm.html +++ b/classes/SuperClusterAlgorithm.html @@ -1,6 +1,6 @@ SuperClusterAlgorithm | @googlemaps/js-markerclusterer

A very fast JavaScript algorithm for geospatial point clustering using KD trees.

See

https://www.npmjs.com/package/supercluster for more information on options.

-

Hierarchy

  • AbstractAlgorithm
    • SuperClusterAlgorithm

Constructors

Hierarchy

  • AbstractAlgorithm
    • SuperClusterAlgorithm

Constructors

Properties

Constructors

Properties

clusters: Cluster[]
markers: Marker[]
maxZoom: number
state: {
    zoom: number;
} = ...

Type declaration

  • zoom: number
superCluster: Supercluster<AnyProps, AnyProps>

Methods

  • Helper function to bypass clustering based upon some map state such as +

Constructors

Properties

clusters: Cluster[]
markers: Marker[]
maxZoom: number
state: {
    zoom: number;
} = ...

Type declaration

  • zoom: number
superCluster: Supercluster<AnyProps, AnyProps>

Methods

  • Helper function to bypass clustering based upon some map state such as zoom, number of markers, etc.

     cluster({markers, map}: AlgorithmInput): Cluster[] {
    if (shouldBypassClustering(map)) {
    return this.noop({markers})
    }
    }
    -

    Type Parameters

    Parameters

    • __namedParameters: T

    Returns Cluster[]

Generated using TypeDoc

\ No newline at end of file +

Type Parameters

Parameters

Returns Cluster[]

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/SuperClusterViewportAlgorithm.html b/classes/SuperClusterViewportAlgorithm.html index 71617854..9d436151 100644 --- a/classes/SuperClusterViewportAlgorithm.html +++ b/classes/SuperClusterViewportAlgorithm.html @@ -1,6 +1,6 @@ SuperClusterViewportAlgorithm | @googlemaps/js-markerclusterer

A very fast JavaScript algorithm for geospatial point clustering using KD trees.

See

https://www.npmjs.com/package/supercluster for more information on options.

-

Hierarchy

  • AbstractViewportAlgorithm
    • SuperClusterViewportAlgorithm

Constructors

Hierarchy

  • AbstractViewportAlgorithm
    • SuperClusterViewportAlgorithm

Constructors

Properties

Constructors

Properties

clusters: Cluster[]
markers: Marker[]
maxZoom: number
superCluster: Supercluster<AnyProps, AnyProps>
viewportPadding: number = 60

Methods

  • Helper function to bypass clustering based upon some map state such as +

Constructors

Properties

clusters: Cluster[]
markers: Marker[]
maxZoom: number
superCluster: Supercluster<AnyProps, AnyProps>
viewportPadding: number = 60

Methods

  • Helper function to bypass clustering based upon some map state such as zoom, number of markers, etc.

     cluster({markers, map}: AlgorithmInput): Cluster[] {
    if (shouldBypassClustering(map)) {
    return this.noop({markers})
    }
    }
    -

    Type Parameters

    Parameters

    • __namedParameters: T

    Returns Cluster[]

Generated using TypeDoc

\ No newline at end of file +

Type Parameters

Parameters

Returns Cluster[]

Generated using TypeDoc

\ No newline at end of file diff --git a/enums/MarkerClustererEvents.html b/enums/MarkerClustererEvents.html index bed6036a..a825c448 100644 --- a/enums/MarkerClustererEvents.html +++ b/enums/MarkerClustererEvents.html @@ -1,4 +1,4 @@ -MarkerClustererEvents | @googlemaps/js-markerclusterer

Enumeration Members

CLUSTERING_BEGIN +MarkerClustererEvents | @googlemaps/js-markerclusterer

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

CLUSTERING_BEGIN: "clusteringbegin"
CLUSTERING_END: "clusteringend"
CLUSTER_CLICK: "click"

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/defaultOnClusterClickHandler.html b/functions/defaultOnClusterClickHandler.html index ec26feaa..d9aee6e3 100644 --- a/functions/defaultOnClusterClickHandler.html +++ b/functions/defaultOnClusterClickHandler.html @@ -1 +1 @@ -defaultOnClusterClickHandler | @googlemaps/js-markerclusterer
  • Parameters

    • event: MapMouseEvent
    • cluster: Cluster
    • map: Map

    Returns void

Generated using TypeDoc

\ No newline at end of file +defaultOnClusterClickHandler | @googlemaps/js-markerclusterer
  • Parameters

    • event: MapMouseEvent
    • cluster: Cluster
    • map: Map

    Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/extendBoundsToPaddedViewport.html b/functions/extendBoundsToPaddedViewport.html index 42b0069d..f5b9433c 100644 --- a/functions/extendBoundsToPaddedViewport.html +++ b/functions/extendBoundsToPaddedViewport.html @@ -1,2 +1,2 @@ extendBoundsToPaddedViewport | @googlemaps/js-markerclusterer
  • Extends a bounds by a number of pixels in each direction

    -

    Parameters

    • bounds: LatLngBounds
    • projection: MapCanvasProjection
    • numPixels: number

    Returns LatLngBounds

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns LatLngBounds

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/filterMarkersToPaddedViewport.html b/functions/filterMarkersToPaddedViewport.html index 12948bcd..d8a1ec90 100644 --- a/functions/filterMarkersToPaddedViewport.html +++ b/functions/filterMarkersToPaddedViewport.html @@ -2,4 +2,4 @@

Parameters

Returns Marker[]

The list of markers in the padded viewport

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/getPaddedViewport.html b/functions/getPaddedViewport.html index be2dab92..91b61553 100644 --- a/functions/getPaddedViewport.html +++ b/functions/getPaddedViewport.html @@ -1,2 +1,2 @@ getPaddedViewport | @googlemaps/js-markerclusterer
  • Gets the extended bounds as a bbox [westLng, southLat, eastLng, northLat]

    -

    Parameters

    • bounds: LatLngBounds
    • projection: MapCanvasProjection
    • pixels: number

    Returns [number, number, number, number]

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns [number, number, number, number]

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/Algorithm.html b/interfaces/Algorithm.html index e5600b10..af8d0cf4 100644 --- a/interfaces/Algorithm.html +++ b/interfaces/Algorithm.html @@ -1,4 +1,4 @@ -Algorithm | @googlemaps/js-markerclusterer
interface Algorithm {
    calculate: ((__namedParameters) => AlgorithmOutput);
}

Properties

calculate +Algorithm | @googlemaps/js-markerclusterer
interface Algorithm {
    calculate: ((__namedParameters) => AlgorithmOutput);
}

Properties

Properties

calculate: ((__namedParameters) => AlgorithmOutput)

Calculates an array of Cluster.

Type declaration

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns AlgorithmOutput

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/AlgorithmInput.html b/interfaces/AlgorithmInput.html index f3a147a9..59301305 100644 --- a/interfaces/AlgorithmInput.html +++ b/interfaces/AlgorithmInput.html @@ -1,12 +1,12 @@ -AlgorithmInput | @googlemaps/js-markerclusterer
interface AlgorithmInput {
    map: Map;
    mapCanvasProjection: MapCanvasProjection;
    markers: Marker[];
}

Properties

map +AlgorithmInput | @googlemaps/js-markerclusterer
interface AlgorithmInput {
    map: Map;
    mapCanvasProjection: MapCanvasProjection;
    markers: Marker[];
}

Properties

map: Map

The map containing the markers and clusters.

-
mapCanvasProjection: MapCanvasProjection

The mapCanvasProjection enables easy conversion from lat/lng to pixel.

+
mapCanvasProjection: MapCanvasProjection

The mapCanvasProjection enables easy conversion from lat/lng to pixel.

markers: Marker[]

An array of markers to be clustered.

+
markers: Marker[]

An array of markers to be clustered.

There are some specific edge cases to be aware of including the following:

  • Markers that are not visible.
-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/AlgorithmOptions.html b/interfaces/AlgorithmOptions.html index c2baecac..c7994e4f 100644 --- a/interfaces/AlgorithmOptions.html +++ b/interfaces/AlgorithmOptions.html @@ -1,2 +1,2 @@ -AlgorithmOptions | @googlemaps/js-markerclusterer
interface AlgorithmOptions {
    maxZoom?: number;
}

Properties

Properties

maxZoom?: number

Generated using TypeDoc

\ No newline at end of file +AlgorithmOptions | @googlemaps/js-markerclusterer
interface AlgorithmOptions {
    maxZoom?: number;
}

Properties

Properties

maxZoom?: number

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/AlgorithmOutput.html b/interfaces/AlgorithmOutput.html index da3e17c1..cfb45e52 100644 --- a/interfaces/AlgorithmOutput.html +++ b/interfaces/AlgorithmOutput.html @@ -1,5 +1,5 @@ -AlgorithmOutput | @googlemaps/js-markerclusterer
interface AlgorithmOutput {
    changed?: boolean;
    clusters: Cluster[];
}

Properties

changed? +AlgorithmOutput | @googlemaps/js-markerclusterer
interface AlgorithmOutput {
    changed?: boolean;
    clusters: Cluster[];
}

Properties

Properties

changed?: boolean

A boolean flag indicating that the clusters have not changed.

-
clusters: Cluster[]

The clusters returned based upon the AlgorithmInput.

-

Generated using TypeDoc

\ No newline at end of file +
clusters: Cluster[]

The clusters returned based upon the AlgorithmInput.

+

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/ClusterOptions.html b/interfaces/ClusterOptions.html index 0495c587..ef82844c 100644 --- a/interfaces/ClusterOptions.html +++ b/interfaces/ClusterOptions.html @@ -1,3 +1,3 @@ -ClusterOptions | @googlemaps/js-markerclusterer
interface ClusterOptions {
    markers?: Marker[];
    position?: LatLng | LatLngLiteral;
}

Properties

markers? +ClusterOptions | @googlemaps/js-markerclusterer
interface ClusterOptions {
    markers?: Marker[];
    position?: LatLng | LatLngLiteral;
}

Properties

Properties

markers?: Marker[]
position?: LatLng | LatLngLiteral

Generated using TypeDoc

\ No newline at end of file +

Properties

markers?: Marker[]
position?: LatLng | LatLngLiteral

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/GridOptions.html b/interfaces/GridOptions.html index d95a1a16..20d4ef27 100644 --- a/interfaces/GridOptions.html +++ b/interfaces/GridOptions.html @@ -1,10 +1,10 @@ -GridOptions | @googlemaps/js-markerclusterer
interface GridOptions {
    gridSize?: number;
    maxDistance?: number;
    maxZoom?: number;
    viewportPadding?: number;
}

Hierarchy

  • ViewportAlgorithmOptions
    • GridOptions

Properties

gridSize? +GridOptions | @googlemaps/js-markerclusterer
interface GridOptions {
    gridSize?: number;
    maxDistance?: number;
    maxZoom?: number;
    viewportPadding?: number;
}

Hierarchy

  • ViewportAlgorithmOptions
    • GridOptions

Properties

gridSize?: number
maxDistance?: number

Max distance between cluster center and point in meters.

+

Properties

gridSize?: number
maxDistance?: number

Max distance between cluster center and point in meters.

Default

10000
 
-
maxZoom?: number
viewportPadding?: number

The number of pixels to extend beyond the viewport bounds when filtering +

maxZoom?: number
viewportPadding?: number

The number of pixels to extend beyond the viewport bounds when filtering markers prior to clustering.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/MarkerClustererOptions.html b/interfaces/MarkerClustererOptions.html index 47f7cc5f..10e9252b 100644 --- a/interfaces/MarkerClustererOptions.html +++ b/interfaces/MarkerClustererOptions.html @@ -1,4 +1,4 @@ -MarkerClustererOptions | @googlemaps/js-markerclusterer
interface MarkerClustererOptions {
    algorithm?: Algorithm;
    algorithmOptions?: AlgorithmOptions;
    map?: Map;
    markers?: Marker[];
    onClusterClick?: onClusterClickHandler;
    renderer?: Renderer;
}

Properties

algorithm? +MarkerClustererOptions | @googlemaps/js-markerclusterer
interface MarkerClustererOptions {
    algorithm?: Algorithm;
    algorithmOptions?: AlgorithmOptions;
    map?: Map;
    markers?: Marker[];
    onClusterClick?: onClusterClickHandler;
    renderer?: Renderer;
}

Properties

Properties

algorithm?: Algorithm

An algorithm to cluster markers. Default is SuperClusterAlgorithm. Must provide a calculate method accepting AlgorithmInput and returning an array of Cluster.

-
algorithmOptions?: AlgorithmOptions
map?: Map
markers?: Marker[]
onClusterClick?: onClusterClickHandler
renderer?: Renderer

An object that converts a Cluster into a google.maps.Marker. +

algorithmOptions?: AlgorithmOptions
map?: Map
markers?: Marker[]
onClusterClick?: onClusterClickHandler
renderer?: Renderer

An object that converts a Cluster into a google.maps.Marker. Default is DefaultRenderer.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/Renderer.html b/interfaces/Renderer.html index 508a408b..02ff3bd8 100644 --- a/interfaces/Renderer.html +++ b/interfaces/Renderer.html @@ -1,6 +1,6 @@ -Renderer | @googlemaps/js-markerclusterer
interface Renderer {
    render(cluster, stats, map): Marker;
}

Implemented by

Methods

render +Renderer | @googlemaps/js-markerclusterer
interface Renderer {
    render(cluster, stats, map): Marker;
}

Implemented by

Methods

Methods

  • Turn a Cluster into a Marker.

    Below is a simple example to create a marker with the number of markers in the cluster as a label.

    return new google.maps.Marker({
    position,
    label: String(markers.length),
    });
    -

    Parameters

    Returns Marker

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns Marker

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/SuperClusterViewportOptions.html b/interfaces/SuperClusterViewportOptions.html index 2b943dfb..da644a54 100644 --- a/interfaces/SuperClusterViewportOptions.html +++ b/interfaces/SuperClusterViewportOptions.html @@ -1,4 +1,4 @@ -SuperClusterViewportOptions | @googlemaps/js-markerclusterer
interface SuperClusterViewportOptions {
    viewportPadding?: number;
}

Hierarchy (view full)

Properties

viewportPadding? +SuperClusterViewportOptions | @googlemaps/js-markerclusterer
interface SuperClusterViewportOptions {
    viewportPadding?: number;
}

Hierarchy (view full)

Properties

Properties

viewportPadding?: number

The number of pixels to extend beyond the viewport bounds when filtering markers prior to clustering.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/SuperClusterViewportState.html b/interfaces/SuperClusterViewportState.html index 54447fd4..caa2d730 100644 --- a/interfaces/SuperClusterViewportState.html +++ b/interfaces/SuperClusterViewportState.html @@ -1,3 +1,3 @@ -SuperClusterViewportState | @googlemaps/js-markerclusterer
interface SuperClusterViewportState {
    view: [number, number, number, number];
    zoom: number;
}

Properties

view +SuperClusterViewportState | @googlemaps/js-markerclusterer
interface SuperClusterViewportState {
    view: [number, number, number, number];
    zoom: number;
}

Properties

Properties

view: [number, number, number, number]
zoom: number

Generated using TypeDoc

\ No newline at end of file +

Properties

view: [number, number, number, number]
zoom: number

Generated using TypeDoc

\ No newline at end of file diff --git a/types/Marker.html b/types/Marker.html index 66fb18c1..043afa8d 100644 --- a/types/Marker.html +++ b/types/Marker.html @@ -1,2 +1,2 @@ Marker | @googlemaps/js-markerclusterer
Marker: google.maps.Marker | google.maps.marker.AdvancedMarkerElement

Supports markers of either either "legacy" or "advanced" types.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/types/SuperClusterOptions.html b/types/SuperClusterOptions.html index a6d9ae9d..a71c7fe1 100644 --- a/types/SuperClusterOptions.html +++ b/types/SuperClusterOptions.html @@ -1 +1 @@ -SuperClusterOptions | @googlemaps/js-markerclusterer
SuperClusterOptions: SuperCluster.Options<{
    [name: string]: any;
}, {
    [name: string]: any;
}>

Type declaration

  • [name: string]: any

Type declaration

  • [name: string]: any

Generated using TypeDoc

\ No newline at end of file +SuperClusterOptions | @googlemaps/js-markerclusterer
SuperClusterOptions: SuperCluster.Options<{
    [name: string]: any;
}, {
    [name: string]: any;
}>

Type declaration

  • [name: string]: any

Type declaration

  • [name: string]: any

Generated using TypeDoc

\ No newline at end of file diff --git a/types/onClusterClickHandler.html b/types/onClusterClickHandler.html index 58da75bf..336d519d 100644 --- a/types/onClusterClickHandler.html +++ b/types/onClusterClickHandler.html @@ -1 +1 @@ -onClusterClickHandler | @googlemaps/js-markerclusterer
onClusterClickHandler: ((event, cluster, map) => void)

Type declaration

    • (event, cluster, map): void
    • Parameters

      • event: google.maps.MapMouseEvent
      • cluster: Cluster
      • map: google.maps.Map

      Returns void

Generated using TypeDoc

\ No newline at end of file +onClusterClickHandler | @googlemaps/js-markerclusterer
onClusterClickHandler: ((event, cluster, map) => void)

Type declaration

    • (event, cluster, map): void
    • Parameters

      • event: google.maps.MapMouseEvent
      • cluster: Cluster
      • map: google.maps.Map

      Returns void

Generated using TypeDoc

\ No newline at end of file