💚 This is the latest document.
Set true if you want to show the indoor map.
marker.setIndoorEnabled(flag);
name | type | description |
---|---|---|
flag | boolean | false : disabled, true : enabled |
<div class="map" id="map_canvas">
<span class="smallPanel"><button>current: map.indoorEnable = false</button></span>
</div>
var div = document.getElementById("map_canvas");
var map = plugin.google.maps.Map.getMap(div, {
camera: {
target: {
lat: 37.422375,
lng: -122.084207
},
zoom: 17
},
controls: {
indoorPicker: true
}
});
var isEnabled = false;
var button = div.getElementsByTagName('button')[0];
button.addEventListener('click', function() {
isEnabled = !isEnabled;
map.setIndoorEnabled(isEnabled);
button.innerHTML = "current: map.indoorEnable = " + isEnabled;
});