美国国家边界和城市边界

美国国家边界和城市边界

本文介绍了如何使用Google地图显示国家边界,美国国家边界和城市边界?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google Maps v3,并且需要为我的地图添加不同区域的边框线。例如,在Google地图中,所有美国国家边界都会自动显示。我需要为不同的国家做同样的事情。例如,显示英格兰的所有城市边界。
如何使用Google Maps API v3做到这一点?

I am using Google Maps v3 and I need to add border lines for different areas to my map. For example, in Google Maps all the US State borders are shown automatically. I need to do the same thing for different countries. For example, show all the city boundaries in England.How i can do this with Google Maps API v3?

问候,
Yossi

Regards,Yossi

推荐答案

您可以使用Google地图中提供的 ,通过查看了解更多信息,然后创建v3 。构成国家,州和城市边界的Lat-Lng坐标不是在Google地图中直接提供的,但有一些支持数据可用:

You can use the KML support that is provided in Google Maps, learn more by reviewing the KML Introduction, and then create v3 KmlLayer. The Lat-Lng coordinates that make up the country, state, and city boundaries is not provided out-of-the-box in Google Maps, but some of supporting data is available:


  1. 由Valery Hronusov创建

  2. 由Filipumme创建

  3. 可从Google下载

  4. 有一些额外的城市数据可供使用,并且需要在线搜索才能找到

  1. KML of the World Countries as created by Valery Hronusov
  2. KML of the World Capitals as created by Filipumme
  3. KML of the US States is available for download from Google
  4. Some additional city data is available, but that is often city-by-city and requires online searching to find

大部分数据也可以公开用于动态检索,如,但在这种情况下,您将使用共享的公共数据。我使用KML来处理这种类型的事情,因为我希望拥有数据的内部副本,保持对数据的完全控制,并且有能力进行自己的更改或更新。

Much of this data is also available publicly for dynamic retrieval as Fusion Tables, but in that case, you will be using shared public data. I use KML for this type of thing, because I want to have internal copies of the data, maintain full control over the data, and have the ability to make my own changes or updates.

这篇关于如何使用Google地图显示国家边界,美国国家边界和城市边界?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 23:15