Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Jun 21, 2021
1 parent 07045e0 commit 6c1a614
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1141,14 +1141,14 @@ export class VectorLayer extends AbstractLayer implements IVectorLayer {
return await this._source.getLicensedFeatures();
}

_getUpdateDueToTimesliceFromSourceRequestMeta(source: ISource, timeslice?: Timeslice): boolean {
_getUpdateDueToTimesliceFromSourceRequestMeta = (source: ISource, timeslice?: Timeslice) => {
const prevDataRequest = this.getSourceDataRequest();
const prevMeta = prevDataRequest?.getMeta();
if (!prevMeta) {
return true;
}
return source.getUpdateDueToTimeslice(prevMeta, timeslice);
}
};

async addFeature(geometry: Geometry | Position[]) {
const layerSource = this.getSource();
Expand Down

0 comments on commit 6c1a614

Please sign in to comment.