mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore(legacy-plugin-chart-map-box): bump supercluster to v8 (#30305)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import supercluster from 'supercluster';
|
||||
import Supercluster from 'supercluster';
|
||||
import { DEFAULT_POINT_RADIUS, DEFAULT_MAX_ZOOM } from './MapBox';
|
||||
|
||||
const NOOP = () => {};
|
||||
@@ -72,7 +72,7 @@ export default function transformProps(chartProps) {
|
||||
/* eslint-enable no-param-reassign */
|
||||
};
|
||||
}
|
||||
const clusterer = supercluster(opts);
|
||||
const clusterer = new Supercluster(opts);
|
||||
clusterer.load(geoJSON.features);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user