2017-04-26 70 views
0

我使用嵌入在我的網站谷歌地圖iframe和代碼如何通過在iframe中保留標記來刪除Google地圖地址框?

<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1085.7167751755183!2d90.3674116098519!3d23.750896076109!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3755bf51d563ecbb%3A0x1c5247613aecf1e8!2zS2lkcyAmIE1vbXMg4KaV4Ka_4Kah4Ka4IOCmj-CmqOCnjeCmoSDgpq7gpq4!5e0!3m2!1sen!2sbd!4v1493197219814&output=embed&iwloc=near" width="800" height="400" frameborder="0" style="border:0" allowfullscreen></iframe> 

enter image description here

我想從中刪除地址框,我都遵循一個解決方案 How to remove box from new Google Maps embeds? rawnewdlz解決方案。但解決方案也會刪除標記指針。我需要保持這一點。

請幫助!

+0

您是否想要獲得https://developers.google.com/maps/documentation/embed/guide#place_mode中提及的內容? –

+0

只是想刪除包含地址的白色方塊左上角。 –

回答

1

我注意到只有幾個字符不得不被刪除的模式。

<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2624.9916256937586!2d2.2922926160647448!3d48.858370079287475!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!3m2!1sen!2sin!4v1493209164303" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>

我已刪除了以下部分:1平方米1s0x47e66e2964e34e2d%3A0x8ddca9ee380ef7e0 2sEiffel +塔5e0!!!

+0

我試過這段代碼。但它也刪除指針。我需要指針標記來指示位置。 –

相關問題