codeforboston/filter-template — pull request #18 by StillwellMedia (2013-11-13 06:24:06+00:00)
Title: issue #7 map moves twice fix; Expanded max bounds as suggested in ticket...

"the map moves normally when clicking an icon at the edge"

I expanded the max bounds as suggested in the ticket. However since the bounds are not dynamic there is potential for users on small screens to get 'lost', and for users with exceptionally large screens to see the screen move twice.

Alternate solution options:

1) Find device resolution and set max bounds dynamically when the user loads the app.

2) Allow pins on the edge of the map to be un-centered, by adjusting the latlng supplied to map.panTo(e.latlng) in the onClick handler.

3) Put a 'center map' button next to the zoom in / out controls.