| | |
| | | window.BaseMapLayer |
| | | ); |
| | | window.map.removeLayer(window.olBaseMapLayer); |
| | | if (!is_production) { |
| | | if (window.vectorLayer) { |
| | | window.map.removeLayer(window.vectorLayer); |
| | | } |
| | | } |
| | | }, |
| | | addImageLayer(map, mapCollection) { |
| | | |
| | |
| | | window.map.addLayer(window.olBaseMapLayer); |
| | | return; |
| | | } else if (mapCollection.sourceType === "tdmap") { |
| | | |
| | | var tokne = mapCollection.tokne; |
| | | //添加天地图影像 |
| | | |
| | |
| | | format: "image/jpeg", |
| | | tileMatrixSetID: "GoogleMapsCompatible", |
| | | })) |
| | | |
| | | window.olBaseMapLayer = new TileLayer({ |
| | | title: "高德地图", |
| | | source: new XYZ({ |
| | |
| | | window.BaseMapLayer = Viewer.imageryLayers.addImageryProvider( |
| | | new Cesium.UrlTemplateImageryProvider({ |
| | | url: map.urls, |
| | | maximumLevel: 18, |
| | | maximumLevel: 22, |
| | | }) |
| | | ); |
| | | |