DEV - De-Select NC Selection on Outside Click #1889
Labels
Complexity: Small
P-feature: Map
Role: Frontend
React front end work
size: 0.50pt
Can be done in 3 hours
Milestone
Overview
We need to modify map by having clicks outside of Los Angeles to return to user to the default map zoom level.
More Info (optional)
Action Items
onClick
method in Map.jsx, that checks to see ifgetAllFeaturesAtPoint()
returned an empty listresetMap
Resources/Instructions
Dev Resources
this.reset()
incomponents > Map > Map.jsx
resetMap
, to the Map component, which later gets drilled down to various sub-componentsgetAllFeaturesAtPoint()
incomponents > Map > Map.jsx
onClick
in the same file, this method allows us to see what Mapbox features we have clicked on.featureLayers
, which is['request-circles', 'nc-fills']
to indicate that we just want to know if we have clicked on a request circle, or an NC fillThe text was updated successfully, but these errors were encountered: