是否能够通过ArcGIS Flex API中使用谷歌地图

是否能够通过ArcGIS Flex API中使用谷歌地图作为底图?

【问题分析】
这个问题包含了两个方面,一方面是技术上是否可行,另一方面是这一行为是否合法。

1. 首先说技术方面,ESRI没有提供专门用于google地图的API,但是提供了WebTiledLayer类(The WebTiledLayer class provides a simple way to add non-ArcGIS Server map tiles as a layer to a map.),可以加载第三方的缓存服务,包括加载google地图。使用WebTiledLayer调用谷歌地图,其url可以参考以下几种:
1)谷歌地图: 
URL:谷歌的地图风格非常多,URL也很多,最常见的风格对应的URL是:http://{subDomain}.google.cn/vt/lyrs=m@245000000&hl=zh-CN&gl=CN&src=app&x={col}&y={row}&z={level}&scale=1.100000023841858&s=Galileo 
子域:mt0,mt1,mt2,mt3 
2)谷歌影像地图: 
URL:http://{subDomain}.google.cn/vt/lyrs=s@142&hl=zh-CN&gl=CN&src=app&x={col}&y={row}&z={level}&scale=1.100000023841858&s=G 
子域:mt0,mt1,mt2,mt3 
3)谷歌交通流量图 
URL:谷歌交通流量图也有很多大量不同的风格,针对不同的底图,应该使用不同的地址,比如: 
http://{subDomain}.google.com/vt?hl=zh-CN&gl=CN&src=app&x={col}&y={row}&z={level}&scale=1.100000023841858&s=G&lyrs=h@245000000,traffic|seconds_into_week:-1&style=15 
子域:mt0,mt1,mt2,mt3 
2. 再说合法性问题
必须通过使用Google API来调用google地图,而不允许通过第三方API。所以尽管可以通过WebTiledLayer类加载google地图,但这一行为是不被允许的( It is against Google Maps terms of use to include a Google basemap in a non-Google API unless your company has permission from Google to do so.)。
已邀请:

谢军

赞同来自:

【解决办法】:
由于此问题不在ESRI技术支持范畴之内,建议查看Google 地图/Google 地球附加服务条款(https://www.google.com/help/terms_maps.html)、使用 Google 地图、Google 地球和街景(https://www.google.com/intl/zh ... .html)等使用条例,或者联系 Google Maps for Work 销售团队(https://www.google.com/intx/zh ... -form)。

要回复问题请先登录注册