|
|
@ -87,7 +87,7 @@ AMapLoader.load({
|
|
|
|
const handleQuery = () => {
|
|
|
|
const handleQuery = () => {
|
|
|
|
polyline ? map.remove([polyline]) : ''
|
|
|
|
polyline ? map.remove([polyline]) : ''
|
|
|
|
getTrack(proxy.addDateRange(queryParams.value, dateRange.value)).then(e => {
|
|
|
|
getTrack(proxy.addDateRange(queryParams.value, dateRange.value)).then(e => {
|
|
|
|
polylinePath.value = e.data.map(val => [val.longitude + (Math.random()), val.latitude + (Math.random())])
|
|
|
|
polylinePath.value = e.data.map(val => [val.longitude, val.latitude])
|
|
|
|
polyline = new AMap.Polyline({
|
|
|
|
polyline = new AMap.Polyline({
|
|
|
|
strokeColor: '#00BBFF', // 线颜色-深蓝色
|
|
|
|
strokeColor: '#00BBFF', // 线颜色-深蓝色
|
|
|
|
path: polylinePath.value,
|
|
|
|
path: polylinePath.value,
|
|
|
|