Skip to content

Commit

Permalink
upgrade openlayers to 10.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Oct 1, 2024
1 parent 51c9fba commit 12c08e2
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 52 deletions.
110 changes: 61 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"custom-model-editor": "github:graphhopper/custom-model-editor#3a46b6981d170b7eb70d621bbb92caed149e5a97",
"geojson": "^0.5.0",
"heightgraph": "github:easbar/Leaflet.Heightgraph#5f4f0b1fff3646aa071981381f5955c9e6f111f0",
"ol": "9.2.3",
"ol-mapbox-style": "12.3.2",
"ol": "10.2.1",
"ol-mapbox-style": "12.3.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-responsive": "^9.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/layers/UseQueryPointsLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function removeDragInteractions(map: Map) {
.forEach(i => map.removeInteraction(i))
}

function addDragInteractions(map: Map, queryPointsLayer: VectorLayer<Feature<Geometry>>) {
function addDragInteractions(map: Map, queryPointsLayer: VectorLayer<VectorSource<Feature<Geometry>>>) {
let tmp = queryPointsLayer.getSource()
if (tmp == null) throw new Error('source must not be null') // typescript requires this
const modify = new Modify({
Expand Down

0 comments on commit 12c08e2

Please sign in to comment.