Skip to content Skip to sidebar Skip to footer

How Can I Completely Remove The Google Maps Pop-up Balloon?

I'm using Javascript to serve up some KML files but I want to disable the ability to click on the map and display a pop up balloon. Is there a way to do that?

Solution 1:

To block KML file info bubbles from JavaScript:

kmlLayer = new google.maps.KmlLayer('http://..../myfile.kmz',{
  suppressInfoWindows: true
});

Solution 2:

Use

<gx:balloonVisibility>0</gx:balloonVisibility>

See this page for reference: http://code.google.com/apis/kml/documentation/kmlreference.html#gxballoonvisibility

Post a Comment for "How Can I Completely Remove The Google Maps Pop-up Balloon?"