Skip to content

Commit

Permalink
fix: compatible with getLayes
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei committed Dec 23, 2021
1 parent 453b4a5 commit b315df2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/l7plot/src/core/map/index.ts
Expand Up @@ -334,6 +334,15 @@ export abstract class Map<O extends MapOptions> extends EventEmitter {
this.layerGroup.addLayer(layer);
}

/**
* 获取所有图层
* @deprecate
*/
public getLayes(): IPlotLayer[] {
console.warn('Replace to use getLayers()');
return this.getLayers();
}

/**
* 获取所有图层
*/
Expand Down

0 comments on commit b315df2

Please sign in to comment.