开发者

How to set Google map marker bouncing?

Hi i need Google locatio开发者_StackOverflow社区n marker bouncing when mouse over ,like http://www.snapdeal.com/deals-bangalore_koramangala_plus .This link if click any location marker will bouncing,if anybody know let me know...


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜