EastCoastGreenwayAlliance / ecg-map

Interactive map and trip planner for the ECGA
https://map.greenway.org
7 stars 0 forks source link

Loading should display while geocoding & searching nearest ECG location #42

Closed clhenrick closed 5 years ago

clhenrick commented 7 years ago

Currently the loading indicator only displays when geocoding is happening (I think?), it should stay visible until the geo router finishes locating the nearest ECG segment point.

clhenrick commented 7 years ago

Working better, but the loading message will display once while the geocoding is happening, then go away, then display again while the geo-router is locating the nearest ECG route segment. Ideally it should turn and off only once, and only after a 200 ms delay has passed.

The react-loadable component could help with this, but there will also need to be a single isLoading flag for both the geocoding and geo-routing slices of app state which makes things a little tricky.