Skip to content

Commit

Permalink
Lock file maintenance npm all non-major dependencies (#3247)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Conor Brady <con.brad@gmail.com>
  • Loading branch information
renovate[bot] and conbrad authored Nov 21, 2023
1 parent 825fff9 commit 7331738
Show file tree
Hide file tree
Showing 3 changed files with 282 additions and 278 deletions.
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 { StyleLike } from 'ol/style/Style'

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 @@ interface Props {
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)

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

0 comments on commit 7331738

Please sign in to comment.