CSBP-CPSE / web-mapping-components

Other
2 stars 2 forks source link

Reduce store.js code duplication #14

Closed roikle closed 3 years ago

roikle commented 3 years ago

Issue: I noticed some code duplication with the store.js in the lode-viewer/store.js, proximity-viewer/store.js, and population-viewer/store.js. I've diff these three files and the only difference between them is that the population-viewer/store.js has different default values for lat, long, and zoom.

Suggestion: To reduce code duplication, I would suggest moving the store.js to more accessible location when it can be used by all three viewers e.g. basic-tools/tools.