A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/googlemaps/js-markerclustererplus below:

GitHub - googlemaps/js-markerclustererplus

Google Maps JavaScript MarkerClustererPlus

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.

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

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.

The reference documentation can be found at this link.

import MarkerClusterer from '@googlemaps/markerclustererplus';

const markerCluster = new MarkerClusterer(map, markers);

View the package in action:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4