有没有其他人体验过垂直拉伸的自定义地标并找到了解决方案?
示例: http: //www.mattpotts.com/so-stretched.png
这是我的代码:
var blueIcon = new GIcon(G_DEFAULT_ICON); blueIcon.image = "images/beer-24x24.png"; var marker = new GMarker(point, {draggable:true, icon:blueIcon})
有没有其他人体验过垂直拉伸的自定义地标并找到了解决方案?
示例: http: //www.mattpotts.com/so-stretched.png
这是我的代码:
var blueIcon = new GIcon(G_DEFAULT_ICON); blueIcon.image = "images/beer-24x24.png"; var marker = new GMarker(point, {draggable:true, icon:blueIcon})
听起来你想设置:
blueIcon.size = new GSize(24, 24);
以及自定义GIcon的其他属性。发生拉伸是因为G_DEFAULT_ICON
它是典型的地图图钉,大小类似于 20x32。