如何从新的Google地图嵌入中移除框? [英] How to remove box from new Google Maps embeds?

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

问题描述

谷歌似乎改变了他们的iFrames的工作方式。现在左上角有一个信息框,试图显示地名。问题在于,在爱尔兰,通常不可能使用商家的名字来查找地图,并且通常您需要使用街道名称等等,这使得该箱子功能无用,因为街道名称正好在那里地图,以及地图旁边的页面!



我该如何摆脱这件事?在这个例子中,这家公司与爱尔兰教练员在同一座大楼内。地图坚持认为,由于某种原因,这位律师通过提供地址,希望通知其潜在客户爱尔兰教练员在哪里! $ b


我试过iwloc,但它什么也没做,我可以'因为它在另一个域上,所以它通过CSS和jQuery来实现它!



任何想法? / div>

2017年2月左右停止工作,他们必须更新他们的API。 :($ / b>
$ b

这就是你的做法!



工作版本

 < iframe src =https://www.google.com/maps/embed?pb =!1m18!1m12!1m3!1d2381.7399040776495!2d-6.261147484122739!3d53.34791197997939!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!3m2!1sen!2sus!4v1462581622087width = 600height =450frameborder =0style =border:0allowfullscreen>< / iframe> 

我注意到另一个网站的嵌入式模式,只有查看大图文本,没有额外的东西,只需要删除几个字符。



已完全嵌入

 < iframe src =https:/ /www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2381.7399040776495!2d-6.261147484122739!3d53.34791197997939!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1! !!!3立方米1平方米1s0x48670e84fbdd6bd3%3A0x998692b4f1b691e1 2sUlster +银行+商会%2C +的O&#39;康奈尔+街+低%2C + Dubli n + 1%2C + Ireland!5e0!3m2!1sen!2sus!4v1462581622087width =600height =450frameborder =0style =border:0allowfullscreen>< / iframe> 

这是被删除的部分

  1m2!1s0x48670e84fbdd6bd3%3A0x998692b4f1b691e1!2sUlster + Bank + Chambers%2C + O&#39; Connell + Street + Lower%2C + Dublin + 1%2C + Ireland !5e0! 

我也尝试了其他地址。


Google appear to have changed how their iFrames work. There is now an infobox at the top left that tries to display the place name. The problem is that here in Ireland it's often impossible to use the name of the business to pinpoint a map, and often you need to use the street name etc etc, which makes the box functionaly useless as the name of the street is right there on the map, as well as on the page beside the map!

How can I get rid of this thing? In this example the business is in the same building as Irish Coaches. Maps insists that by putting in the address, this solicitor for some reason want's to inform its prospective clients of where Irish Coaches is!

I've tried iwloc but it does nothing, and I can't effect it via CSS and jQuery because it's on another domain!

Any ideas?

解决方案

This stopped working around February 2017. They must've updated their API. :(

This is how you do it!

Working version

<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2381.7399040776495!2d-6.261147484122739!3d53.34791197997939!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!3m2!1sen!2sus!4v1462581622087" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>

I noticed a pattern in another site's embed that only had the "View larger map" text and none of the extra stuff. Just a few characters had to be removed.

Full embed you are given

<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2381.7399040776495!2d-6.261147484122739!3d53.34791197997939!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x48670e84fbdd6bd3%3A0x998692b4f1b691e1!2sUlster+Bank+Chambers%2C+O&#39;Connell+Street+Lower%2C+Dublin+1%2C+Ireland!5e0!3m2!1sen!2sus!4v1462581622087" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>

This is the part that's removed

1m2!1s0x48670e84fbdd6bd3%3A0x998692b4f1b691e1!2sUlster+Bank+Chambers%2C+O&#39;Connell+Street+Lower%2C+Dublin+1%2C+Ireland!5e0!

I've tried it for other addresses as well.

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

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