diff --git a/src/mapboxgl/attributes/AttributesViewModel.ts b/src/mapboxgl/attributes/AttributesViewModel.ts index 363a0a60..b6480a72 100644 --- a/src/mapboxgl/attributes/AttributesViewModel.ts +++ b/src/mapboxgl/attributes/AttributesViewModel.ts @@ -287,7 +287,7 @@ class FeatureTableViewModel extends mapboxgl.Evented { if (!this.map) { return; } - let layer = this.map.getLayer(this.layerName); + let layer = this.map.getLayer(this.layerName) as mapboxglTypes.Layer; let type, id: string, paint; let features = []; if (!layer) { diff --git a/src/mapboxgl/web-map/control/compass/CompassViewModel.ts b/src/mapboxgl/web-map/control/compass/CompassViewModel.ts index c0ac0b2f..c79fda24 100644 --- a/src/mapboxgl/web-map/control/compass/CompassViewModel.ts +++ b/src/mapboxgl/web-map/control/compass/CompassViewModel.ts @@ -8,16 +8,12 @@ import mapboxgl from 'vue-iclient/static/libs/mapboxgl/mapbox-gl-enhance'; * @extends mapboxgl.Evented */ -interface mapEnhance extends mapboxglTypes.Map { - resetNorthPitch?: (options?: mapboxglTypes.AnimationOptions, eventData?: mapboxglTypes.EventData) => this; -} - interface optionsTypes { visualizePitch: boolean; } export default class CompassViewModel extends mapboxgl.Evented { - map: mapEnhance; + map: mapboxglTypes.Map; rotatePitchCallBack: any; visualizePitch: boolean; rotateEventFn: (data: mapboxglTypes.MapboxEvent) => void; diff --git a/src/mapboxgl/web-map/layer/fill-extrusion/FillExtrusionLayerViewModel.ts b/src/mapboxgl/web-map/layer/fill-extrusion/FillExtrusionLayerViewModel.ts index f14877e3..f4007833 100644 --- a/src/mapboxgl/web-map/layer/fill-extrusion/FillExtrusionLayerViewModel.ts +++ b/src/mapboxgl/web-map/layer/fill-extrusion/FillExtrusionLayerViewModel.ts @@ -81,7 +81,7 @@ export default class FillExtrusionViewModel extends mapboxgl.Evented { } const { layerId, layerStyle, sourceLayer, filter, minzoom, maxzoom } = this.options; const { paint = {}, layout = {} } = layerStyle || {}; - const layer: mapboxglTypes.Layer = { + const layer: mapboxglTypes.FillExtrusionLayer = { id: layerId, source: sourceId || layerId, 'source-layer': sourceLayer || '',