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

Need properties to specify style for selected features #401

Open smalers opened 3 years ago

smalers commented 3 years ago

Need to implement properties for features that are selected. Technical considerations are:

  1. When agreed upon, properties need to be documented in GeoMapProject documentation.
  2. Style for highlighted features (for mouseover) is different than style for selected features (need properties for both).
  3. Default properties need to be hard-coded for general behavior, ideally in obvious places in the code.
  4. Properties for styling include typical properties for Leaflet including color, opacity, fillColor, fillOpacity, etc. How are they specified? For example: highlightColor, selectColor, etc.?
  5. Are properties available at layer (layer view) and larger scale (map, application)? The more finer scope would override the coarser scope.
  6. How to deal with select color when there is a color clash, such as yellow on yellow?
smalers commented 3 years ago

I updated the Poudre Basin Information website to set highlightEnabled:true for polygon layers that have dense features. This generally works OK. However, the pale yellow highlight sometimes makes the highlighted feature look transparent as if the feature does not exist. For example, see the following. It may work better if the polygon outline is full yellow and the fill color is the same as the original. It would be good to figure out the highlight properties so that there is flexibility to try before perhaps changing the default highlight from fill opacity to outline. However, the problem is that some polygon outlines do not fully render due to neighboring polygons overlapping. This may cause an issue using the outline rather than fill.

http://poudre.openwaterfoundation.org/latest/#/map/entities-ditches