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

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

问题描述

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

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 地图要求您在使用其基本地图时仅使用其 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天全站免登陆