Hide shadow on infowindow in Google Map API V3

痴心易碎 提交于 2019-12-21 17:08:05

问题


I want to hide the shadow on infowindow in Google Map API V3. I try to access the Floatshadow pane but I don't know how to do it.


回答1:


Try something like the InfoBubble library. It's not possible to do this within the API itself.

http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobubble/

edit: As of v3.11, info windows don't have shadows by default.




回答2:


<style type="text/css">
img[src*="iws3.png"] {
    display: none;
}
</style>



回答3:


Try this.

Attach a event listener to your infoWindow

google.maps.event.addListener(InfoWindow, "domready", function() {   

  setTimeout(function(){$("img[src$='iws3.png']").hide();},80);

});


来源:https://stackoverflow.com/questions/4166042/hide-shadow-on-infowindow-in-google-map-api-v3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!