Skip to content

snphq/js-markerclustererplus

 
 

Repository files navigation

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 is the same as the existing library @google/markerclustererplus, but renamed and in its own repository. All future development will continue here.

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/....

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:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 94.5%
  • JavaScript 5.5%