2013-03-06 27 views
1

我試着給我的地圖添加到我的網站,到目前爲止,香港專業教育學院得到它顯示我的地圖,但它的偏移量由幾公里我的KML層出,但其在左面

工作正在進行中左到目前爲止,與標記了左邊:http://www.decking.co.il/indexwip.html#

我的谷歌地圖的網站在正確的地點標記:http://goo.gl/maps/atvDH

<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"> 
</script> <script type="text/javascript"> 
function initialize() { 
var latlng = new google.maps.LatLng(32.147711,34.972229); 
var myOptions = { 
zoom: 9, 
center: latlng, 
mapTypeId: google.maps.MapTypeId.ROADMAP 
}; 
var map = new google.maps.Map(document.getElementById("map_canvas"), 
myOptions); 
var ctaLayer = new google.maps.KmlLayer('https://maps.google.com/maps/ms?authuser=0&vps=2&ie=UTF8&msa=0&output=kml&msid=211701918214336350936.0004be32c642b750948e4', 
{preserveViewport:true}); 
ctaLayer.setMap(map); 
} 

請有人可以告訴我什麼即時做錯了什麼?我一直在尋找解決方案,我是否混合了錯誤的命令?我有沒有把它複雜到某個地方?我已經看到了一種方法來簡單地嵌入到網頁,但我不知道如何使該嵌入出現在我使用的模板中提供它的框內

+0

它看起來並不「向左」。它看起來像你這樣的css衝突(在這裏討論)(http://stackoverflow.com/questions/13962398/google-maps-api-v3-tools-visual-distortions)。 – geocodezip 2013-03-06 20:40:54

+0

真棒,非常感謝,最後一個問題......我怎麼說你回答我的問題? – moxy 2013-03-06 21:20:36

+0

添加我的評論作爲「答案」。你可以接受它來證明它回答了你的問題。 – geocodezip 2013-03-06 21:30:03

回答