diff --git a/classes/Cluster.html b/classes/Cluster.html index 8a46a1cf..0a065b29 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 d5076f75..26de7ba3 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 dfe36a88..39b8baa2 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 b1c30e20..79d7b56e 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

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 715fc60b..1c9b8d60 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 20a706cb..388a51ed 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

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/NoopAlgorithm.html b/classes/NoopAlgorithm.html index dd673278..7c672c55 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 d5e00168..edfc5d16 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 9d436151..c82e5917 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 a825c448..e2974abb 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 d9aee6e3..d4e9581b 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 f5b9433c..f713e9e0 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 d8a1ec90..2bfc7b16 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 91b61553..2324f987 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 af8d0cf4..c22c4492 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 59301305..c6ad7fd3 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 c7994e4f..b5d37357 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 cfb45e52..9f2ca95c 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 ef82844c..06b56715 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 20d4ef27..2d368927 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 10e9252b..675ce013 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 02ff3bd8..9d8481bd 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 da644a54..23cca410 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 caa2d730..25c9975f 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/public/algorithms/vendor.js b/public/algorithms/vendor.js index 46447ea4..8cee5dda 100644 --- a/public/algorithms/vendor.js +++ b/public/algorithms/vendor.js @@ -25,7 +25,7 @@ function __rest(s, e) { return t; } -function getDefaultExportFromCjs (x) { +function getDefaultExportFromCjs$1 (x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } @@ -74,7 +74,7 @@ var fastDeepEqual$1 = function equal(a, b) { return a!==a && b!==b; }; -var equal = /*@__PURE__*/getDefaultExportFromCjs(fastDeepEqual$1); +var equal = /*@__PURE__*/getDefaultExportFromCjs$1(fastDeepEqual$1); const ARRAY_TYPES = [ Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, @@ -825,7 +825,7 @@ function yLat(y) { return 360 * Math.atan(Math.exp(y2)) / Math.PI - 90; } -/*! ***************************************************************************** +/****************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -839,6 +839,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ +/* global Reflect, Promise, SuppressedError, Symbol */ + function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -848,6 +850,15 @@ function __awaiter(thisArg, _arguments, P, generator) { function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); +} + +typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; +}; + +function getDefaultExportFromCjs (x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } // do not edit .js files directly - edit src/index.jst @@ -895,6 +906,8 @@ var fastDeepEqual = function equal(a, b) { return a!==a && b!==b; }; +var isEqual = /*@__PURE__*/getDefaultExportFromCjs(fastDeepEqual); + /** * Copyright 2019 Google LLC. All Rights Reserved. * @@ -969,7 +982,7 @@ class Loader { this.url = url; this.version = version; if (Loader.instance) { - if (!fastDeepEqual(this.options, Loader.instance.options)) { + if (!isEqual(this.options, Loader.instance.options)) { throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Loader.instance.options)}`); } return Loader.instance; @@ -1015,7 +1028,7 @@ class Loader { */ createUrl() { let url = this.url; - url += `?callback=__googleMapsCallback`; + url += `?callback=__googleMapsCallback&loading=async`; if (this.apiKey) { url += `&key=${this.apiKey}`; } @@ -1199,22 +1212,23 @@ class Loader { } execute() { this.resetIfRetryingFailed(); + if (this.loading) { + // do nothing but wait + return; + } if (this.done) { this.callback(); } else { // short circuit and warn if google.maps is already loaded if (window.google && window.google.maps && window.google.maps.version) { - console.warn("Google Maps already loaded outside @googlemaps/js-api-loader." + + console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. " + "This may result in undesirable behavior as options and script parameters may not match."); this.callback(); return; } - if (this.loading) ; - else { - this.loading = true; - this.setScript(); - } + this.loading = true; + this.setScript(); } } } diff --git a/public/bench-advanced/vendor.js b/public/bench-advanced/vendor.js index 8666543a..b1e8b3a2 100644 --- a/public/bench-advanced/vendor.js +++ b/public/bench-advanced/vendor.js @@ -1,4 +1,4 @@ -/*! ***************************************************************************** +/****************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -12,6 +12,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ +/* global Reflect, Promise, SuppressedError, Symbol */ + function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -21,6 +23,15 @@ function __awaiter(thisArg, _arguments, P, generator) { function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); +} + +typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; +}; + +function getDefaultExportFromCjs$1 (x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } // do not edit .js files directly - edit src/index.jst @@ -68,6 +79,8 @@ var fastDeepEqual$1 = function equal(a, b) { return a!==a && b!==b; }; +var isEqual = /*@__PURE__*/getDefaultExportFromCjs$1(fastDeepEqual$1); + /** * Copyright 2019 Google LLC. All Rights Reserved. * @@ -142,7 +155,7 @@ class Loader { this.url = url; this.version = version; if (Loader.instance) { - if (!fastDeepEqual$1(this.options, Loader.instance.options)) { + if (!isEqual(this.options, Loader.instance.options)) { throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Loader.instance.options)}`); } return Loader.instance; @@ -188,7 +201,7 @@ class Loader { */ createUrl() { let url = this.url; - url += `?callback=__googleMapsCallback`; + url += `?callback=__googleMapsCallback&loading=async`; if (this.apiKey) { url += `&key=${this.apiKey}`; } @@ -372,22 +385,23 @@ class Loader { } execute() { this.resetIfRetryingFailed(); + if (this.loading) { + // do nothing but wait + return; + } if (this.done) { this.callback(); } else { // short circuit and warn if google.maps is already loaded if (window.google && window.google.maps && window.google.maps.version) { - console.warn("Google Maps already loaded outside @googlemaps/js-api-loader." + + console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. " + "This may result in undesirable behavior as options and script parameters may not match."); this.callback(); return; } - if (this.loading) ; - else { - this.loading = true; - this.setScript(); - } + this.loading = true; + this.setScript(); } } } diff --git a/public/bench-legacy-viewport/vendor.js b/public/bench-legacy-viewport/vendor.js index 8666543a..b1e8b3a2 100644 --- a/public/bench-legacy-viewport/vendor.js +++ b/public/bench-legacy-viewport/vendor.js @@ -1,4 +1,4 @@ -/*! ***************************************************************************** +/****************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -12,6 +12,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ +/* global Reflect, Promise, SuppressedError, Symbol */ + function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -21,6 +23,15 @@ function __awaiter(thisArg, _arguments, P, generator) { function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); +} + +typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; +}; + +function getDefaultExportFromCjs$1 (x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } // do not edit .js files directly - edit src/index.jst @@ -68,6 +79,8 @@ var fastDeepEqual$1 = function equal(a, b) { return a!==a && b!==b; }; +var isEqual = /*@__PURE__*/getDefaultExportFromCjs$1(fastDeepEqual$1); + /** * Copyright 2019 Google LLC. All Rights Reserved. * @@ -142,7 +155,7 @@ class Loader { this.url = url; this.version = version; if (Loader.instance) { - if (!fastDeepEqual$1(this.options, Loader.instance.options)) { + if (!isEqual(this.options, Loader.instance.options)) { throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Loader.instance.options)}`); } return Loader.instance; @@ -188,7 +201,7 @@ class Loader { */ createUrl() { let url = this.url; - url += `?callback=__googleMapsCallback`; + url += `?callback=__googleMapsCallback&loading=async`; if (this.apiKey) { url += `&key=${this.apiKey}`; } @@ -372,22 +385,23 @@ class Loader { } execute() { this.resetIfRetryingFailed(); + if (this.loading) { + // do nothing but wait + return; + } if (this.done) { this.callback(); } else { // short circuit and warn if google.maps is already loaded if (window.google && window.google.maps && window.google.maps.version) { - console.warn("Google Maps already loaded outside @googlemaps/js-api-loader." + + console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. " + "This may result in undesirable behavior as options and script parameters may not match."); this.callback(); return; } - if (this.loading) ; - else { - this.loading = true; - this.setScript(); - } + this.loading = true; + this.setScript(); } } } diff --git a/public/bench-legacy/vendor.js b/public/bench-legacy/vendor.js index 8666543a..b1e8b3a2 100644 --- a/public/bench-legacy/vendor.js +++ b/public/bench-legacy/vendor.js @@ -1,4 +1,4 @@ -/*! ***************************************************************************** +/****************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -12,6 +12,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ +/* global Reflect, Promise, SuppressedError, Symbol */ + function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -21,6 +23,15 @@ function __awaiter(thisArg, _arguments, P, generator) { function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); +} + +typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; +}; + +function getDefaultExportFromCjs$1 (x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } // do not edit .js files directly - edit src/index.jst @@ -68,6 +79,8 @@ var fastDeepEqual$1 = function equal(a, b) { return a!==a && b!==b; }; +var isEqual = /*@__PURE__*/getDefaultExportFromCjs$1(fastDeepEqual$1); + /** * Copyright 2019 Google LLC. All Rights Reserved. * @@ -142,7 +155,7 @@ class Loader { this.url = url; this.version = version; if (Loader.instance) { - if (!fastDeepEqual$1(this.options, Loader.instance.options)) { + if (!isEqual(this.options, Loader.instance.options)) { throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Loader.instance.options)}`); } return Loader.instance; @@ -188,7 +201,7 @@ class Loader { */ createUrl() { let url = this.url; - url += `?callback=__googleMapsCallback`; + url += `?callback=__googleMapsCallback&loading=async`; if (this.apiKey) { url += `&key=${this.apiKey}`; } @@ -372,22 +385,23 @@ class Loader { } execute() { this.resetIfRetryingFailed(); + if (this.loading) { + // do nothing but wait + return; + } if (this.done) { this.callback(); } else { // short circuit and warn if google.maps is already loaded if (window.google && window.google.maps && window.google.maps.version) { - console.warn("Google Maps already loaded outside @googlemaps/js-api-loader." + + console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. " + "This may result in undesirable behavior as options and script parameters may not match."); this.callback(); return; } - if (this.loading) ; - else { - this.loading = true; - this.setScript(); - } + this.loading = true; + this.setScript(); } } } diff --git a/public/defaults/vendor.js b/public/defaults/vendor.js index 8666543a..b1e8b3a2 100644 --- a/public/defaults/vendor.js +++ b/public/defaults/vendor.js @@ -1,4 +1,4 @@ -/*! ***************************************************************************** +/****************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -12,6 +12,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ +/* global Reflect, Promise, SuppressedError, Symbol */ + function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -21,6 +23,15 @@ function __awaiter(thisArg, _arguments, P, generator) { function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); +} + +typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; +}; + +function getDefaultExportFromCjs$1 (x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } // do not edit .js files directly - edit src/index.jst @@ -68,6 +79,8 @@ var fastDeepEqual$1 = function equal(a, b) { return a!==a && b!==b; }; +var isEqual = /*@__PURE__*/getDefaultExportFromCjs$1(fastDeepEqual$1); + /** * Copyright 2019 Google LLC. All Rights Reserved. * @@ -142,7 +155,7 @@ class Loader { this.url = url; this.version = version; if (Loader.instance) { - if (!fastDeepEqual$1(this.options, Loader.instance.options)) { + if (!isEqual(this.options, Loader.instance.options)) { throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Loader.instance.options)}`); } return Loader.instance; @@ -188,7 +201,7 @@ class Loader { */ createUrl() { let url = this.url; - url += `?callback=__googleMapsCallback`; + url += `?callback=__googleMapsCallback&loading=async`; if (this.apiKey) { url += `&key=${this.apiKey}`; } @@ -372,22 +385,23 @@ class Loader { } execute() { this.resetIfRetryingFailed(); + if (this.loading) { + // do nothing but wait + return; + } if (this.done) { this.callback(); } else { // short circuit and warn if google.maps is already loaded if (window.google && window.google.maps && window.google.maps.version) { - console.warn("Google Maps already loaded outside @googlemaps/js-api-loader." + + console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. " + "This may result in undesirable behavior as options and script parameters may not match."); this.callback(); return; } - if (this.loading) ; - else { - this.loading = true; - this.setScript(); - } + this.loading = true; + this.setScript(); } } } diff --git a/public/renderers/vendor.js b/public/renderers/vendor.js index e215ae26..0ac124be 100644 --- a/public/renderers/vendor.js +++ b/public/renderers/vendor.js @@ -25,7 +25,7 @@ function __rest(s, e) { return t; } -function getDefaultExportFromCjs (x) { +function getDefaultExportFromCjs$1 (x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } @@ -74,7 +74,7 @@ var fastDeepEqual$1 = function equal(a, b) { return a!==a && b!==b; }; -var equal = /*@__PURE__*/getDefaultExportFromCjs(fastDeepEqual$1); +var equal = /*@__PURE__*/getDefaultExportFromCjs$1(fastDeepEqual$1); const ARRAY_TYPES = [ Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, @@ -825,7 +825,7 @@ function yLat(y) { return 360 * Math.atan(Math.exp(y2)) / Math.PI - 90; } -/*! ***************************************************************************** +/****************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -839,6 +839,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ +/* global Reflect, Promise, SuppressedError, Symbol */ + function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -848,6 +850,15 @@ function __awaiter(thisArg, _arguments, P, generator) { function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); +} + +typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; +}; + +function getDefaultExportFromCjs (x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } // do not edit .js files directly - edit src/index.jst @@ -895,6 +906,8 @@ var fastDeepEqual = function equal(a, b) { return a!==a && b!==b; }; +var isEqual = /*@__PURE__*/getDefaultExportFromCjs(fastDeepEqual); + /** * Copyright 2019 Google LLC. All Rights Reserved. * @@ -969,7 +982,7 @@ class Loader { this.url = url; this.version = version; if (Loader.instance) { - if (!fastDeepEqual(this.options, Loader.instance.options)) { + if (!isEqual(this.options, Loader.instance.options)) { throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Loader.instance.options)}`); } return Loader.instance; @@ -1015,7 +1028,7 @@ class Loader { */ createUrl() { let url = this.url; - url += `?callback=__googleMapsCallback`; + url += `?callback=__googleMapsCallback&loading=async`; if (this.apiKey) { url += `&key=${this.apiKey}`; } @@ -1199,22 +1212,23 @@ class Loader { } execute() { this.resetIfRetryingFailed(); + if (this.loading) { + // do nothing but wait + return; + } if (this.done) { this.callback(); } else { // short circuit and warn if google.maps is already loaded if (window.google && window.google.maps && window.google.maps.version) { - console.warn("Google Maps already loaded outside @googlemaps/js-api-loader." + + console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. " + "This may result in undesirable behavior as options and script parameters may not match."); this.callback(); return; } - if (this.loading) ; - else { - this.loading = true; - this.setScript(); - } + this.loading = true; + this.setScript(); } } } diff --git a/public/updates/vendor.js b/public/updates/vendor.js index 0ba3b2b7..af97ca03 100644 --- a/public/updates/vendor.js +++ b/public/updates/vendor.js @@ -35,7 +35,7 @@ function __awaiter$1(thisArg, _arguments, P, generator) { }); } -/*! ***************************************************************************** +/****************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -49,6 +49,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ +/* global Reflect, Promise, SuppressedError, Symbol */ + function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -58,6 +60,15 @@ function __awaiter(thisArg, _arguments, P, generator) { function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); +} + +typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; +}; + +function getDefaultExportFromCjs$1 (x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } // do not edit .js files directly - edit src/index.jst @@ -105,6 +116,8 @@ var fastDeepEqual$1 = function equal(a, b) { return a!==a && b!==b; }; +var isEqual = /*@__PURE__*/getDefaultExportFromCjs$1(fastDeepEqual$1); + /** * Copyright 2019 Google LLC. All Rights Reserved. * @@ -179,7 +192,7 @@ class Loader { this.url = url; this.version = version; if (Loader.instance) { - if (!fastDeepEqual$1(this.options, Loader.instance.options)) { + if (!isEqual(this.options, Loader.instance.options)) { throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Loader.instance.options)}`); } return Loader.instance; @@ -225,7 +238,7 @@ class Loader { */ createUrl() { let url = this.url; - url += `?callback=__googleMapsCallback`; + url += `?callback=__googleMapsCallback&loading=async`; if (this.apiKey) { url += `&key=${this.apiKey}`; } @@ -409,22 +422,23 @@ class Loader { } execute() { this.resetIfRetryingFailed(); + if (this.loading) { + // do nothing but wait + return; + } if (this.done) { this.callback(); } else { // short circuit and warn if google.maps is already loaded if (window.google && window.google.maps && window.google.maps.version) { - console.warn("Google Maps already loaded outside @googlemaps/js-api-loader." + + console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. " + "This may result in undesirable behavior as options and script parameters may not match."); this.callback(); return; } - if (this.loading) ; - else { - this.loading = true; - this.setScript(); - } + this.loading = true; + this.setScript(); } } } diff --git a/types/Marker.html b/types/Marker.html index 043afa8d..4b1d8a01 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 a71c7fe1..b87078b9 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 336d519d..353975ef 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