src/utils/tool.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/utils/tool.js
@@ -119,6 +119,9 @@ //加载历史影像 export function addHistoryLayer(name) { const layerName = name; if (_GLOBAL.historyLayer) { window.mapapi.removeLayer(_GLOBAL.historyLayer) } _GLOBAL.historyLayer = new ol.layer.Tile({ source: new ol.source.XYZ({ url: `https://skyzt.bda.gov.cn/yzAdapter/Vector/?request=1&year=${layerName}&type=Sate&level={z}&x={x}&y={y}`,