DR/4DAGE 3 년 전
부모
커밋
9c3377b3b2
1개의 변경된 파일6개의 추가작업 그리고 7개의 파일을 삭제
  1. 6 7
      Map/map.js

+ 6 - 7
Map/map.js

@@ -20,18 +20,15 @@ let map = new DGE.Map('container', {
 let tileset=map.data.threeDTiles.load({
 let tileset=map.data.threeDTiles.load({
     url:"https://testgis.4dage.com/liangqichaoshuju/tileset.json",
     url:"https://testgis.4dage.com/liangqichaoshuju/tileset.json",
     height:10,
     height:10,
-    maximumScreenSpaceError:40
 }); 
 }); 
 
 
 let tileset1=map.data.threeDTiles.load({
 let tileset1=map.data.threeDTiles.load({
     url:"https://testgis.4dage.com/liangqichaoguju3dtilesbufen/tileset.json",
     url:"https://testgis.4dage.com/liangqichaoguju3dtilesbufen/tileset.json",
     height:10,
     height:10,
-    maximumScreenSpaceError:40
 }); 
 }); 
 let tileset2=map.data.threeDTiles.load({
 let tileset2=map.data.threeDTiles.load({
     url:"https://testgis.4dage.com/liangqichaoloutibufen/tileset.json",
     url:"https://testgis.4dage.com/liangqichaoloutibufen/tileset.json",
     height:10,
     height:10,
-    maximumScreenSpaceError:40
 }); 
 }); 
 
 
 map.viewer.camera.setView({
 map.viewer.camera.setView({
@@ -85,6 +82,7 @@ addLabels();
 //添加地名
 //添加地名
 function addLabels(){
 function addLabels(){
     ps.map(p=>{
     ps.map(p=>{
+        console.log(p);
         map.viewer.entities.add({
         map.viewer.entities.add({
             id:p.name,
             id:p.name,
             position:Global.Cartesian3.fromDegrees(p.lng,p.lat,p.alt),
             position:Global.Cartesian3.fromDegrees(p.lng,p.lat,p.alt),
@@ -98,10 +96,11 @@ function addLabels(){
                 image:"./imgs/label.png",
                 image:"./imgs/label.png",
                 scale:0.8
                 scale:0.8
             },
             },
-            polyline:{
-                positions:[Global.Cartesian3.fromDegrees(p.lng,p.lat,p.alt),Global.Cartesian3.fromDegrees(p.lng,p.lat,10)],
-                material:new Global.Color(238/255,193/255,133/255)
-            }
+            // polyline:{
+            //    // positions:[Global.Cartesian3.fromDegrees(p.lng,p.lat,p.alt),Global.Cartesian3.fromDegrees(p.lng,p.lat,10)],
+            //     material:new Global.Color(238/255,193/255,133/255),
+            //     width:3
+            // }
         });
         });
     })
     })
 }
 }