10
rated 0 times
[
11]
[
1]
/ answers: 1 / hits: 17867
/ 10 Years ago, fri, june 6, 2014, 12:00:00
I have gone through several articals and wasted a lot of time to do this.
My javascript seems like below. I have already used closeBoxMargin property but it is not working.
function addBasicInfoWindow(map, marker, contentStr) {
var infoBoxOptions = {
content: contentStr,
pixelOffset: new google.maps.Size(0, 15),
disableAutoPan: false,
closeBoxMargin: 10px 0px 2px 2px,
closeBoxURL: http://localhost:8080/DummyMap/images/mapClose.png,
infoBoxClearance: new google.maps.Size(1, 1),
enableEventPropagation: false,
};
//alert(infoBox.innerHTML);
try {
var infowindow = new google.maps.InfoWindow(infoBoxOptions);
infowindow.open(map,marker);
} catch (ex) {
alert(ex);
}
}
I have reffered Google Map v3 InfoBox and closeBox and Google Map API v3 ~ Simply Close an infowindow? but nothing works for me.
Thanx in advance for a favorable solution..!
More From » google-maps