自定义嵌入iframe的Google地图 [英] Customizing a google map that is embedded with an iframe

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

问题描述

所以我一直在看Google Maps,它们具有制作"地图的功能.您自己的地图,并通过自己的界面添加自然界的标记和事物.他们将其嵌入网站的方式是通过使用iframe.

So I have been looking at Google Maps and they have the feature of "making" your own map and adding in markers and things of that nature through their own interface. The way they have you embedding it on your web site is through the use of an iframe.

我一直在阅读Google Maps的文档,其中显示的示例是使用静态输入或使用数据库动态构建页面加载时创建的地图.这是我现在正在查看的文档... 文档

I have been reading the documentation for Google Maps and the examples shown are when the map is created on page load using either by static input or dynamically built using a database. This is the documentation I am looking at right now... Documentation

所以我想知道的是,是否有一种方法可以像使用页面加载时一样自定义使用Google界面构建的地图?

So what I am wondering is whether there is a way to customize the map built using Google's interface in the same way as building it upon page load?

李维

edit:通过阅读更多内容,我得出的结论是,实质上有两个版本的Google Maps?一个供开发人员使用,另一个供那些只想要地图却不在乎其外观或制作方式的人使用?有人可以确认吗?

edit: From reading more about it I came to the conclusion that there are essentially two versions of Google Maps? One for developers and one for someone who just wants a map and doesn't care how it looks or how it is made? Can anyone confirm this?

推荐答案

是正确的. iframe地图只是maps.google.com上指向您地图的链接.如果您想对地图进行更多控制,则需要使用API​​创建地图

That's correct. An iframe map is just a link to your map on maps.google.com. If you want to have more control over the map, you'll need to create it with the API

  • JS API v2
  • JS API v3 (new)

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

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