Skip to content

Commit

Permalink
Merge eac07fb into 6edee1e
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei committed Dec 16, 2021
2 parents 6edee1e + eac07fb commit f0bc8f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/l7plot/package.json
@@ -1,6 +1,6 @@
{
"name": "@antv/l7plot",
"version": "0.0.3-alpha.9",
"version": "0.0.3-alpha.10",
"description": "Geospatial Visualization Chart Library",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion packages/l7plot/src/core/layer/plot-layer.ts
Expand Up @@ -118,7 +118,12 @@ export abstract class PlotLayer<O extends PlotLayerOptions> extends EventEmitter
} else {
const { data, aggregation, ...option } = source;
aggregation && MappingSource.aggregation(option, aggregation);
this.layer.source(data, option);
const layerSource = this.layer.getSource();
if (layerSource) {
this.layer.setData(data, option);
} else {
this.layer.source(data, option);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/l7plot/src/index.ts
@@ -1,4 +1,4 @@
export const version = '0.0.3-alpha.9';
export const version = '0.0.3-alpha.10';

/** 资源静态注册 **/
export {
Expand Down

0 comments on commit f0bc8f0

Please sign in to comment.