|
|
@@ -151,6 +151,7 @@ export default {
|
|
|
pick: null,
|
|
|
markerboxEntity: [], //地图落点实体
|
|
|
connectBoxEntity: null, //地图线实体
|
|
|
+ connectBoxEntityMove: [], //地图线实体_移动
|
|
|
graphicsBoxEntity: null, //地图面实体
|
|
|
graphicsBoxEntityList: [], //地图面实体
|
|
|
markerboxEntityRadius: [], //地图落点实体
|
|
|
@@ -360,7 +361,9 @@ export default {
|
|
|
|
|
|
|
|
|
that.flyTo(longitude, latitude, height)
|
|
|
-
|
|
|
+ that.viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(
|
|
|
+ Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK
|
|
|
+ );
|
|
|
setTimeout(() => {
|
|
|
// that.viewer.imageryLayers.addImageryProvider(new SuperMap3D.SuperMapImageryProvider({
|
|
|
// url:that.superMapRootUrl + '/map-RLyicierci-2/rest/maps/TD_all@erci'
|
|
|
@@ -2193,6 +2196,15 @@ export default {
|
|
|
this.connectBoxEntityTwo = null
|
|
|
}
|
|
|
},
|
|
|
+ //移除之前添加的线_移动
|
|
|
+ clearCM() {
|
|
|
+ if (this.connectBoxEntityMove != null && this.connectBoxEntityMove.length > 0) {
|
|
|
+ for (let i = 0; i < this.connectBoxEntityMove.length; i++) {
|
|
|
+ this.viewer.entities.remove(this.connectBoxEntityMove[i])
|
|
|
+ }
|
|
|
+ this.connectBoxEntityMove = []
|
|
|
+ }
|
|
|
+ },
|
|
|
/**
|
|
|
* 地图落点-覆盖范围
|
|
|
*/
|
|
|
@@ -2456,6 +2468,29 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
/**
|
|
|
+ * 地图画线(贴地)_批量_图标移动
|
|
|
+ */
|
|
|
+ setConnectListsMarkerMove(connectList, color, withAlpha) {
|
|
|
+ let that = this
|
|
|
+ // 确保场景正确初始化
|
|
|
+ let material = SuperMap3D.Color.fromCssColorString(color).withAlpha(withAlpha);
|
|
|
+ that.connectBoxEntityMove.push(
|
|
|
+ that.viewer.entities.add({
|
|
|
+ Type: 'Polyline',
|
|
|
+ polyline: {
|
|
|
+ positions: new SuperMap3D.Cartesian3.fromDegreesArray(connectList),
|
|
|
+ // clampToGround: true, //贴地 true,不贴地 false
|
|
|
+ width: 10,
|
|
|
+ material: new SuperMap3D.PolylineDynamicMaterialProperty({
|
|
|
+ color: material,
|
|
|
+ outlineWidth: 0.2,
|
|
|
+ outlineColor: SuperMap3D.Color.BLACK
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ );
|
|
|
+ },
|
|
|
+ /**
|
|
|
* 地图图形(贴地)
|
|
|
*/
|
|
|
setGraphicsList(graphicsList, color, withAlpha) {
|