tags:

views:

446

answers:

3

Is it possible to limit Google Maps to display only a given country?

e.g. I'd only like the UK to be visible in a huge sea of blue.

+1  A: 

The short answer is "no" (as they have bitmap images of their maps, and would need to re-render to exclude mainland Europe, etc.) - you could build your own set of tiles using Open Street Map data, to achieve the same thing.

Rowland Shaw
OK, thanks Rowland. I wonder if you could add an opaque overlay to achieve the same effect though?
Ben Aston
You could, but the real map would show through temporarily when you move/zoom/etc.
Rowland Shaw
A: 

Using Javascript you can limit the viewport, but it's not possible to actually get rid of the images of the other countries.

Aistina
+2  A: 

It can be done using overlays, this is the closest example I've seen.

CMS