We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e3d32a commit f8e6498Copy full SHA for f8e6498
x-pack/plugins/maps/public/classes/layers/tiled_vector_layer/tiled_vector_layer.tsx
@@ -182,6 +182,9 @@ export class TiledVectorLayer extends VectorLayer {
182
const layerIds = this.getMbLayerIds();
183
for (let i = 0; i < layerIds.length; i++) {
184
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
188
if (mbLayer && mbLayer.sourceLayer !== tiledSourceMeta.layerName) {
189
// If the source-pointer of one of the layers is stale, they will all be stale.
190
// In this case, all the mb-layers need to be removed and re-added.
0 commit comments