Google Maps API V3 InfoBox using jQuery fadeIn and fadeOut

后端 未结 6 1392
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:53

    It is actually possible to fadein the infobox, you have to override the draw function in the infobox.js file like this

    var oldDraw = ib.draw;
    ib.draw = function() {
       oldDraw.apply(this);
       jQuery(ib.div_).hide();
       jQuery(ib.div_).fadeIn('slow'); 
    }
    

提交回复
热议问题