|
@@ -1,6 +1,26 @@
|
|
|
import {myBridge,previewMapBridge} from "./map.js";
|
|
|
import {getMapToken,getServiceToken} from "../../service/map.js";
|
|
|
|
|
|
+
|
|
|
+// 白膜颜色配置
|
|
|
+const locationRenderer = {
|
|
|
+ type: "simple",
|
|
|
+ symbol: {
|
|
|
+ type: "mesh-3d",
|
|
|
+ symbolLayers: [{
|
|
|
+ type: "fill",
|
|
|
+ material: {
|
|
|
+ color: [255, 255, 255, 1],
|
|
|
+ colorMixMode: "tint"
|
|
|
+ },
|
|
|
+ edges: {
|
|
|
+ type: 'solid',
|
|
|
+ color: [0, 0, 0, 0.5],
|
|
|
+ size: 1
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ }
|
|
|
+};
|
|
|
export function invokeParams(ActionName,params){
|
|
|
getMapToken().then(res =>{
|
|
|
let token = res.data.msg[0].Rows[0].token;
|
|
@@ -55,6 +75,192 @@ export function SetBackground(){
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+export function AddWhiteMold(visible){
|
|
|
+ invokeParams('AddSingleLayer', {
|
|
|
+ "id": "AllWhiteMold",
|
|
|
+ "title": "全市白模",
|
|
|
+ "visible": visible,
|
|
|
+ "opacity": 0.4,
|
|
|
+ "renderer":locationRenderer,
|
|
|
+ "url": "https://cimweb.zjw.sh.cegn.cn:2008/MapProxyApi/getSceneServer/ptgl/05195418",
|
|
|
+ "type": "scene",
|
|
|
+ })
|
|
|
+ invokeParams('AddSingleLayer', {
|
|
|
+ "id": "whiteMold",
|
|
|
+ "title": "局部白模",
|
|
|
+ "visible": visible,
|
|
|
+ "opacity": 0,
|
|
|
+ "renderer":locationRenderer,
|
|
|
+ "url": "https://serve3d41.gis.cn:6443/geoscene/rest/services/Hosted/baimo_dikong/SceneServer",
|
|
|
+ "type": "scene",
|
|
|
+ })
|
|
|
+ invokeParams('AddSingleLayer', {
|
|
|
+ "id": "ksl",
|
|
|
+ "title": "快速路",
|
|
|
+ "visible": visible,
|
|
|
+ "opacity": 1,
|
|
|
+ //"url": "https://serve2d31.gis.cn:6443/geoscene/rest/services/06-sz/060108003100000000000120240151202401/MapServer",
|
|
|
+ "url": "https://cimweb.zjw.sh.cegn.cn:2008/MapProxyApi/getSceneServer/gxjh_fwjk/D7002000420150601",
|
|
|
+ "type": "tile",
|
|
|
+ })
|
|
|
+ invokeParams('AddSingleLayer', {
|
|
|
+ "id": "gsgl",
|
|
|
+ "title": "高速公路",
|
|
|
+ "visible": visible,
|
|
|
+ "opacity": 1,
|
|
|
+ //"url": "https://serve2d31.gis.cn:6443/geoscene/rest/services/06-sz/060203053100000000000120240151202401/MapServer",
|
|
|
+ "url": "https://cimweb.zjw.sh.cegn.cn:2008/MapProxyApi/getSceneServer/gxjh_fwjk/D7002000320150601",
|
|
|
+ "type": "tile",
|
|
|
+ })
|
|
|
+ invokeParams('AddSingleLayer', {
|
|
|
+ "id": "dmdl",
|
|
|
+ "title": "地面道路",
|
|
|
+ "visible": visible,
|
|
|
+ "opacity": 1,
|
|
|
+ //"url": "https://serve2d31.gis.cn:6443/geoscene/rest/services/06-sz/060101013100000000000120240151202401/MapServer",
|
|
|
+ "url": "https://cimweb.zjw.sh.cegn.cn:2008/MapProxyApi/getSceneServer/gxjh_fwjk/D7002000220150601",
|
|
|
+ "type": "tile",
|
|
|
+ })
|
|
|
+ invokeParams('AddSingleLayer', {
|
|
|
+ "id": "gyld",
|
|
|
+ "title": "公园绿地",
|
|
|
+ "visible": visible,
|
|
|
+ "opacity": 1,
|
|
|
+ //"url": "https://serve2d31.gis.cn:6443/geoscene/rest/services/09-lhly/090101013100000000000120240101202401/MapServer",
|
|
|
+ "url": "https://cimweb.zjw.sh.cegn.cn:2008/MapProxyApi/getSceneServer/gxjh_fwjk/D0901010320150601",
|
|
|
+ "type": "dynamic",
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+export function GroundPrismEffect(status){
|
|
|
+ invokeParams('GroundPrismEffect', {
|
|
|
+ "status": status,
|
|
|
+ "rings": [
|
|
|
+ [
|
|
|
+ [
|
|
|
+ 1536.9350492273984,
|
|
|
+ 1495.3300997539745
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 3704.5161538791876,
|
|
|
+ 1434.1823051423912
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 3656.0675266734356,
|
|
|
+ -283.2357889128476
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 1488.4864220216464,
|
|
|
+ -222.08799430126427
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 1536.9350492273984,
|
|
|
+ 1495.3300997539745
|
|
|
+ ]
|
|
|
+ ]
|
|
|
+ ],
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "id": 1,
|
|
|
+ "name": "",
|
|
|
+ "depth": 100,
|
|
|
+ "material": [
|
|
|
+ 201,254,246,
|
|
|
+ 0.2
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 2,
|
|
|
+ "name": "",
|
|
|
+ "depth": 100,
|
|
|
+ "material": [
|
|
|
+ 180,240,249,
|
|
|
+ 0.24
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 3,
|
|
|
+ "name": "",
|
|
|
+ "depth": 100,
|
|
|
+ "material": [
|
|
|
+ 151,220,252,
|
|
|
+ 0.28
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 4,
|
|
|
+ "name": "",
|
|
|
+ "depth": 100,
|
|
|
+ "material": [
|
|
|
+ 118,198,254,
|
|
|
+ 0.32
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 5,
|
|
|
+ "name": "",
|
|
|
+ "depth": 100,
|
|
|
+ "material": [
|
|
|
+ 81,174,255,
|
|
|
+ 0.36
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 6,
|
|
|
+ "name": "",
|
|
|
+ "depth": 100,
|
|
|
+ "material": [
|
|
|
+ 46,153,255,
|
|
|
+ 0.40
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 7,
|
|
|
+ "name": "",
|
|
|
+ "depth": 400,
|
|
|
+ "material": [
|
|
|
+ 4,138,255,
|
|
|
+ 0.44
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+export function LimitHeightAnalysis(params){
|
|
|
+ invokeParams('LimitHeightAnalysis', {
|
|
|
+ "status":params.status,
|
|
|
+ "distance":params.start,
|
|
|
+ "distanceEnd":params.end,
|
|
|
+ "rings": [
|
|
|
+ [
|
|
|
+ [
|
|
|
+ 1536.9350492273984,
|
|
|
+ 1495.3300997539745
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 3704.5161538791876,
|
|
|
+ 1434.1823051423912
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 3656.0675266734356,
|
|
|
+ -283.2357889128476
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 1488.4864220216464,
|
|
|
+ -222.08799430126427
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 1536.9350492273984,
|
|
|
+ 1495.3300997539745
|
|
|
+ ]
|
|
|
+ ]
|
|
|
+ ],
|
|
|
+ "maxNode":7
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
export function FeatureThreeDimension(params){
|
|
|
debugger
|
|
|
if(params.token){
|