Skip to content

Commit

Permalink
refactor: remove unused supercluster config code
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitb35 committed Sep 17, 2024
1 parent 1f1d56f commit edfc78f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 48 deletions.
4 changes: 2 additions & 2 deletions src/utils/superclusterConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import {} from '../features/common/Layout/MyForestContext';
import { ViewState } from 'react-map-gl-v7/maplibre';

const clusterConfigV2 = {
const clusterConfig = {
radius: 40,
maxZoom: 3,
};
Expand Down Expand Up @@ -38,7 +38,7 @@ const clusterConfigV2 = {
const supercluster = new Supercluster<
MyContributionsSingleRegistration | DonationProperties,
{}
>(clusterConfigV2);
>(clusterConfig);
supercluster.load(geoJson);
const zoom = viewState?.zoom;
if (mapRef && mapRef.current !== null) {
Expand Down
46 changes: 0 additions & 46 deletions src/utils/superclusterConfigV1.ts

This file was deleted.

0 comments on commit edfc78f

Please sign in to comment.