gpt4 book ai didi

javascript - 如何在本地而不是从 CDN 包含 Google Maps JS 库

转载 作者:数据小太阳 更新时间:2023-10-29 05:47:49 24 4
gpt4 key购买 nike

目前我正在我的混合移动应用程序中像这样从谷歌 CDN 加载谷歌地图 JS API。

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places,geometry"></script>

有没有一种干净、官方的方法可以将这个库本地包含在我的资源中?例如,我找不到官方的 Bower 组件等......

例如

<script type="text/javascript" src="lib/maps/api/js?libraries=places,geometry"></script>

我可以只从上面的 URL 下载 JS 文件并将其包含在我的网络应用程序的相关文件夹中吗?

最佳答案

没有。 Terms状态:

10.1 Administrative Restrictions.

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 throughinterfaces or channels (including undocumented Google interfaces)other than the Maps API(s).

10.5 Intellectual Property Restrictions.
No use of Content outside the Service. You will not use any Content outside of the Serviceexcept as expressly permitted to do so in Subsection (d). For example,you will not export or save the Content to a third party’s platform orservice. No caching or storage. You will not pre-fetch, cache, index,or store any Content to be used outside the Service, except that youmay store limited amounts of Content solely for the purpose ofimproving the performance of your Maps API Implementation due tonetwork latency (and not for the purpose of preventing Google fromaccurately 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.

关于javascript - 如何在本地而不是从 CDN 包含 Google Maps JS 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36429805/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com