Skip to content

Commit

Permalink
[fix]updateOverLayer featureProjection追加数据
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxiao-supermap committed Nov 26, 2024
1 parent 2a28bd7 commit 093aefd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/mapboxgl/web-map/WebMapViewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ interface MapHandler {
setLayersVisible: (layers: Array<Record<string, any>>, visibility: 'visible' | 'none') => void;
toggleLayerVisible: (layer: Record<string, any>, visible: boolean) => void;
echartsLayerResize: () => void;
updateOverlayLayer: (layerInfo: Record<string, any>, features: any, mergeByField?: string) => void;
updateOverlayLayer: (layerInfo: Record<string, any>, features: any, mergeByField?: string, featureProjection?: string) => void;
copyLayer: (id: string, layerInfo: Record<string, any>) => boolean;
resize: (keepBounds: boolean) => void;
setCRS: (crs: CRSOptions | string) => void;
Expand Down Expand Up @@ -499,8 +499,8 @@ export default class WebMapViewModel extends Events {
this.clean();
}

updateOverlayLayer(layerInfo: any, features: any, mergeByField?: string) {
this._handler.updateOverlayLayer(layerInfo, features, mergeByField);
updateOverlayLayer(layerInfo: any, features: any, mergeByField?: string, featureProjection?: string) {
this._handler.updateOverlayLayer(layerInfo, features, mergeByField, featureProjection);
}

copyLayer(id: string, layerInfo: Record<string, any>) {
Expand Down
4 changes: 1 addition & 3 deletions static/libs/iclient-mapboxgl/iclient-mapboxgl.min.js

Large diffs are not rendered by default.

0 comments on commit 093aefd

Please sign in to comment.