nst-guide / mobile

Open source mapping app for National Scenic Trails
GNU General Public License v3.0
7 stars 0 forks source link

Map layers component #19

Open kylebarron opened 4 years ago

kylebarron commented 4 years ago

I need a component (modal?) where users can select which map layers should be displayed.

Select layers

I need a selectable list that also has drag and drop sorting functionality.

Opacity slider

Connect to the Map component

Use redux for state to keep track of layer ordering?

Inside Map, I need to figure out how to change ordering based on state. Especially aboveLayerID when one is resorted to be on top of the other.

kylebarron commented 4 years ago

https://medium.com/better-programming/how-to-highlight-and-multi-select-items-in-a-flatlist-component-react-native-1ca416dec4bc

kylebarron commented 4 years ago

For now just disregard ordering of layers and only include functionality to turn on and off.