| Server IP : 34.87.99.72 / Your IP : 216.73.217.31 Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 User : bitnami ( 1000) PHP Version : 7.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/apache/htdocs/app/node_modules/@google/markerclustererplus/dist/ |
Upload File : |
/**
* Copyright 2019 Google LLC. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/// <reference types="googlemaps" />
import { MarkerClusterer } from "./markerclusterer";
/**
* Creates a single cluster that manages a group of proximate markers.
* Used internally, do not call this constructor directly.
*/
export declare class Cluster {
private markerClusterer_;
private map_;
private minClusterSize_;
private averageCenter_;
private markers_;
private center_;
private bounds_;
private clusterIcon_;
/**
*
* @param markerClusterer_ The `MarkerClusterer` object with which this
* cluster is associated.
*/
constructor(markerClusterer_: MarkerClusterer);
/**
* Returns the number of markers managed by the cluster. You can call this from
* a `click`, `mouseover`, or `mouseout` event handler for the `MarkerClusterer` object.
*
* @return The number of markers in the cluster.
*/
getSize(): number;
/**
* Returns the array of markers managed by the cluster. You can call this from
* a `click`, `mouseover`, or `mouseout` event handler for the `MarkerClusterer` object.
*
* @return The array of markers in the cluster.
*/
getMarkers(): google.maps.Marker[];
/**
* Returns the center of the cluster. You can call this from
* a `click`, `mouseover`, or `mouseout` event handler
* for the `MarkerClusterer` object.
*
* @return The center of the cluster.
*/
getCenter(): google.maps.LatLng;
/**
* Returns the map with which the cluster is associated.
*
* @return The map.
* @ignore
*/
getMap(): google.maps.Map;
/**
* Returns the `MarkerClusterer` object with which the cluster is associated.
*
* @return The associated marker clusterer.
* @ignore
*/
getMarkerClusterer(): MarkerClusterer;
/**
* Returns the bounds of the cluster.
*
* @return the cluster bounds.
* @ignore
*/
getBounds(): google.maps.LatLngBounds;
/**
* Removes the cluster from the map.
*
* @ignore
*/
remove(): void;
/**
* Adds a marker to the cluster.
*
* @param marker The marker to be added.
* @return True if the marker was added.
* @ignore
*/
addMarker(marker: google.maps.Marker & {
isAdded?: boolean;
}): boolean;
/**
* Determines if a marker lies within the cluster's bounds.
*
* @param marker The marker to check.
* @return True if the marker lies in the bounds.
* @ignore
*/
isMarkerInClusterBounds(marker: google.maps.Marker): boolean;
/**
* Calculates the extended bounds of the cluster with the grid.
*/
private calculateBounds_;
/**
* Updates the cluster icon.
*/
updateIcon(): void;
/**
* Determines if a marker has already been added to the cluster.
*
* @param marker The marker to check.
* @return True if the marker has already been added.
*/
private isMarkerAlreadyAdded_;
}