فهرست منبع

默认进入资源云图,并加载田域图,左下角统计去掉,换成可切换可点击的数据资源类别图标

JX.LI 2 سال پیش
والد
کامیت
fd78fddac1
2فایلهای تغییر یافته به همراه1289 افزوده شده و 958 حذف شده
  1. 20 20
      src/components/supermap-2.5d.vue
  2. 1269 938
      src/views/forest.vue

+ 20 - 20
src/components/supermap-2.5d.vue

@@ -5,7 +5,7 @@
       <div class="map-tit" v-show="mapshow">
         <div class="top-tit">
           <i class="iconfont sj-icon-jkzx"></i>
-          <span><img src="../assets/images/close.svg" /></span>
+          <span><img src="../assets/images/close.svg" @click="mapshow=false"/></span>
         </div>
         <div class="map-txt" v-html="bindPopupHtml">
         </div>
@@ -184,15 +184,15 @@ export default {
       //开始加载专题图等数据,8秒后开始执行
       setTimeout(function() {
         // 3.水系
-        let shuixi = that.superMapRootUrl+"/map-mvt-shuixiMian/restjsr/v1/vectortile/maps/shuixi_Mian";
-        that.mvtMap0 = that.scene.addVectorTilesMap({
-          url: shuixi,
-          canvasWidth: 512,
-          name: 'mvt_map0',
-          viewer: that.viewer,
-          selectedColor:new Cesium.Color(6,169,254,0.5),
-          show:true,
-        });
+        // let shuixi = that.superMapRootUrl+"/map-mvt-shuixiMian/restjsr/v1/vectortile/maps/shuixi_Mian";
+        // that.mvtMap0 = that.scene.addVectorTilesMap({
+        //   url: shuixi,
+        //   canvasWidth: 512,
+        //   name: 'mvt_map0',
+        //   viewer: that.viewer,
+        //   selectedColor:new Cesium.Color(6,169,254,0.5),
+        //   show:true,
+        // });
 
         // //4.林地
         // let lindi = that.superMapRootUrl+"/map-mvt-lindi/restjsr/v1/vectortile/maps/lindi";
@@ -205,16 +205,16 @@ export default {
         //   show:true,
         // });
         //
-        // //5.农田
-        // let nongtian = that.superMapRootUrl+"/map-mvt-nongtian/restjsr/v1/vectortile/maps/nongtian";
-        // that.mvtMap2 = that.scene.addVectorTilesMap({
-        //   url: nongtian,
-        //   canvasWidth: 512,
-        //   name: 'mvt_map2',
-        //   viewer: that.viewer,
-        //   selectedColor:new Cesium.Color(250, 236, 246,1.0),
-        //   show:true,
-        // });
+        //5.农田
+        let nongtian = that.superMapRootUrl+"/map-mvt-nongtian/restjsr/v1/vectortile/maps/nongtian";
+        that.mvtMap2 = that.scene.addVectorTilesMap({
+          url: nongtian,
+          canvasWidth: 512,
+          name: 'mvt_map2',
+          viewer: that.viewer,
+          selectedColor:new Cesium.Color(250, 236, 246,1.0),
+          show:true,
+        });
         //
         // //6.路网
         // let road = that.superMapRootUrl+"/map-mvt-roadXian/restjsr/v1/vectortile/maps/road_Xian";

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1269 - 938
src/views/forest.vue