2013-02-21 53 views
1
var marker = new google.maps.Marker({ 
     position: new google.maps.LatLng(9.967937,-84.15062), 
     draggable: true, 
     //icon: marker0000, 
     icon: new google.maps.MarkerImage("/static/img/map/markers/1/sprite3.png",  
     new google.maps.Size(40*scaleFactor, 24*scaleFactor), // desired size 
     new google.maps.Point(41, offset*scaleFactor), // offset within the scaled sprite 
     new google.maps.Point(20*scaleFactor, 12*scaleFactor), // anchor point is half of the desired size 
     new google.maps.Size(123*scaleFactor, 52*scaleFactor)), // scaled size of the entire sprite 
     map: map 
    }); 
+0

有問題嗎?問題的陳述? – geocodezip 2013-02-21 22:15:54

+0

指向sprite3.png的鏈接也會有幫助(或者展示該問題的示例/ jsfiddle)。 – geocodezip 2013-02-21 22:24:19

回答

0

在精靈縮放上有一個開放的issue report (#4359)。任何人在2012年8月19日的初始報告後都沒有任何活動。如果這是您遇到的問題,那麼您可能會「明確」該問題。

+0

是一個問題,我在精靈和標記程序中也是新手 – user2097157 2013-02-22 01:05:24