omeka / MallMap

0 stars 4 forks source link

Should we set a maximum bounds? #12

Closed jimsafley closed 11 years ago

jimsafley commented 11 years ago

Is there a reason why we shouldn't restrict the map to the National Mall and surrounding area? Doing so would prevent users from zooming beyond the historical map boundaries, where there's an unsightly white frame.

From the Leflet documentation:

When this option is set, the map restricts the view to the given geographical bounds, bouncing the user back when he tries to pan outside the view, and also not allowing to zoom out to a view that's larger than the given bounds (depending on the map size). To set the restriction dynamically, use setMaxBounds method

sheilabrennan commented 11 years ago

I'm ok with not letting people go far beyond the historical map boundaries.