Skip to content

Commit

Permalink
[feature]webmap新增上图排序方法 review by xiongjj
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxianhuii committed Sep 20, 2024
1 parent fbfbb37 commit dd83812
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/mapboxgl/web-map/WebMapViewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ interface MapHandler {
getLayerCatalog: () => any[];
getLegends: () => any[];
getLayers: () => any[];
rectifyLayersOrder: (appreciableLayers: any[], topLayerBeforeId: string | undefined) => void;
echartsLayerResize: () => void;
updateOverlayLayer: (layerInfo: Record<string, any>, features: any, mergeByField?: string) => void;
copyLayer: (id: string, layerInfo: Record<string, any>) => boolean;
Expand Down Expand Up @@ -263,6 +264,10 @@ export default class WebMapViewModel extends Events {
return this._handler.getLegends();
}

rectifyLayersOrder(appreciableLayers, topLayerBeforeId) {
return this._handler.rectifyLayersOrder(appreciableLayers, topLayerBeforeId);
}

getLayerList() {
return this.layerCatalogs;
}
Expand Down
4 changes: 2 additions & 2 deletions static/libs/iclient-mapboxgl/iclient-mapboxgl.min.js

Large diffs are not rendered by default.

0 comments on commit dd83812

Please sign in to comment.