Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 657 Bytes

File metadata and controls

39 lines (27 loc) · 657 Bytes

💚 This is the latest document.

marker.hideInfoWindow()

Hide the infoWindow of the marker.


Demo code

<div id="map_canvas"></div>
var div = document.getElementById("map_canvas");
var map = plugin.google.maps.Map.getMap(div);

var marker = map.addMarker({
  'position': {
    lat: 0,
    lng: 0
  },
  'title': "Click me!"
});

// Show the infoWindow
marker.showInfoWindow();

// Catch the MARKER_CLICK event
marker.on(plugin.google.maps.event.INFO_CLICK, function() {

  // Hide the infoWindow
  marker.hideInfoWindow();

});