Fix extent bugs
When the interface loads (in mobile), there are zero earthquakes listed. We should be showing all events (not limiting by extents) until the map is shown and extents are determined and set on the leaflet map:
Some issues, currently:
- When the map loads (in mobile) the map has an area of zero (east/west extents are the same), and no events are loaded by default. Until the user views the map we want to show all events in the list.
- When you switch from list --> map on mobile, the map extents are not centered on the U.S.
- It appears we may have some
map.invalidateSize()
issues when opening and closing panels, some of the map tiles are not displayed - When the map is loaded on desktop/mobile we are not honoring the map extents in state.
Mobile, no events loading in list by default
Mobile, switch to map, not honoring U.S. default extents in state .. also invalidateSize is not being called on the map, see the unloaded tile.
Desktop, not honoring U.S. default extents in state
Edited by Edward J Hunter