收藏
回答

map组件中 设置了circles但是没有与show-location的定位点居中?

代码如下:

<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

}]

},

效果图:

那个定位点并没有显示在圈儿中心

如何可以让你定位点在圈儿的中心显示?

回答关注问题邀请回答
收藏

1 个回答

  • 衣殇魂
    衣殇魂
    2023-08-01

    把圆中心点的经纬度设置成你当前定位的经纬度

    2023-08-01
    有用
    回复
登录 后发表内容