Ich füge benutzerdefinierte Google Maps Infofenster für mein GMap v3 hinzu Wie kann ich das Ereignis 'click' deaktivieren, wenn ich auf den InfoWindow-Inhalt und die InfoWindow-Schaltfläche zum Schließen klicke?Ereignis deaktivieren Klicken Sie auf Google Map v3
Beispielcode i setzt auf https://codepen.io/anon/pen/rwLdxG
function InfoBox(opts) {
google.maps.OverlayView.call(this);
this.latlng_ = opts.latlng;
this.map_ = opts.map;
this.content = opts.content;
this.offsetVertical_ = -195;
this.offsetHorizontal_ = 5;
this.height_ = 165;
this.width_ = 266;
var me = this;
this.boundsChangedListener_ =
google.maps.event.addListener(this.map_, "bounds_changed", function() {
return me.panMap.apply(me);
});
// Once the properties of this OverlayView are initialized, set its map so
// that we can display it. This will trigger calls to panes_changed and
// draw.
this.setMap(this.map_);
}