Skip to content

Commit f8e6498

Browse files
add exception
1 parent 7e3d32a commit f8e6498

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

x-pack/plugins/maps/public/classes/layers/tiled_vector_layer/tiled_vector_layer.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ export class TiledVectorLayer extends VectorLayer {
182182
const layerIds = this.getMbLayerIds();
183183
for (let i = 0; i < layerIds.length; i++) {
184184
const mbLayer = mbMap.getLayer(layerIds[i]);
185+
// The mapbox type in the spec is specified with `source-layer`
186+
// but the programmable JS-object uses camelcase `sourceLayer`
187+
// @ts-expect-error
185188
if (mbLayer && mbLayer.sourceLayer !== tiledSourceMeta.layerName) {
186189
// If the source-pointer of one of the layers is stale, they will all be stale.
187190
// In this case, all the mb-layers need to be removed and re-added.

0 commit comments

Comments
 (0)