谷歌地图的传单 [英] Leaflet in google maps

查看:101
本文介绍了谷歌地图的传单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以在Google地图中使用传单吗?搜索和阅读有关它的文章,我们发现有一些传单插件可用. 使用它,我们可以使用Google Map +传单来构建应用程序.

Can we use leaflet in google maps? Searching and reading articles about it, we found that there are some leaflet plugins available. Using that we can build application using google map + leaflet.

推荐答案

只需明确一点:Leaflet只是一个查看库,而Google Maps提供基本地图(平铺)和API(例如Leaflet).

Just to be clear: Leaflet is just a viewing library, whereas Google Maps provides both the base maps (tiles) and an API (like Leaflet).

Google Maps 需要在使用其基础地图时仅使用其API.

Google Maps requires that you use exclusively its API when using its base maps.

但是,确实有一个 Leaflet插件声称可以充当该代理的代理. Google Maps API,因此尊重其使用条款,是的,听起来确实可行.

However, there is indeed a plugin for Leaflet that claims to act as a proxy for the Google Maps API, hence respecting its Terms of Use, so YES it sounds do-able.

然后,您可以决定通过该插件使用Leaflet还是直接使用Google Maps API.在这一点上,这听起来更像是一个问题,即哪个可以为您提供所需的功能.

Then you are left with the decision of using Leaflet with that plugin or directly using Google Maps API. At this point this sounds more like a question of which one provides you with the features you are looking for.

更新

最初提到的插件已不再维护.

The originally mentioned plugin is no longer maintained.

这是最近的一个: Leaflet.GridLayer.GoogleMutant

这篇关于谷歌地图的传单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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