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
});
有問題嗎?問題的陳述? – geocodezip 2013-02-21 22:15:54
指向sprite3.png的鏈接也會有幫助(或者展示該問題的示例/ jsfiddle)。 – geocodezip 2013-02-21 22:24:19