Google Maps API V3 InfoBox using jQuery fadeIn and fadeOut

后端 未结 6 1393
Happy的楠姐
Happy的楠姐 2021-02-06 05:18

I have searched the web high and low and have not been able to find a tutorial or example of using jQuery to fade an InfoBox/InfoWindow in Google Maps not the content the actual

6条回答
  •  没有蜡笔的小新
    2021-02-06 05:52

    If you override the draw method and apply the fade in,the animation will be played even if you drag around or zoom in/out in the map.If you don't want that to happen,you could apply the fadeIn in the domready handler method.In that case the fade in effect will come only if you the infowindow is opened.

     google.maps.event.addListener(ib, 'domready', function() {
                jQuery(ib).hide().fadeIn('slow');
     })
    

    ;

提交回复
热议问题