Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions google-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,15 @@
observer: '_disableMapTypeControlChanged'
},

/**
* If set, removes the map's 'street view' UI controls.
*/
disableStreetViewControl: {
type: Boolean,
value: false,
observer: '_disableStreetViewControlChanged'
},

/**
* If set, the zoom level is set such that all markers (google-map-marker children) are brought into view.
*/
Expand Down Expand Up @@ -466,6 +475,7 @@
mapTypeId: this.mapType,
disableDefaultUI: this.disableDefaultUi,
mapTypeControl: !this.disableDefaultUi && !this.disableMapTypeControl,
streetViewControl: !this.disableDefaultUi && !this.disableStreetViewControl,
disableDoubleClickZoom: this.disableZoom,
scrollwheel: !this.disableZoom,
styles: this.styles,
Expand Down Expand Up @@ -728,6 +738,13 @@
this.map.setOptions({mapTypeControl: !this.disableMapTypeControl});
},

_disableStreetViewControlChanged: function() {
if (!this.map) {
return;
}
this.map.setOptions({streetViewControl: !this.disableStreetViewControl});
},

_disableZoomChanged: function() {
if (!this.map) {
return;
Expand Down