![](/img/trans.png)
[英]How to set center and zoom of Google Map to cover all markers generated from Wordpress database
[英]How to set zoom out property in google map generated script?
我已經使用maps.google.com網站生成了一個腳本,該腳本顯示了我所需的位置,但是地圖疊加層超出了我定義的屏幕。
任何人都可以指導我如何縮小1-2步,並將該地圖疊加層放到屏幕內部以查看其擊球手。
問題的示例:212.124.100.44/andrida/location/
碼:
<iframe width="390" height="380" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=51+Bellingham+Road,+Arthurs+Seat,+Victoria+3936,+Australia&aq=&sll=-38.367965,144.97331&sspn=0.010077,0.01929&ie=UTF8&hq=&hnear=51+Bellingham+Rd,+Arthurs+Seat+Victoria+3936,+Australia&t=m&z=14&ll=-38.367965,144.97331&output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=51+Bellingham+Road,+Arthurs+Seat,+Victoria+3936,+Australia&aq=&sll=-38.367965,144.97331&sspn=0.010077,0.01929&ie=UTF8&hq=&hnear=51+Bellingham+Rd,+Arthurs+Seat+Victoria+3936,+Australia&t=m&z=14&ll=-38.367965,144.97331" style="color:#0000FF;text-align:left">View Larger Map</a></small>
任何幫助,將不勝感激。
嵌入之前,您應該可以看到一個自定義地圖的鏈接。 如果不確定,請按照下列步驟操作:
1)maps.google.com 2)搜索要嵌入的位置3)單擊“鏈接”按鈕,在打印按鈕旁邊4)現在,您應該可以在“鏈接”按鈕旁邊看到一個彈出窗口5)單擊“自定義”並預覽嵌入的地圖”。6)添加所需的寬度,高度,縮小甚至重新定位位置,以便顯示地址疊加層。 7)如果一切正常,只需復制嵌入代碼
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.