如何从新的Google地图嵌入中移除框? [英] How to remove box from new Google Maps embeds?
问题描述
我该如何摆脱这件事?在这个例子中,这家公司与爱尔兰教练员在同一座大楼内。地图坚持认为,由于某种原因,这位律师通过提供地址,希望通知其潜在客户爱尔兰教练员在哪里! $ 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'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'Connell+Street+Lower%2C+Dublin+1%2C+Ireland!5e0!
I've tried it for other addresses as well.
这篇关于如何从新的Google地图嵌入中移除框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!