From 1b2c1edb61190eeb19f465ff031eaa3b2a1b8dbc Mon Sep 17 00:00:00 2001
From: nnnjjj123 <494715143@qq.com>
Date: Tue, 17 Nov 2020 10:43:54 +0800
Subject: [PATCH] 地图图标

---
 jimu.js/MapManager.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/jimu.js/MapManager.js b/jimu.js/MapManager.js
index 7695844..5e4d9f5 100644
--- a/jimu.js/MapManager.js
+++ b/jimu.js/MapManager.js
@@ -21,6 +21,7 @@
             appConfig: null,
             mapDivId: '',
             map: null,
+            baseLayer: null,
 
             constructor: function ( /*Object*/ options, mapDivId) {
                 this.appConfig = options.appConfig;
@@ -78,7 +79,6 @@
 
             _createMap: function (mode, appConfig) {
                 // define(["../libs/Cesium1.68/CesiumNavigation.umd "], function () { });
-
                 Cesium.Ion.defaultAccessToken = appConfig.cesiumToken;
                 //加载底图和地形配置
                 appConfig.map.mapOptions["imageryProviderViewModels"] = this._getImageryProviderArr(appConfig);
@@ -86,10 +86,11 @@
                 //创建地图
                 var dcViewer = new DC.Viewer(this.mapDivId, appConfig.map.mapOptions);
                 this.map = dcViewer.delegate;
+                this.baseLayer = "nihao";
                 // this.map.extend(Cesium.viewerDragDropMixin);
                 this.map.scene.globe.depthTestAgainstTerrain = false;
                 this.map.scene.logarithmicDepthBuffer = false;
-                this.map.scene.globe.baseColor = Cesium.Color.WHITESMOKE ;
+                this.map.scene.globe.baseColor = Cesium.Color.BLACK;
                 window.viewer = this.map;
                 window.dcViewer = dcViewer;
                 var imageryLayers = this.map.imageryLayers;
@@ -125,7 +126,6 @@
                 this.map.baseLayerPicker.viewModel.selectedTerrain = this.map.baseLayerPicker.viewModel.terrainProviderViewModels[2];
                 $(".cesium-baseLayerPicker-sectionTitle").eq(0).html("底图");
                 $(".cesium-baseLayerPicker-sectionTitle").eq(1).html("地形");
-
 
                 //对外暴露的公共接口
                 topic.subscribe("gis/map/setCenter", lang.hitch(this, this.centerAt));
@@ -175,6 +175,7 @@
                                     'http://cache1.arcgisonline.cn/arcgis/rest/services/SimpleFeature/ChinaBoundaryLine/MapServer'
                             })
                         }
+
                         else if (layerConfig.type == "mapbox") {
                             layer = new Cesium.MapboxImageryProvider({
                                 mapId: 'mapbox.country-boundaries-v1',

--
Gitblit v1.9.3