我正在使用Google Maps Flash API,我有一个牛眼标记,用户应该将它拖到正确的位置,但是每当你拖动一些东西时,它就会飞起来,下面就会出现这个愚蠢的目标十字,这是我想要防止的,因为它看起来不好,我甚至想说它很混乱。
到目前为止,我唯一的想法是设置图标的偏移量,以补偿用户单击标记时的“飞行”高度,但我认为可能有一个隐藏的选项可以做到这一点,或者只是一个我在文档中没有得到的选项,但我想我现在已经尝试过了。
干杯
发布于 2009-05-19 14:09:33
尝试如下所示:
var square = new GIcon();
square.dragCrossImage = ""; // no image for the cross
square.maxHeight = 0.1; // it only raises a fraction of a bit
square.image = "/edit/images/square.gif";
square.shadow = "";
square.iconSize = new GSize(10, 10);
square.shadowSize = new GSize(5, 5);
square.iconAnchor = new GPoint(5, 5);
square.infoWindowAnchor = new GPoint(15, 15);
传递可选属性dragCrossMove: false
https://stackoverflow.com/questions/839029
复制相似问题