From bcfb6488d8217763a06d11f9948fb81dea52e5e9 Mon Sep 17 00:00:00 2001 From: pjsier Date: Fri, 8 Nov 2024 19:21:17 -0500 Subject: [PATCH] refactor: add taxpayer to tooltip --- client/src/components/Map/Map.jsx | 17 ++--------------- .../components/Search/DetailedSearchResults.jsx | 2 +- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/client/src/components/Map/Map.jsx b/client/src/components/Map/Map.jsx index 3345756..29f6b03 100644 --- a/client/src/components/Map/Map.jsx +++ b/client/src/components/Map/Map.jsx @@ -256,24 +256,10 @@ class PraxisMap extends Component { ) } - _renderTooltip() { - // TODO: Move to use mapbox native tooltip, performance on this is too rough - const { hoveredFeature, x, y } = this.props.currentFeature - - return ( - hoveredFeature && ( -
-
{hoveredFeature.properties.propaddr}
-
Speculator: {hoveredFeature.properties.own_id}
-
Properties owned: {hoveredFeature.properties.count}
-
- ) - ) - } - _removeTooltip() { this.props.dispatch(getHoveredFeatureAction(null)) } + // add a new marker if user clicks on a parcel feature // nothing happens if there is no feature _handleMapClick = async (event) => { @@ -442,6 +428,7 @@ class PraxisMap extends Component {
{hoveredFeature.properties.propaddr}
Speculator: {hoveredFeature.properties.own_id}
+
Taxpayer: {hoveredFeature.properties.taxpayer}
Properties owned: {hoveredFeature.properties.own_count}
diff --git a/client/src/components/Search/DetailedSearchResults.jsx b/client/src/components/Search/DetailedSearchResults.jsx index 2e86e80..5472640 100644 --- a/client/src/components/Search/DetailedSearchResults.jsx +++ b/client/src/components/Search/DetailedSearchResults.jsx @@ -599,7 +599,7 @@ function SingleParcel(props) { Detroit zip code {propzip}, and was one of{" "} {count} properties owned by speculator{" "} {capitalizeFirstLetter(own_id)}. Additional years of - speculation for this property ocurred in{" "} + speculation for this property occurred in{" "} {praxisRecordYears ? praxisRecordYears.join(", ") : null}