google-maps - 禁用 Google map 嵌入中的 map 控件

标签 google-maps google-maps-embed

是否可以通过向 Google map 嵌入代码添加一些变量来禁用 map 控件?

最佳答案

不,你不能,但如果你使用 javascript api,你可以这样做:

 map = new google.maps.Map(document.getElementById("map_canvas"), {
      panControl: false,
      zoomControl: false,
      scaleControl: false,
 });

关于google-maps - 禁用 Google map 嵌入中的 map 控件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7844124/

相关文章:

google-maps-embed - 嵌入没有 cookie 的谷歌地图

google-maps - 新的谷歌地图嵌入选项

javascript - 当谷歌地图标记共享相同的像素时,集群它们

javascript - 结合Google Maps Geocoder和Leaflet map 接收错误: Invalid LatLng object

html - Div 元素阻止访问标记

google-maps - 如何禁用滚动缩放。谷歌地图嵌入 API

javascript - 嵌入谷歌地图时文本模糊

android - 在 Google 室内地图上显示地名

html - 如何解决 Google Maps div map_canvas 在 Firefox 中向右移动的问题?

google-maps - 中心参数在新的谷歌地图嵌入中不起作用