From c67ddc222f5271f9ec92619e595263f374af5f3f Mon Sep 17 00:00:00 2001 From: pjsier Date: Mon, 28 Oct 2024 19:25:00 -0400 Subject: [PATCH] fix: update click on parcel --- client/src/components/Map/Map.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/Map/Map.jsx b/client/src/components/Map/Map.jsx index f6e8db1..e35e57d 100644 --- a/client/src/components/Map/Map.jsx +++ b/client/src/components/Map/Map.jsx @@ -263,7 +263,7 @@ class PraxisMap extends Component { _handleMapClick = async (event) => { const { hoveredFeature } = this.props.currentFeature if (hoveredFeature) { - const [markerLongitude, markerLatitude] = event.lngLat + const { lng: markerLongitude, lat: markerLatitude } = event.lngLat // set the marker based on event feature coords this.props.dispatch( @@ -348,6 +348,7 @@ class PraxisMap extends Component { this._handleToggleLoadingIndicator(false) }} onMouseOut={() => this._removeTooltip()} + cursor={hoveredFeature ? "pointer" : "auto"} > {latitude && longitude ? (