Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Oct 19, 2020
1 parent 5858dd8 commit 7e3d32a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class TiledVectorLayer extends VectorLayer {
const layerIds = this.getMbLayerIds();
for (let i = 0; i < layerIds.length; i++) {
const mbLayer = mbMap.getLayer(layerIds[i]);
if (mbLayer && mbLayer['source-layer'] !== tiledSourceMeta.layerName) {
if (mbLayer && mbLayer.sourceLayer !== tiledSourceMeta.layerName) {
// If the source-pointer of one of the layers is stale, they will all be stale.
// In this case, all the mb-layers need to be removed and re-added.
return true;
Expand Down

0 comments on commit 7e3d32a

Please sign in to comment.