How do I lock the country down in Google Maps

api, geolocation, google-maps, locking

Solution

See Google Maps API Range Limiting for an article on how to do this.

The code is all there in the example.

Problem

How would I make it so you cant drag outside of the UK in google maps? Can you lock it down to a certain area, as I'd like to be able to drag around the UK but not outside. Ta Chris

Original source