How to use the @react-google-maps/marker-clusterer.Clusterer function in @react-google-maps/marker-clusterer

To help you get started, we’ve selected a few @react-google-maps/marker-clusterer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JustFly1984 / react-google-maps-api / packages / react-google-maps-api / src / components / addons / MarkerClusterer.tsx View on Github external
componentDidMount(): void {
    if (this.context) {
      const markerClusterer = new Clusterer(
        this.context,
        [],
        this.props.options
      )

      this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({
        updaterMap,
        eventMap,
        prevProps: {},
        nextProps: this.props,
        instance: markerClusterer
      })

      this.setState(
        function setClusterer(): ClustererState {
          return {

@react-google-maps/marker-clusterer

Marker Clusterer for React.js Google Maps API

MIT
Latest version published 2 months ago

Package Health Score

90 / 100
Full package analysis

Popular @react-google-maps/marker-clusterer functions