Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency ol to v10 (master) #9427

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"neat-csv": "5.2.0",
"node-sass": "9.0.0",
"node-sass-importer": "2.0.2",
"ol": "7.5.2",
"ol": "10.1.0",
"ol-cesium": "2.14.0",
"ol-layerswitcher": "4.1.2",
"ol-mapbox-style": "12.3.5",
Expand Down
7 changes: 4 additions & 3 deletions src/lidar/Manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import olStyleStyle from 'ol/style/Style';
import {select as d3select} from 'd3';

import OlMap from 'ol/Map';
import OlFeature from 'ol/Feature';
import OlOverlay from 'ol/Overlay';
import OlLayerVector from 'ol/layer/Vector';
import OlSourceVector from 'ol/source/Vector';
Expand Down Expand Up @@ -88,13 +89,13 @@ export class LidarprofileManager {
/**
* The hovered point geometry (point) in D3 profile highlighted on the 2D map.
*/
lidarPointHighlight: OlLayerVector<OlSourceVector<OlGeomGeometry>>;
lidarPointHighlight: OlLayerVector<OlSourceVector<OlFeature<OlGeomGeometry>>>;

/**
* The profile footpring represented as a LineString represented
* with real mapunites stroke width.
*/
lidarBuffer: OlLayerVector<OlSourceVector<OlGeomGeometry>>;
lidarBuffer: OlLayerVector<OlSourceVector<OlFeature<OlGeomGeometry>>>;

/**
* The variable where all points of the profile are stored.
Expand Down Expand Up @@ -632,7 +633,7 @@ export class LidarprofileManager {
domainX[1],
);

const source: olSourceVector<OlGeomGeometry> = this.lidarBuffer.getSource();
const source: olSourceVector<OlFeature<OlGeomGeometry>> = this.lidarBuffer.getSource();
source.clear();
source.addFeature(clip.bufferGeom);
this.lidarBuffer.setStyle(clip.bufferStyle);
Expand Down
2 changes: 1 addition & 1 deletion src/lidar/Plot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ export default class {
);
}

source.addFeature(lidarPointFeature);
source.addFeature(lidarPointFeature); // eslint-disable-line @typescript-eslint/no-unsafe-call
} else {
source.clear();
svg.select('#highlightCircle').remove();
Expand Down
6 changes: 3 additions & 3 deletions src/map/FeatureOverlayMgr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ export class FeatureOverlayMgr {

groups_: MapFeatureOverlayGroup[];

source_: OlSourceVector<OlGeomGeometry>;
source_: OlSourceVector<OlFeature<OlGeomGeometry>>;

layer_: OlLayerVector<OlSourceVector<OlGeomGeometry>>;
layer_: OlLayerVector<OlSourceVector<OlFeature<OlGeomGeometry>>>;

constructor() {
this.featureUidToGroupIndex_ = {};
Expand Down Expand Up @@ -137,7 +137,7 @@ export class FeatureOverlayMgr {
/**
* @returns {olLayerVector<olSourceVector<OlGeomGeometry>>} The vector layer used internally.
*/
getLayer(): olLayerVector<olSourceVector<OlGeomGeometry>> {
getLayer(): olLayerVector<olSourceVector<OlFeature<OlGeomGeometry>>> {
return this.layer_;
}

Expand Down
Loading