diff --git a/src/common/package.json b/src/common/package.json index 7f6653d3b..a350a46ad 100644 --- a/src/common/package.json +++ b/src/common/package.json @@ -17,6 +17,7 @@ "@antv/g2": "^4.2.11", "@antv/g6": "^4.8.14", "@supermapgis/tile-decryptor": "^1.0.0", + "@turf/center": "^6.5.0", "@turf/meta": "^6.5.0", "echarts": "5.5.0", "fast-xml-parser": "^4.2.7", @@ -24,6 +25,7 @@ "fetch-jsonp": "1.1.3", "flatgeobuf": "3.31.1", "insert-css": "^2.0.0", + "lodash.debounce": "^4.0.8", "promise-polyfill": "8.2.3", "lodash.topairs": "4.3.0", "lodash.uniqby": "^4.7.0", diff --git a/src/mapboxgl/package.json b/src/mapboxgl/package.json index 40ab6e636..56a91f002 100644 --- a/src/mapboxgl/package.json +++ b/src/mapboxgl/package.json @@ -24,7 +24,6 @@ "@supermapgis/iclient-common": "11.3.0", "canvg": "3.0.10", "flatgeobuf": "3.31.1", - "lodash.debounce": "^4.0.8", "rbush": "^2.0.2", "proj4": "2.11.0", "flv.js": "^1.6.2", diff --git a/src/maplibregl/L7Layerfunc.js b/src/maplibregl/L7Layerfunc.js deleted file mode 100644 index af68aa8eb..000000000 --- a/src/maplibregl/L7Layerfunc.js +++ /dev/null @@ -1,50 +0,0 @@ -// // import '../core/Base'; -// import L7 from './L7Extend'; - -// window.L7 = L7; - -// function L7Layer(type, options) { -// const layer = new L7[type](options); -// layer.type = 'custom'; -// let scene; -// let globalMap; -// layer.getScene = function () { -// return scene; -// }; - -// layer.onAdd = function (map) { -// globalMap = map; -// scene = map.$l7scene; -// console.log('onAdd--------', layer.id, scene); -// if (scene) { -// Promise.resolve({}).then(() => { -// scene.addLayer(layer); -// }); -// } -// }; -// layer.onRemove = function () { -// console.log('onRemove--------'); -// layer && layer.stopAnimate(); -// scene && scene.removeLayer(layer); -// globalMap = null; -// scene = null; -// }; -// console.log(layer.render); - -// layer.render = function () { -// if (scene && scene.getLayer(layer.id)) { -// console.log('render matrix--------', layer.id); -// scene.layerService.renderLayer(layer.id); -// if (layer.aniamateStatus) { -// console.log('aniamateStatus', layer.id); -// scene.layerService.startAnimate(layer.id); -// globalMap.triggerRepaint(); -// } -// } else { -// scene.addLayer(layer); -// } -// }; -// return layer; -// } - -// export { L7Layer };