| | |
| | | './utils', |
| | | 'jimu/dijit/Message' |
| | | ], function (declare, lang, array, html, query, topic, on, aspect, keys, i18n, dojoConfig, |
| | | require, jimuUtils, |
| | | Message) { |
| | | require, jimuUtils, |
| | | Message) { |
| | | var instance = null, |
| | | clazz = declare(null, { |
| | | appConfig: null, |
| | |
| | | |
| | | }, |
| | | |
| | | _createMap: function (mode, appConfig) {//创建地图js |
| | | _createMap: function (mode, appConfig) { //创建地图js |
| | | |
| | | Cesium.Ion.defaultAccessToken = appConfig.cesiumToken; |
| | | |
| | |
| | | layer = new Cesium.WebMapTileServiceImageryProvider(layerConfig); |
| | | } else if (layerConfig.type == "SuperMap") { |
| | | layer = new Cesium.SuperMapImageryProvider(layerConfig); |
| | | } else if (layerConfig.type == "arcgis") { |
| | | layer = new Cesium.ArcGisMapServerImageryProvider(layerConfig); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | layerArr.push(layer); |
| | | } |
| | | |
| | | |
| | | var pvm = new Cesium.ProviderViewModel({ |
| | | name: imageryProviderViewModels[i].name, |
| | | tooltip: imageryProviderViewModels[i].tooltip, |
| | |
| | | ellipsoid: Cesium.Ellipsoid.WGS84 |
| | | }) |
| | | } |
| | | }) |
| | | , new Cesium.ProviderViewModel({ |
| | | }), new Cesium.ProviderViewModel({ |
| | | name: "鄱阳湖地形", |
| | | tooltip: "由 普适科技 提供的鄱阳湖地区地形", |
| | | iconUrl: "images/basemaps/TerrainSTK.png", |
| | |
| | | var roll = mapOptions.positionInfo.roll; |
| | | |
| | | setTimeout(lang.hitch(this, function () { |
| | | this.map.camera.setView({destination: Cesium.Rectangle.fromDegrees(west, south, east, north)}); |
| | | this.map.camera.setView({ |
| | | destination: Cesium.Rectangle.fromDegrees(west, south, east, north) |
| | | }); |
| | | }), 100); |
| | | |
| | | |