2011-08-04 6 views
-1

こんにちは私は誰もが私に教えて知っていれば、任意の場所マーカーは、バウンスされますクリックすると上にマウスは、 http://www.snapdeal.com/deals-bangalore_koramangala_plus よう.Thisは、リンク時にバウンド、Googleの位置マーカーを必要とする...Googleマップマーカーのバウンスを設定するには?

+1

グーグルで[弾むマーカーの重複Maps v3](http://stackoverflow.com/questions/1847616/bouncy-marker-in-google-maps-v3) – Caspar

答えて

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); 
}); 
関連する問題