Try not set a huge translate when a pan happens. Fixes #2602
Fix the warnings
Change how we work out if a pan is ok.
Merge pull request #2617 from danzel/nobigpan-2602

Nobigpan 2602
Update GridLayer.js
Merge pull request #2620 from erictheise/master

Update GridLayer.js