地图类型切换插件,用来切换固定的几个常用图层
示例如下:
<div class="map-container"> <amap-map :center="{lng: 121.498586, lat: 31.239637}"> <amap-maptype></amap-maptype> </amap-map> </div> <style> .map-container { height: 400px; width: 100% } </style>
defaultType
Number
showTraffic
Boolean
false
showRoad
visible
true
← 地图控件 比例尺 →