Javascript 如何设置谷歌地图标记反弹?
嗨,我需要谷歌定位标记弹跳鼠标时,像 。如果单击任何位置标记,此链接将反弹,如果有人知道,请告诉我…重复的Javascript 如何设置谷歌地图标记反弹?,javascript,Javascript,嗨,我需要谷歌定位标记弹跳鼠标时,像 。如果单击任何位置标记,此链接将反弹,如果有人知道,请告诉我…重复的 GEvent.addListener(this, "mouseover", function() { var ToPixel = new GPoint(); var AddOffset = new GPoint(); var ToLatlag = new GLatLng(); var currentProjection = G_NORMAL_MAP.getProje
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);
});