johnvf / adapt-web-ui

react web ui for adapt oakland
2 stars 3 forks source link

Added ability to switch basemaps #26

Closed bengolder closed 8 years ago

bengolder commented 8 years ago

This creates a new component, BasemapToggle.js When this toggle (a simple <select> element) is changed, it fires a ViewAction The active basemap is stored in MapStore. The Map needs to check if the basemap has changed when receiving new properties, similar to the way it handles new active layers. However, when the basemap changes, the entire map needs to be re-rendered, and any currently active layers need to be cleared and redrawn once the new basemap has a chance to load.

basemap

bengolder commented 8 years ago

@johnvf please give this a once-over when you have a moment.

bengolder commented 8 years ago

if merged, this would close #7

johnvf commented 8 years ago

Looks good to me