Wie kann ich die Info-Fenster entfernen, aber die tatsächliche Landmarke sichtbar lassen? Ich möchte nur nicht, dass das eigentliche Info-Fenster erscheint, wenn die Landmarke angeklickt wird, weil ich Markierungen um Landmarken herum habe und manchmal stattdessen die Landmarken versehentlich anklicken.Google Maps V3: Drehen der Landmark-Infowindows von
0
A
Antwort
3
Diese heißen clickableIcons
.
Um die InfoWindows
auszuschalten, setzen Sie die MapOption
clickableIcons: false
.
Von the documentation :
clickableIcons | Typ: boolean
Wenn false, sind die Kartensymbole nicht anklickbar. Ein Kartensymbol repräsentiert einen Punkt von Interesse, der auch als POI bezeichnet wird. Standardmäßig sind Kartensymbole anklickbar.
Code-Schnipsel:
function initialize() {
var map = new google.maps.Map(
document.getElementById("map_canvas"), {
center: new google.maps.LatLng(37.4419, -122.1419),
zoom: 13,
mapTypeId: google.maps.MapTypeId.ROADMAP,
clickableIcons: false
});
}
google.maps.event.addDomListener(window, "load", initialize);
html,
body,
#map_canvas {
height: 100%;
width: 100%;
margin: 0px;
padding: 0px
}
<script src="https://maps.googleapis.com/maps/api/js"></script>
<div id="map_canvas"></div>
Verwandte Themen
- 1. Bild in Google Maps V3 drehen?
- 2. ein .gif Bild auf Google Maps API v3 drehen?
- 3. Google Maps v3 OverlayView.getProjection()
- 4. Google Maps v3 Fehler
- 5. Geocode in Google Maps v3
- 6. falsche Positionierung v3 Google Maps
- 7. Google Maps API v3 Gemeindegrenze
- 8. Google Maps v3 Sidebar Links
- 9. Google Maps API v3: Zeichnungsmanager
- 10. Google Maps v3 Grenze hightlight
- 11. Google Maps JavaScript API v3
- 12. Falsche Standardmarkierungen Google Maps v3
- 13. Google Maps API v3 BrowserIsCompatible
- 14. Google Maps V3 geocode von XML
- 15. Google Maps API v3 Markerkoordinaten
- 16. Marker + Label Rotation - Google Maps API v3
- 17. Google Maps v3 - Kontextmenü verfügbar?
- 18. Google Maps V3 Polygon Zeichnung
- 19. Erlaubt Google Maps API v3 größere Zoomwerte?
- 20. google maps api v3 keine etiketten?
- 21. Problem mit Google Maps API v3
- 22. Google Maps API v3 Problem mit Firefox
- 23. Google Maps API V3 - Benutzerdefinierte Fliesen
- 24. Google Maps API V3 Graue Bereiche
- 25. KML-Ebenen in Google Maps v3 umschalten
- 26. jqtouch/google maps api v3 ausgabe
- 27. Google Maps API V3-Methode fitBounds()
- 28. Google Maps v3 API mouseover mit Polygonen?
- 29. Google Maps MarkerManager V3 (404) nicht gefunden
- 30. Google Maps Javascript API v3 Routen Iteration