EQWorks / widget-studio

Widget-creating tool for charts, maps, tables, stats
https://eqworks.github.io/widget-studio/
2 stars 3 forks source link

[G2M] Map - add MVT layer to react-maps adapter #201

Closed geoerika closed 1 year ago

geoerika commented 1 year ago

https://www.notion.so/eqproduct/Dashboard-add-MVT-layer-to-Widget-Studio-d1be434011414afbb40202e578bf7c85?pvs=4

Closes #200

Changes:

Map Widget

  1. For polygons we allow now two ways of rendering: using geojson layer for when we have geojson data & pure MVT layer for when we don't have configuration for elevation visualization
  2. For this, I added a Use MVT Render button to switch between the two ways of rendering the polygons, giving the option to the user to use the best rendering method for the data they are dealing with
  3. Given the above changes, the Labels feature will only be available to polygons rendered with geojson layers
  4. Also, the pure MVT rendering for fill visualization will not adjust the viewport to data extent, because of lack of coordinate data
  5. To limit performance issues, for pure MVT rendering for Postal Codes we are only allowing map visualization at higher zoom levels. If the user zooms out too much, a message will appear to inform that a higher zoom level is needed for Postal Code visualization
Screen Shot 2023-02-21 at 4 50 09 PM Screen Shot 2023-02-21 at 5 00 28 PM

Test Story

github-actions[bot] commented 1 year ago

📚 Storybook preview (updated to bd0dd93050eadf62d3c2f575f8300431cb2e972b)