0
<div id="map"></div>
<script>
function initMap() {
var uluru = {lat: 36.091732, lng: -115.228789};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 16,
center: uluru
});
var marker = new google.maps.Marker({
position: uluru,
map: map
});
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBotunmxwKg65qa-
Yex7o_eAyVZv_2QJo8&callback=initMap">
</script>
我已使用此代碼在我的網站上工作的地圖。我正在嘗試禁用滾動並擺脫左上角的地圖/衛星選項。谷歌地圖api上禁用滾動和地圖/薩利特選項?
我想你從這個鏈接得到你的正確答案[https://stackoverflow.com/questions/2330197/how-to-disable-mouse-sc滾輪縮放與 - 谷歌-MAPS-API] [1] –