diff --git a/src/components/Map.jsx b/src/components/Map.jsx index 492d152..25e6754 100644 --- a/src/components/Map.jsx +++ b/src/components/Map.jsx @@ -192,9 +192,8 @@ class Map extends React.Component { onClusterSelect (e) { const { id } = e.target const { longitude, latitude } = e.target.attributes - const { x, y } = this.projectPoint([latitude.value, longitude.value]) const expansionZoom = Math.max(this.index.getClusterExpansionZoom(parseInt(id)), this.index.options.minZoom) - this.map.flyTo([x, y], expansionZoom) + this.map.flyTo(new L.LatLng(latitude.value, longitude.value), expansionZoom) } getClientDims () {