How to display only one country or a specific area in Google maps using the api?

前端 未结 1 1182
太阳男子
太阳男子 2020-11-29 09:53

I am using Google Maps in a project and I want to display only a country map in my map window i.e. I want only the US to show on my map not Canda and Mexico and so on, cutti

相关标签:
1条回答
  • 2020-11-29 10:08

    Check out one of Mike Williams' great GMaps tutorials: in there, he shows how to limit zoom and pan in your map.

    If you want some areas to be non-visible, try this one: I think that's closest to what you want (the example actually does the same thing you want, but it seems to be geared towards Canadians ;)).

    0 讨论(0)
提交回复
热议问题