OpenWaterFoundation / owf-app-infomapper-ng

Open Water Foundation InfoMapper web application for menu-driven maps and visualizations, using Angular
GNU General Public License v3.0
1 stars 2 forks source link

Enable zoom to selected for lines and polygon layers #389

Open smalers opened 3 years ago

smalers commented 3 years ago

This is high priority mainly because it is really useful as a general feature and can hopefully be enabled similar to the point feature.

The layer Data Table search feature works well for all layer types. However, it currently only allows zooming to selected features for points. Being able to zoom for polygons and lines would be helpful. I suggest the following:

  1. Get the zooming working based on the extent of the selected features. Similar to points, buffer with a reasonable boundary around the features.
  2. Use the same concept as selected points, which is the additional temporary layer for selected features.
  3. Use yellow or red to show selected features. Maybe set the line width to be a bit wider so more noticeable? It will be difficult to draw the selected features with yellow and red like points.
  4. Make sure the clear selections logic is working.

Once we have something working mechanically, we can evaluate how to adjust for usability.