代码如下:
<map id="map" :style="{width: deviceWidth +'px',height: deviceHeight +'px'}"
:show-location="true" :enable-traffic="false"
:latitude="latitude" :longitude="longitude"
:circles="circleList" :markers="markerList"
:enable-rotate="true" :scale="14">
onLoad(options) {
this.getSystemInfo()
this.longitude = Number(options.lng)
this.latitude = Number(options.lat)
this.circleList = [{
latitude: this.latitude,
longitude: this.longitude,
color: '#1CC4C15C',
fillColor: '#1CC4C126',
radius: 150,
strokeWidth :1
}]
},
效果图:
那个定位点并没有显示在圈儿中心
如何可以让你定位点在圈儿的中心显示?
把圆中心点的经纬度设置成你当前定位的经纬度