2013-01-05 56 views
0
<iframe width="280" height="230" frameborder="0" scrolling="no" marginheight="0" 
marginwidth="0" src="https://maps.google.com/maps? 
f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Milwaukee,+wi&amp;aq=&amp; 
sll=42.970,-87.870&amp;sspn=0.004379,0.010568&amp;ie=UTF8&amp;hq=&amp; 
hnear=Milwaukee,+Milwaukee,+Wisconsin&amp;t=m&amp;z=12&amp;iwloc=A&amp; 
output=embed"></iframe> 

以上是我用於威斯康星州密爾沃基谷歌地圖的代碼。然而,在頁面上,它是一個相對較小的地圖,它以'地址'消息爲中心,而不是在路標標記上。我該如何解決這個問題?如何將航點上的谷歌地圖重點放在「地址」消息上?

謝謝!

+0

它的文件應提及縮放級別... – 2013-01-05 18:41:42

回答

1

它很簡單,infowindow泡沫取決於iwloc參數。從中刪除標記項目,默認情況下它不會打開它。

<iframe width="280" height="230" frameborder="0" scrolling="no" marginheight="0" 
marginwidth="0" src="https://maps.google.com/maps? 
f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Milwaukee,+wi&amp;aq=&amp; 
sll=42.970,-87.870&amp;sspn=0.004379,0.010568&amp;ie=UTF8&amp;hq=&amp; 
hnear=Milwaukee,+Milwaukee,+Wisconsin&amp;t=m&amp;z=12&amp;iwloc=&amp; 
output=embed"></iframe> 

通知iwloc=&amp;代替iwloc=A&amp;

Here is a Demo

+0

神奇。謝謝! – user1790093