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
    });
4

1 回答 1

0

有一个关于精灵缩放的未解决问题报告 (#4359) 。在 2012 年 8 月 19 日的初始报告之后,任何人都没有任何活动。如果这是您遇到的问题,您可能会“加注”该问题。

于 2013-02-22T00:10:24.003 回答