新的Google地图嵌入选项 [英] New Google Maps embedding option

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

问题描述

自从2013年最新的Google地图更新以来,是否有可用于简单嵌入Google地图的方式或资源? 我曾尝试使用旧版地图系统,但它不会产生预期的结果。
此外,我曾尝试使用Google Maps Engine,但也没有运气,因为您只能通过链接进行共享,而不是嵌入代码。

解决方案

经过对该主题的广泛研究后,我发现嵌入新Google地图没有简单的方法。一旦Google决定更新Google地图,问题可能会消失。然而,我还没有看到Google地图的发展路线图,所以我不能真正为他们担保。



除了使用简单的解决方案外,还有其他两个(不是那么简单
$ b




解决方案1 ​​



使用 Google Maps API ,您可以在其中找到开发人员指南,API参考和代码示例。关于这一点没有简单的方法,只需按照Google提供的说明并查看示例即可。希望有些东西可以帮助你。



Google Maps API简单指南




解决方案2



使用 Google Maps Engine strong>会为您提供创建自己的地图的方法。一旦你创建了一张地图,最后添加了别针,点数,路线等,你可以选择 share 选项。但是,共享选项仅允许您共享链接,而不是嵌入。我只想指出这个功能,如果你愿意,系统。



要嵌入地图,您必须单击左上角的文件夹。显示在下面的图片上,然后选择嵌入到我的网站上选项。 $ b


Since the latest Google Maps update in 2013, is there a way or a resource that can be used for simple embedding Google Maps?

I have tried using the old maps system but it does not produce desired results. Also, I have tried using Google Maps Engine, no luck there as well, because you are only served with a link to share, not embed code.

解决方案

After extensive research on the topic I found no simple way of embedding new Google Maps. Problem will possibly go away once Google decides to update Google Maps. However, I have not seen Google Maps development roadmap and so I can't really vouch for them.

Apart from using simple solution, there are two others (not so simple of course) that might provide a decent substitution.


Solution 1

Using Google Maps API where you can find Developer guides, API reference and code samples. There is no easy way about this, simply follow the instructions and review examples that Google has supplied. Hopefully there might be something in it that will help you.

Simple guide to Google Maps API


Solution 2

Using Google Maps Engine will offer you a way to create your own map. Once you have created a map, added pins, points, routes, etc. at the end you can select option to share. However, option to share just allows you to share a link, not embed. I just wanted to point out this "feature", if you will, of the system.

To embed a map you have to click on a folder in the upper left corner. Shown on the image below and select Embed on my site option.

这篇关于新的Google地图嵌入选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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