嗨我需要谷歌位置标记在鼠标悬停时弹跳,比如 http://www.snapdeal.com/deals-bangalore_koramangala_plus 。如果点击任何位置标记,此链接将弹跳,如果有人知道让我知道...
答案 0 :(得分:0)
GEvent.addListener(this, "mouseover", function() {
var ToPixel = new GPoint();
var AddOffset = new GPoint();
var ToLatlag = new GLatLng();
var currentProjection = G_NORMAL_MAP.getProjection();
ToPixel = currentProjection.fromLatLngToPixel(**this.latlng**, this.map.getZoom());
AddOffset = new GPoint(ToPixel.x,ToPixel.y-2);
ToLatlag = currentProjection.fromPixelToLatLng(AddOffset,this.map.getZoom());
this.setLatLng(ToLatlag);
this.redraw(true);
});
GEvent.addListener(this, "mouseout", function() {
this.setLatLng(this.latlng);
});