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

Lock file maintenance npm all non-major dependencies #3247

Merged
merged 2 commits into from
Nov 21, 2023
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 web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"lodash": "^4.17.21",
"luxon": "^3.0.2",
"match-sorter": "^6.3.1",
"ol": "^8.0.0",
"ol": "^9.0.0-dev.1700506701744",
"ol-pmtiles": "^0.3.0",
"prettier": "^2.4.1",
"react": "^17.0.2",
Expand Down
5 changes: 3 additions & 2 deletions web/src/features/map/VectorLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@

import { MapContext } from 'features/map/Map'
import Geometry from 'ol/geom/Geometry'
import Feature from 'ol/Feature'

interface Props {
source: VectorSource<Geometry>
source: VectorSource<Feature<Geometry>>
style: StyleLike
opacity?: number
zIndex?: number
Expand All @@ -16,7 +17,7 @@
const VectorLayer = ({ source, style, opacity, zIndex = 0 }: Props) => {
const map = useContext(MapContext)

const [layer, setLayer] = useState<OLVectorLayer<VectorSource<Geometry>> | null>(null)
const [layer, setLayer] = useState<OLVectorLayer<VectorSource<Feature<Geometry>>> | null>(null)

Check warning on line 20 in web/src/features/map/VectorLayer.tsx

View check run for this annotation

Codecov / codecov/patch

web/src/features/map/VectorLayer.tsx#L20

Added line #L20 was not covered by tests

useEffect(() => {
if (!map) return
Expand Down
Loading
Loading