datadiversitylab / BarrioMap

https://viz.datascience.arizona.edu/barriomap/
MIT License
0 stars 1 forks source link

Enhance the custom scale range #15

Closed cromanpa94 closed 1 year ago

cromanpa94 commented 1 year ago

Note that the custom scale should only allow for a particular range. For instance, it seems that anything >20 has the same zoom level. I don't think that negative values should be allowed either. Consider adding these constrains to the definition of the inputs. I'm referring to this commit: https://github.com/cromanpa94/OSM.sf.shiny/commit/83596e8b43a820545c79eed49ac6d13ca5663d26.

cromanpa94 commented 1 year ago

Here's some relevant information on this, @rog-SARTHAK: https://leafletjs.com/examples/zoom-levels/

cromanpa94 commented 1 year ago

Addressed with the zoomSnap argument in this commit: https://github.com/cromanpa94/OSM.sf.shiny/commit/7c111ec8e757f9db3314976dbf7fd9f7cc9ceacf.