谷歌地图在Web应用程序中离线 [英] Google Map offline in web application

查看:112
本文介绍了谷歌地图在Web应用程序中离线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何下​​载谷歌地图中的所有图片,以便永久在网络应用程序中使用离线访问?



我可以使用

  src =// maps.googleapis.com/maps/api/js?sensor=false&language=en

但是我需要通过在线下载所有内容永远离线访问。

解决方案

恐怕您尝试实施的解决方案违反了服务条款。请参阅第10.1(a)段:


除通过服务外无法访问API或内容。除通过服务之外,您不会访问Maps API或内容。例如,您不能通过Maps API以外的接口或渠道(包括未公开的Google界面)访问地图图块或图像。

和10.5(d)ToS:


没有缓存或存储。您不会预先获取,缓存,索引或存储任何在服务之外使用的内容,除非您可能因为网络延迟而仅为了提高Maps API实施的性能而存储有限量的内容(并且而不是为了防止Google准确地跟踪使用情况),并且只有当这种存储:
是暂时的(并且在任何情况下不得超过30个日历日)时;
是安全的;
不处理或聚合内容或服务的任何部分;和
不会以任何方式修改归因。


https://developers.google.com/maps/terms#10-license-restrictions



目前无法通过Google地图JavaScript API进行离线访问。在公共问题跟踪器中有一项功能请求:



https://issuetracker.google.com/issues/35827808



请出示此功能请求以表达您的兴趣并从Google获得更多更新。

How to download all the images in google map to avail the offline access forever in the web application?

I can able to perform the online operations using

src="//maps.googleapis.com/maps/api/js?sensor=false&language=en"

but I need Offline access forever by downloading everything once in online.

解决方案

I am afraid the solution that you try to implement is against of the terms of service. Please refer to paragraphs 10.1 (a):

No access to APIs or Content except through the Service. You will not access the Maps API(s) or the Content except through the Service. For example, you must not access map tiles or imagery through interfaces or channels (including undocumented Google interfaces) other than the Maps API(s).

and 10.5 (d) of ToS:

No caching or storage. You will not pre-fetch, cache, index, or store any Content to be used outside the Service, except that you may store limited amounts of Content solely for the purpose of improving the performance of your Maps API Implementation due to network latency (and not for the purpose of preventing Google from accurately tracking usage), and only if such storage: is temporary (and in no event more than 30 calendar days); is secure; does not manipulate or aggregate any part of the Content or Service; and does not modify attribution in any way.

https://developers.google.com/maps/terms#10-license-restrictions

The offline access via Maps JavaScript API is not available at the moment. There is a feature request in the public issue tracker:

https://issuetracker.google.com/issues/35827808

Please star this feature request to express your interest and receive further updates from Google.

这篇关于谷歌地图在Web应用程序中离线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆