Limiting the Display of the Map to a Single Country

1,256 views
Skip to first unread message

Magician

unread,
Oct 27, 2010, 4:58:06 PM10/27/10
to google-map...@googlegroups.com
Dear Forum,

I have developed a Google Map application and it is working nicely. I have found the Javascript implementation to be fairly straightforward with only a few minor issues. I created my own stylized map removing state names and adding polygons that define specific geographical regions on the map. Sorry I cannot provide you a link since it is on an U.S. government site and requires VPN access. (I realize that the posting guidelines emphasize this but my hands are tied).

What I would like to do now is to limit the map to only display the continental U.S. and Alaska. I have been all over the demo code and documentation and have not found anything, so far, that would indicate how to do this. 

I suppose I could create a polygon that covers the rest of the world and add some opacity to it so that only a dim world map is shown through it.

I would appreciate any answers or ideas you may have that would help in this endeavor.

Thanks in advance,

Magician

geoco...@gmail.com

unread,
Oct 27, 2010, 5:06:21 PM10/27/10
to Google Maps JavaScript API v3
On Oct 27, 1:58 pm, Magician <lmatth...@mac.com> wrote:
> Dear Forum,
>
> I have developed a Google Map application and it is working nicely. I
> have found the Javascript implementation to be fairly straightforward
> with only a few minor issues. I created my own stylized map removing
> state names and adding polygons that define specific geographical
> regions on the map. Sorry I cannot provide you a link since it is on an
> U.S. government site and requires VPN access. (I realize that the
> posting guidelines emphasize this but my hands are tied).

It is not only the posting guidelines, but the Terms of Use require it
be public.

>
> What I would like to do now is to limit the map to only display the
> continental U.S. and Alaska. I have been all over the demo code and
> documentation and have not found anything, so far, that would indicate
> how to do this.
>
> I suppose I could create a polygon that covers the rest of the world
> and add some opacity to it so that only a dim world map is shown
> through it.
>
> I would appreciate any answers or ideas you may have that would help in
> this endeavor.

See this v2 example (by marcelo):
http://maps.forum.nu/gm_texas.html

-- Larry

>
> Thanks in advance,
>
> Magician

Magician

unread,
Oct 27, 2010, 5:21:56 PM10/27/10
to Google Maps JavaScript API v3
Dear Team,

The specific department that I am doing work for has a Google Maps
Premier license which has different Terms of Use. It is my
understanding that this license allows for protected sites to use
Google Maps.

Thanks for the link to Texas. It should prove to be very useful.

Magician

On Oct 27, 4:06 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:

geoco...@gmail.com

unread,
Oct 27, 2010, 5:51:59 PM10/27/10
to Google Maps JavaScript API v3
On Oct 27, 2:21 pm, Magician <lmatth...@mac.com> wrote:
> Dear Team,
>
> The specific department that I am doing work for has a Google Maps
> Premier license which has different Terms of Use. It is my
> understanding that this license allows for protected sites to use
> Google Maps.

That is true. I was thinking I should have mentioned that.
Glad you have the Premier license, you might be able to ask your
account rep for support, but you are probably correct in asking here
first.

-- Larry
> > > Magician- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages