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 Nov 21, 2024
1 parent ecabd56 commit eb9168a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/mapboxgl/layer-highlight/LayerHighlightViewModel.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 WebMapViewModel from 'vue-iclient/src/mapboxgl/web-map/WebMapViewModel';
import { getFeatureCenter, getValueCaseInsensitive } from 'vue-iclient/src/common/_utils/util';
import isEqual from 'lodash.isequal';
interface HighlightStyle {
Expand Down Expand Up @@ -61,11 +62,6 @@ interface PopupFeatureInfo {
info: PopupFieldsInfo[];
}

interface MapLoadInfo {
map: mapboxglTypes.Map;
[prop: string]: any;
}

enum DataSelectorMode {
SINGLE = 'SINGLE', // 单选
MULTIPLE = 'MULTIPLE', // 多选
Expand Down Expand Up @@ -183,6 +179,7 @@ export default class HighlightLayer extends mapboxgl.Evented {
private resultFeatures: LayerClickedFeature[] = [];
highlightOptions: HighlightLayerOptions;
map: mapboxglTypes.Map;
webmap: InstanceType<typeof WebMapViewModel>;
fire: (type: string, params?: any) => void;

constructor(options: HighlightLayerOptions) {
Expand All @@ -204,7 +201,7 @@ export default class HighlightLayer extends mapboxgl.Evented {
};
}

setMap({ map, webmap }: MapLoadInfo) {
setMap({ map, webmap }: mapInfoType) {
this.map = map;
this.webmap = webmap;
this.registerMapClick();
Expand Down

0 comments on commit eb9168a

Please sign in to comment.