You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@googlemaps/markerclustererplus

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@googlemaps/markerclustererplus

Creates and manages per-zoom-level clusters for large amounts of markers.

1.2.10
latest
Source
npm
Version published
Weekly downloads
51K
5.98%
Maintainers
2
Weekly downloads
 
Created
Source

Google Maps JavaScript MarkerClustererPlus

npm Build Release codecov GitHub contributors semantic-release

Description

The library creates and manages per-zoom-level clusters for large amounts of markers.

Note: This library has been refactored into @googlemaps/markerclusterer, check out the new and improved version!

Note: This library is the same as the existing library @google/markerclustererplus, but renamed and in its own repository.

Install

Available via npm as the package @googlemaps/markerclustererplus.

npm i @googlemaps/markerclustererplus

or

yarn add @googlemaps/markerclustererplus

Alternativly you may add the umd package directly to the html document using the unpkg link.

<script src="https://unpkg.com/@googlemaps/markerclustererplus/dist/index.min.js"></script>

When adding via unpkg, the loader can be accessed at MarkerClusterer.

A version can be specified by using https://unpkg.com/@googlemaps/markerclustererplus@VERSION/dist/....

TypeScript

This library uses the official TypeScript typings for Google Maps Platform, @types/google.maps.

npm i -D @types/google.maps

It may also require the skipLibCheck TypeScript compiler option.

Documentation

The reference documentation can be found at this link.

Example

import MarkerClusterer from '@googlemaps/markerclustererplus';

const markerCluster = new MarkerClusterer(map, markers);

View the package in action:

Keywords

cluster

FAQs

Package last updated on 30 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts