我需要谷歌地圖v3中JavaScript的幫助我有一個圖像,我需要能夠打開它。這是有效的,但真正的問題是,我不能感染一個標記,因爲我不知道如何調用它並修改這個標記。我告訴你的代碼的一部分:在谷歌地圖V3中打開圖片?
標記:
sURL = 'http://www.sl2o.com/tc/picture/Fleche.PNG';
iWidth = 97;
iHeight = 100;
mImage = new google.maps.MarkerImage(sURL, new google.maps.Size(iWidth,iHeight), new google.maps.Point(0,0), new google.maps.Point(Math.round(iWidth/2),Math.round(iHeight/2)));
var oMarker = new google.maps.Marker({
'position': new google.maps.LatLng(iStartLat,iStartLon),
'map': map,
'title': 'mon point',
'icon': mImage
});
然後,我有這樣的:
onload=function(){
rotate.call(document.getElementById('im'),50);
}
</script>
<img id="im" src="http://www.sl2o.com/tc/picture/Fleche.PNG" width="97" height="100" />
所以這是它。正如你所看到的,我正在影響這個圖像,事實上我需要感染這個標記。我該怎麼做 ?請我需要這個工作在幾個小時之內。謝謝 !!
非常感謝!但我如何在我的代碼中使用它?我無法適應它,Sory我是JS新手:S – Ilrodri 2011-01-10 11:38:54