WSWCWaterDataExchange / WestDAAT

Managing the code of the Western States Water Data Access and Analysis Tool (WestDAAT)
https://westdaat.westernstateswater.org/
BSD 3-Clause "New" or "Revised" License
5 stars 5 forks source link

Selected site + popup card enhancement #78

Open amabdallah opened 2 years ago

amabdallah commented 2 years ago
  1. Allow users to move the summary card away from the selected point
  2. When hovering over a site, change the mouse cursor from palm to pointing finger (just like the prototype)
  3. Highlight the selected point or polygon to stand out.

image

yxlee61 commented 1 year ago

Mapbox popups do not support dragging/moving the popup, so no1 is not possible. https://docs.mapbox.com/mapbox-gl-js/api/markers/#popup no3 involves updating the layers and adding opacity/shadow when clicked or hovered, but I ran out of time. https://docs.mapbox.com/mapbox-gl-js/example/hover-styles/