问题内容 : 使用amap插件 只能描出点,不能画线,请问有画线的demo吗?
<eeui-amap style="width:750px;height:800px"
:sdkKey="{ios:'5f30eead659fa7cd97a92865e560a18a','android':'8ebf08820d3335596e4b8fd953bd4c77'}"
:center="path[0]"
:zoom="10">
<eeui-amap-marker hideCallout="true" open="true" :position="path[0]" title="发"></eeui-amap-marker>
<eeui-amap-marker hideCallout="true" open="true" :position="path[1]" title="到"></eeui-amap-marker>
<eeui-amap-polyline :path="path" strokeStyle="dashed" strokeColor="#eeeeee" strokeWidth="10" ></eeui-amap-polyline>
</eeui-amap>
data: () => ({
point: {
position: [116.397721,39.904058],
title: 'This is a marker'
},
path:[[116.135972,39.999391],[116.057694,39.898323]],
}),