1 files modified
1 files added
| | |
| | | this.$EventBus.$emit('layerPolylineAdd', { |
| | | layerName: 'newDrawLayers', |
| | | positions: positionNewArr, |
| | | material: global.DC.Color.RED.withAlpha(0.4), |
| | | material: global.DC.Color.ORANGE.withAlpha(0.6), |
| | | width: 4, |
| | | params: { |
| | | id: item.id, |
| | |
| | | this.$EventBus.$emit('layerPolygonAdd', { |
| | | layerName: 'newDrawLayers', |
| | | positions: positionNewArr, |
| | | material: global.DC.Color.RED.withAlpha(0.4), |
| | | material: global.DC.Color.ORANGE.withAlpha(0.6), |
| | | params: { |
| | | id: item.id, |
| | | policemanId: item.policemanId |
| | |
| | | layerName: 'newCarDrawLayers', |
| | | positions: positionNewArr, |
| | | material: global.DC.Color.BLUE.withAlpha(0.4), |
| | | width: 4, |
| | | width: 8, |
| | | params: { |
| | | id: item.id, |
| | | carId: item.carId |
| | |
| | | if (iconName == 'activity') { |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 100, url: '/img/icon/activity.png' } |
| | | } else if (iconName == 'policeman') { |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 100, url: '/img/policeIcon.png', id: plotId, policemanId: policeId } |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 100, url: '/img/icon/police.png', id: plotId, policemanId: policeId } |
| | | } else if (iconName == 'policecar') { |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 100, url: '/img/policeCar.png', id: plotId, carId: policeId } |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 100, url: '/img/icon/car.png', id: plotId, carId: policeId } |
| | | } |
| | | return positionObj |
| | | }, |