File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ import olStyleStyle from 'ol/style/Style';
47
47
import { select as d3select } from 'd3' ;
48
48
49
49
import OlMap from 'ol/Map' ;
50
+ import OlFeature from 'ol/Feature' ;
50
51
import OlOverlay from 'ol/Overlay' ;
51
52
import OlLayerVector from 'ol/layer/Vector' ;
52
53
import OlSourceVector from 'ol/source/Vector' ;
@@ -88,13 +89,13 @@ export class LidarprofileManager {
88
89
/**
89
90
* The hovered point geometry (point) in D3 profile highlighted on the 2D map.
90
91
*/
91
- lidarPointHighlight : OlLayerVector < OlSourceVector < OlGeomGeometry > > ;
92
+ lidarPointHighlight : OlLayerVector < OlSourceVector < OlFeature < OlGeomGeometry > > > ;
92
93
93
94
/**
94
95
* The profile footpring represented as a LineString represented
95
96
* with real mapunites stroke width.
96
97
*/
97
- lidarBuffer : OlLayerVector < OlSourceVector < OlGeomGeometry > > ;
98
+ lidarBuffer : OlLayerVector < OlSourceVector < OlFeature < OlGeomGeometry > > > ;
98
99
99
100
/**
100
101
* The variable where all points of the profile are stored.
@@ -632,7 +633,7 @@ export class LidarprofileManager {
632
633
domainX [ 1 ] ,
633
634
) ;
634
635
635
- const source : olSourceVector < OlGeomGeometry > = this . lidarBuffer . getSource ( ) ;
636
+ const source : olSourceVector < OlFeature < OlGeomGeometry > > = this . lidarBuffer . getSource ( ) ;
636
637
source . clear ( ) ;
637
638
source . addFeature ( clip . bufferGeom ) ;
638
639
this . lidarBuffer . setStyle ( clip . bufferStyle ) ;
Original file line number Diff line number Diff line change @@ -515,7 +515,7 @@ export default class {
515
515
) ;
516
516
}
517
517
518
- source . addFeature ( lidarPointFeature ) ;
518
+ source . addFeature ( lidarPointFeature ) ; // eslint-disable-line @typescript-eslint/no-unsafe-call
519
519
} else {
520
520
source . clear ( ) ;
521
521
svg . select ( '#highlightCircle' ) . remove ( ) ;
Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ export class FeatureOverlayMgr {
66
66
67
67
groups_ : MapFeatureOverlayGroup [ ] ;
68
68
69
- source_ : OlSourceVector < OlGeomGeometry > ;
69
+ source_ : OlSourceVector < OlFeature < OlGeomGeometry > > ;
70
70
71
- layer_ : OlLayerVector < OlSourceVector < OlGeomGeometry > > ;
71
+ layer_ : OlLayerVector < OlSourceVector < OlFeature < OlGeomGeometry > > > ;
72
72
73
73
constructor ( ) {
74
74
this . featureUidToGroupIndex_ = { } ;
@@ -137,7 +137,7 @@ export class FeatureOverlayMgr {
137
137
/**
138
138
* @returns {olLayerVector<olSourceVector<OlGeomGeometry>> } The vector layer used internally.
139
139
*/
140
- getLayer ( ) : olLayerVector < olSourceVector < OlGeomGeometry > > {
140
+ getLayer ( ) : olLayerVector < olSourceVector < OlFeature < OlGeomGeometry > > > {
141
141
return this . layer_ ;
142
142
}
143
143
You can’t perform that action at this time.
0 commit comments