Skip to content

Commit

Permalink
[fix]ts-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxiao-supermap committed Oct 14, 2024
1 parent b00714c commit b8b25d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mapboxgl/_utils/HightlighLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import mapboxgl from 'vue-iclient/static/libs/mapboxgl/mapbox-gl-enhance';
import CircleStyle from 'vue-iclient/src/mapboxgl/_types/CircleStyle';
import LineStyle from 'vue-iclient/src/mapboxgl/_types/LineStyle';
import FillStyle from 'vue-iclient/src/mapboxgl/_types/FillStyle';
import { AnyLayer } from 'mapbox-gl';

interface HighlightStyle {
circle: InstanceType<typeof CircleStyle>;
Expand Down Expand Up @@ -185,7 +186,7 @@ export default class HighlightLayer extends mapboxgl.Evented {
layout: Object.assign({}, LAYER_DEFAULT_STYLE[type].layout, layerStyle?.layout),
filter
});
this.map.addLayer(highlightLayer);
this.map.addLayer(highlightLayer as AnyLayer);
this.targetLayerIds.push(id);
this.targetLayerIds = this._uniqueLayerIds(this.targetLayerIds);
}
Expand All @@ -198,7 +199,7 @@ export default class HighlightLayer extends mapboxgl.Evented {
layout: Object.assign({}, LAYER_DEFAULT_STYLE['strokeLine'].layout, layerStyle?.layout),
filter
});
this.map.addLayer(highlightLayer);
this.map.addLayer(highlightLayer as AnyLayer);
}
}

Expand Down

0 comments on commit b8b25d2

Please sign in to comment.