开发者

Gmaps v3 change close img in InfoWindow and others styles

It's possible to change the default close img of infoWindows ? More, can cha开发者_运维问答nge de complete infoWindows design changing the main style ? infoWindow

Thanks.


You can use these libraries http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries


I just did it like this:

// Add listener to window on DOM ready to replace close icon with something else.
google.maps.event.addListener(infoWindow,'domready',function(){
    var newImage = $('<img src="path/to/img"/>');
    $(".gm-style-iw").next("div").html( newImage );
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜