From acedb845af1fa283c3ea096ec62aa08db2a71514 Mon Sep 17 00:00:00 2001 From: Integral Team Date: Wed, 11 Sep 2019 15:39:59 +0700 Subject: [PATCH] disabled stickers clustering --- src/modules/Stickers.ts | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/modules/Stickers.ts b/src/modules/Stickers.ts index 907344e..bd49557 100644 --- a/src/modules/Stickers.ts +++ b/src/modules/Stickers.ts @@ -89,15 +89,19 @@ export class Stickers { this.stickers.map(sticker => sticker.stopEditing()); }; - clusterLayer: MarkerClusterGroup = new MarkerClusterGroup({ - spiderfyOnMaxZoom: false, - showCoverageOnHover: false, - zoomToBoundsOnClick: true, - animate: false, - maxClusterRadius: 80, - // disableClusteringAtZoom: 13, - iconCreateFunction: clusterIcon, - }); + clusterLayer: LayerGroup = new LayerGroup(); + + // uncomment to enable clustering + + // clusterLayer: MarkerClusterGroup = new MarkerClusterGroup({ + // spiderfyOnMaxZoom: false, + // showCoverageOnHover: false, + // zoomToBoundsOnClick: true, + // animate: false, + // maxClusterRadius: 8, + // // disableClusteringAtZoom: 13, + // iconCreateFunction: clusterIcon, + // }); editor: Props['editor']; map: Props['map'];