|
@@ -1272,8 +1272,9 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- path.dispatchEvent('markerSelect',(e)=>{
|
|
|
|
- bus.emit('activePoint', e.cancel ? -1 : e.marker )
|
|
|
|
|
|
+ path.addEventListener('markerSelect',(e)=>{
|
|
|
|
+ console.log('markerSelect', e.cancel ? -1 : path.markers.indexOf(e.marker) )
|
|
|
|
+ bus.emit('activePoint', e.cancel ? -1 : path.markers.indexOf(e.marker) )
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
@@ -1297,11 +1298,15 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
|
|
path.setTitle(name)
|
|
path.setTitle(name)
|
|
},
|
|
},
|
|
changePointName(index,name){
|
|
changePointName(index,name){
|
|
- path.setMarkerTitle(index,name)
|
|
|
|
|
|
+ path.setMarkerTitle(index, name)
|
|
},
|
|
},
|
|
changePathPoints(points){
|
|
changePathPoints(points){
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ changeLine({width,color,altitudeAboveGround}){
|
|
|
|
+ path.setPathWidth(width)
|
|
|
|
+ path.setPathColor(color)
|
|
|
|
+ }
|
|
})
|
|
})
|
|
return functions
|
|
return functions
|
|
|
|
|