How to use the react-mapbox-gl.Cluster function in react-mapbox-gl

To help you get started, we’ve selected a few react-mapbox-gl 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 thuanmb / react-mapbox-gl-cluster / lib / components / ReactMapboxGlCluster / Cluster.js View on Github external
map.on("zoom", this.mapChange);
  }, {
    key: "shouldComponentUpdate",
    value: function shouldComponentUpdate(nextProps, nextState) {
      var clusterPoints = this.state.clusterPoints;
      var nextClusterPoints = nextState.clusterPoints;

      return !_lodash2.default.isEqual(this.props, nextProps) || !_lodash2.default.isEqual(clusterPoints, nextClusterPoints);

  return OverridedCluster;

OverridedCluster.displayName = "Cluster";

exports.default = OverridedCluster;


A React binding of mapbox-gl-js

Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis