代码如下
<map id='map' :latitude="latitude" :longitude="longitude"
:style="{ width: '100%', height: mapHeight + 'px' }" :markers="markers" :scale="scale"
:polyline="polyline" @markertap="markertap" :enable-overlooking="true" :show-compass="true"
:show-location="showLocation" :max-scale="maxScale" :min-scale="minScale"
:enable-traffic="traffic" :enable-satellite="satellite">
</map>
data里
latitude: 39.909604,
longitude: 116.397228,
scale: 13,
maxScale:20,
minScale:3,
然后在
beforeCreate生命周期或者mounted生命周期
修改
this.maxScale=13
都没有效果
还是用的20
1 个回复
DCloud_UNI_yuhe
哪个平台,nvue吗?