Socket
Socket
Sign inDemoInstall

@types/markerclustererplus

Package Overview
Dependencies
1
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.29 to 2.1.30

206

markerclustererplus/index.d.ts

@@ -48,3 +48,3 @@ // Type definitions for MarkerClustererPlus for Google Maps V3 2.1.1

fontWeight?: string;
/**
/**
* [fontStyle="normal"] The value of the CSS <code>font-style</code>

@@ -66,3 +66,3 @@ * property for the label text shown on the cluster icon.

*/
backgroundPosition?: string;
backgroundPosition?: string;
}

@@ -98,3 +98,3 @@

constructor(cluster: Cluster, styles: ClusterIconStyle[]);
/**

@@ -104,3 +104,3 @@ * Adds the icon to the DOM.

onAdd(): void;
/**

@@ -110,3 +110,3 @@ * Removes the icon from the DOM.

onRemove(): void;
/**

@@ -116,3 +116,3 @@ * Draws the icon.

draw(): void;
/**

@@ -122,3 +122,3 @@ * Hides the icon.

hide(): void;
/**

@@ -128,3 +128,3 @@ * Positions and shows the icon.

show(): void;
/**

@@ -136,3 +136,3 @@ * Sets the icon styles to the appropriate element in the styles array.

useStyle(sums: ClusterIconInfo[]): void;
/**

@@ -144,3 +144,3 @@ * Sets the position at which to center the icon.

setCenter(center: google.maps.LatLng): void;
/**

@@ -153,3 +153,3 @@ * Creates the cssText style parameter based on the position of the icon.

createCss(pos: google.maps.Point): string;
/**

@@ -163,3 +163,3 @@ * Returns the position at which to place the DIV depending on the latlng.

}
interface Cluster {

@@ -174,3 +174,3 @@ /**

new (mc: MarkerClusterer): Cluster;
/**

@@ -184,3 +184,3 @@ * Returns the number of markers managed by the cluster. You can call this from

getSize(): number;
/**

@@ -194,3 +194,3 @@ * Returns the array of markers managed by the cluster. You can call this from

getMarkers(): google.maps.Marker[];
/**

@@ -204,3 +204,3 @@ * Returns the center of the cluster. You can call this from

getCenter(): google.maps.LatLng;
/**

@@ -213,3 +213,3 @@ * Returns the map with which the cluster is associated.

getMap(): google.maps.Map;
/**

@@ -222,3 +222,3 @@ * Returns the <code>MarkerClusterer</code> object with which the cluster is associated.

getMarkerClusterer(): MarkerClusterer;
/**

@@ -231,3 +231,3 @@ * Returns the bounds of the cluster.

getBounds(): google.maps.LatLngBounds;
/**

@@ -239,3 +239,3 @@ * Removes the cluster from the map.

remove(): void;
/**

@@ -249,3 +249,3 @@ * Adds a marker to the cluster.

addMarker(marker: google.maps.Marker): boolean;
/**

@@ -259,3 +259,3 @@ * Determines if a marker lies within the cluster's bounds.

isMarkerInClusterBounds(marker: google.maps.Marker): boolean;
/**

@@ -265,3 +265,3 @@ * Calculates the extended bounds of the cluster with the grid.

calculateBounds_(): void;
/**

@@ -271,3 +271,3 @@ * Updates the cluster icon.

updateIcon_(): void;
/**

@@ -279,5 +279,7 @@ * Determines if a marker has already been added to the cluster.

*/
isMarkerAlreadyAdded_(marker: google.maps.Marker): boolean;
isMarkerAlreadyAdded_(marker: google.maps.Marker): boolean;
}
type Calculator = (markers: google.maps.Marker[], clusterIconStylesCount: number) => ClusterIconInfo;
/**

@@ -289,3 +291,3 @@ * Optional parameter passed to the {@link MarkerClusterer} constructor.

gridSize?: number;
/** [maxZoom=null] The maximum zoom level at which clustering is enabled or
/** [maxZoom=null] The maximum zoom level at which clustering is enabled or
* <code>null</code> if clustering is to be enabled at all zoom levels.

@@ -344,3 +346,3 @@ */

*/
calculator?: (markers: google.maps.Marker[], clusterIconStylesCount: number) => ClusterIconInfo;
calculator?: Calculator;
/**

@@ -374,3 +376,3 @@ * [clusterClass="cluster"] The name of the CSS class defining general styles

batchSize?: number;
/**
/**
* [batchSizeIE=MarkerClusterer.BATCH_SIZE_IE] When Internet Explorer is

@@ -416,3 +418,3 @@ * being used, markers are processed in several batches with a small delay inserted between

new (map: google.maps.Map, opt_markers: google.maps.Marker[], opt_options?: MarkerClustererOptions): MarkerClusterer;
/**

@@ -422,4 +424,4 @@ * Implementation of the onAdd interface method.

*/
onAdd(): void;
onAdd(): void;
/**

@@ -432,3 +434,3 @@ * Implementation of the onRemove interface method.

onRemove(): void;
/**

@@ -439,3 +441,3 @@ * Implementation of the draw interface method.

draw(): void;
/**

@@ -445,3 +447,3 @@ * Sets up the styles object.

setupStyles_(): void;
/**

@@ -451,3 +453,3 @@ * Fits the map to the bounds of the markers managed by the clusterer.

fitMapToMarkers(): void;
/**

@@ -459,3 +461,3 @@ * Returns the value of the <code>gridSize</code> property.

getGridSize(): number;
/**

@@ -467,3 +469,3 @@ * Sets the value of the <code>gridSize</code> property.

setGridSize(gridSize: number): void;
/**

@@ -474,4 +476,4 @@ * Returns the value of the <code>minimumClusterSize</code> property.

*/
getMinimumClusterSize(): number;
getMinimumClusterSize(): number;
/**

@@ -483,3 +485,3 @@ * Sets the value of the <code>minimumClusterSize</code> property.

setMinimumClusterSize(minimumClusterSize: number): void;
/**

@@ -491,3 +493,3 @@ * Returns the value of the <code>maxZoom</code> property.

getMaxZoom(): number;
/**

@@ -498,4 +500,4 @@ * Sets the value of the <code>maxZoom</code> property.

*/
setMaxZoom(maxZoom: number): void;
setMaxZoom(maxZoom: number): void;
/**

@@ -507,3 +509,3 @@ * Returns the value of the <code>styles</code> property.

getStyles(): ClusterIconStyle[];
/**

@@ -515,3 +517,3 @@ * Sets the value of the <code>styles</code> property.

setStyles(styles: ClusterIconStyle[]): void;
/**

@@ -523,3 +525,3 @@ * Returns the value of the <code>title</code> property.

getTitle(): string;
/**

@@ -531,3 +533,3 @@ * Sets the value of the <code>title</code> property.

setTitle(title: string): void;
/**

@@ -539,3 +541,3 @@ * Returns the value of the <code>zoomOnClick</code> property.

getZoomOnClick(): boolean;
/**

@@ -547,3 +549,3 @@ * Sets the value of the <code>zoomOnClick</code> property.

setZoomOnClick(zoomOnClick: boolean): void;
/**

@@ -555,3 +557,3 @@ * Returns the value of the <code>averageCenter</code> property.

getAverageCenter(): boolean;
/**

@@ -563,3 +565,3 @@ * Sets the value of the <code>averageCenter</code> property.

setAverageCenter(averageCenter: boolean): void;
/**

@@ -570,4 +572,4 @@ * Returns the value of the <code>ignoreHidden</code> property.

*/
getIgnoreHidden(): boolean;
getIgnoreHidden(): boolean;
/**

@@ -579,3 +581,3 @@ * Sets the value of the <code>ignoreHidden</code> property.

setIgnoreHidden(ignoreHidden: boolean): void;
/**

@@ -587,3 +589,3 @@ * Returns the value of the <code>enableRetinaIcons</code> property.

getEnableRetinaIcons(): boolean;
/**

@@ -595,3 +597,3 @@ * Sets the value of the <code>enableRetinaIcons</code> property.

setEnableRetinaIcons(enableRetinaIcons: boolean): void;
/**

@@ -603,3 +605,3 @@ * Returns the value of the <code>imageExtension</code> property.

getImageExtension(): string;
/**

@@ -611,3 +613,3 @@ * Sets the value of the <code>imageExtension</code> property.

setImageExtension(imageExtension: string): void;
/**

@@ -619,3 +621,3 @@ * Returns the value of the <code>imagePath</code> property.

getImagePath(): string;
/**

@@ -627,3 +629,3 @@ * Sets the value of the <code>imagePath</code> property.

setImagePath(imagePath: string): void;
/**

@@ -635,3 +637,3 @@ * Returns the value of the <code>imageSizes</code> property.

getImageSizes(): number[];
/**

@@ -643,3 +645,3 @@ * Sets the value of the <code>imageSizes</code> property.

setImageSizes(imageSizes: number[]): void;
/**

@@ -649,5 +651,5 @@ * Returns the value of the <code>calculator</code> property.

* @return {function} the value of the calculator property.
*/
getCalculator(): Function;
*/
getCalculator(): Calculator;
/**

@@ -659,4 +661,4 @@ * Sets the value of the <code>calculator</code> property.

*/
setCalculator(calculator: (marker: google.maps.Marker, value: number) => Function): void;
setCalculator(calculator: Calculator): void;
/**

@@ -668,3 +670,3 @@ * Sets the value of the <code>hideLabel</code> property.

setHideLabel(printable: boolean): void;
/**

@@ -676,3 +678,3 @@ * Returns the value of the <code>hideLabel</code> property.

getHideLabel(): boolean;
/**

@@ -684,3 +686,3 @@ * Returns the value of the <code>batchSizeIE</code> property.

getBatchSizeIE(): number;
/**

@@ -692,3 +694,3 @@ * Sets the value of the <code>batchSizeIE</code> property.

setBatchSizeIE(batchSizeIE: number): void;
/**

@@ -700,3 +702,3 @@ * Returns the value of the <code>clusterClass</code> property.

getClusterClass(): string;
/**

@@ -707,4 +709,4 @@ * Sets the value of the <code>clusterClass</code> property.

*/
setClusterClass(clusterClass: string): void;
setClusterClass(clusterClass: string): void;
/**

@@ -716,3 +718,3 @@ * Returns the array of markers managed by the clusterer.

getMarkers(): google.maps.Marker[];
/**

@@ -724,3 +726,3 @@ * Returns the number of markers managed by the clusterer.

getTotalMarkers(): number;
/**

@@ -732,3 +734,3 @@ * Returns the current array of clusters formed by the clusterer.

getClusters(): Cluster[];
/**

@@ -740,3 +742,3 @@ * Returns the number of clusters formed by the clusterer.

getTotalClusters(): number;
/**

@@ -750,3 +752,3 @@ * Adds a marker to the clusterer. The clusters are redrawn unless

addMarker(marker: google.maps.Marker, opt_nodraw: boolean): void;
/**

@@ -760,3 +762,3 @@ * Adds an array of markers to the clusterer. The clusters are redrawn unless

addMarkers(markers: google.maps.Marker[], opt_nodraw: boolean): void;
/**

@@ -768,3 +770,3 @@ * Pushes a marker to the clusterer.

pushMarkerTo_(marker: google.maps.Marker): void;
/**

@@ -781,3 +783,3 @@ * Removes a marker from the cluster and map. The clusters are redrawn unless

removeMarker(marker: google.maps.Marker, opt_nodraw: boolean, noMapRemove: boolean): boolean;
/**

@@ -794,3 +796,3 @@ * Removes an array of markers from the cluster and map. The clusters are redrawn unless

removeMarkers(markers: google.maps.Marker[], opt_nodraw: boolean, opt_noMapRemove: boolean): boolean;
/**

@@ -804,3 +806,3 @@ * Removes a marker and returns true if removed, false if not.

removeMarker_(marker: google.maps.Marker, removeFromMap: boolean): boolean;
/**

@@ -811,3 +813,3 @@ * Removes all clusters and markers from the map and also removes all markers

clearMarkers(): void;
/**

@@ -818,3 +820,3 @@ * Recalculates and redraws all the marker clusters from scratch.

repaint(): void;
/**

@@ -828,3 +830,3 @@ * Returns the current bounds extended by the grid size.

getExtendedBounds(bounds: google.maps.LatLngBounds): google.maps.LatLngBounds;
/**

@@ -834,3 +836,3 @@ * Redraws all the clusters.

redraw_(): void;
/**

@@ -844,3 +846,3 @@ * Removes all clusters from the map. The markers are also removed from the map

resetViewport_(opt_hide: boolean): void;
/**

@@ -855,3 +857,3 @@ * Calculates the distance between two latlng locations in km.

distanceBetweenPoints_(p1: google.maps.LatLng, p2: google.maps.LatLng): number;
/**

@@ -865,3 +867,3 @@ * Determines if a marker is contained in a bounds.

isMarkerInBounds_(marker: google.maps.Marker, bounds: google.maps.LatLngBounds): boolean;
/**

@@ -873,3 +875,3 @@ * Adds a marker to a cluster, or creates a new cluster.

addToClosestCluster_(marker: google.maps.Marker): void;
/**

@@ -883,3 +885,3 @@ * Creates the clusters. This is done in batches to avoid timeout errors

createClusters_(iFirst: number): void;
/**

@@ -894,3 +896,3 @@ * Extends an object's prototype by another's.

extend(obj1: Object, obj2: Object): Object;
/**

@@ -906,4 +908,4 @@ * The default function for determining the label text and style

*/
CALCULATOR(markers: google.maps.Marker[], numStyles: number): ClusterIconInfo;
CALCULATOR: Calculator;
/**

@@ -916,3 +918,3 @@ * The number of markers to process in one batch.

BATCH_SIZE: number;
/**

@@ -925,3 +927,3 @@ * The number of markers to process in one batch (IE only).

BATCH_SIZE_IE: number;
/**

@@ -934,3 +936,3 @@ * The default root name for the marker cluster images.

IMAGE_PATH: string;
/**

@@ -943,3 +945,3 @@ * The default extension name for the marker cluster images.

IMAGE_EXTENSION: string;
/**

@@ -952,9 +954,9 @@ * The default array of sizes for the marker cluster images.

IMAGE_SIZES: number[];
}
declare var MarkerClusterer: MarkerClusterer;
interface String {
trim(): string;
}
{
"name": "@types/markerclustererplus",
"version": "2.1.29",
"version": "2.1.30",
"description": "TypeScript definitions for MarkerClustererPlus for Google Maps V3",

@@ -9,3 +9,4 @@ "license": "MIT",

"name": "Mathias Rodriguez",
"url": "https://github.com/enanox"
"url": "https://github.com/enanox",
"githubUsername": "enanox"
}

@@ -22,4 +23,4 @@ ],

},
"typesPublisherContentHash": "3a75eaa7d6f97dfde093ab4f4b7f00298e2582dfc76eb1796870b5838e1e04d2",
"typesPublisherContentHash": "50f9f537e799d0b203d4945f47146d7a52e55dbad58a58ca670c5c9cdfdfaed4",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Mon, 21 Aug 2017 21:55:03 GMT
* Last updated: Thu, 05 Oct 2017 18:37:51 GMT
* Dependencies: google-maps

@@ -14,0 +14,0 @@ * Global values: ClusterIconInfo, MarkerClusterer

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc