Google Maps API V3 InfoBox using jQuery fadeIn and fadeOut

后端 未结 6 1380
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 06:09

    i tried something similar for a website. here is my code. (gm-api-v3)

    var infowindow = new google.maps.InfoWindow({
        content: contentString
    });
    
    function iwFadeIn() {
        infowindow.open(map, marker);
        var iw_container = $(".gm-style-iw").parent();
        iw_container.stop().hide();
        iw_container.fadeIn(1000);
    }
    

提交回复
热议问题