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 icon layer; initial coordinates for map view #189

Closed geoerika closed 1 year ago

geoerika commented 1 year ago

Changes:

  1. Map widget - added map icon layer switch for location pins when data contains columns with longitude & latitude
  2. Added Pin Tooltip Key selection & alias for icon layer Screen Shot 2022-10-31 at 12 38 38 PM

Recording:

https://user-images.githubusercontent.com/41120953/199062995-5588ca55-f77d-4657-81dc-951a9dadff33.mov

  1. Added Clear button also fro Domain Values & Map Domain Values for charts & maps
  2. Fix the Clear function for aliases. Now, the Clear function will only clear the alias values in the section where it is applied. Ex, when used in the Domain section, only the Domain alias will be deleted. see recording below:

https://user-images.githubusercontent.com/41120953/199063784-320545d9-8180-4689-9eff-cf64abea81f3.mov

  1. Note: for alias key edit function, we are blocking the alias for Pin Tooltip Key when the key is the same as the Domain key. I could not make the state work to have the edit work in both places for the same key, so, for now, I will only allow alias editing in the Domain section.

Test Story

  1. I also adjusted the initial map view to use coordinates data added to the data set under the columns: mapview_lat & mapvie_lon. This will help with visualizing the dealer location on the map & initial area for map to display the postal codes - one of the scenarios I am testing for postal code visualization on the Cox maps. Note, it takes a bit to load data in this recording so patience or skip to sec 24 :).

https://user-images.githubusercontent.com/41120953/199068111-95795d9e-cc0b-4897-9ec0-fcf2c2ad9819.mov

github-actions[bot] commented 1 year ago

📚 Storybook preview (updated to 3c0a3d6c3a1ffd146b4da81f1aa2cffdab0f0189)