Skip to content

Commit 6fecba0

Browse files
committed
Fix map after ol upgrade
Signed-off-by: Steve Cassidy <steve.cassidy@mq.edu.au>
1 parent d527fd6 commit 6fecba0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gui/fields/maps/MapWrapper.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ interface MapProps extends ButtonProps {
6262
}
6363

6464
import {AppBar, Dialog, IconButton, Toolbar, Typography} from '@mui/material';
65+
import Feature from 'ol/Feature';
66+
import {Geometry} from 'ol/geom';
6567

6668
const styles = {
6769
mapContainer: {
@@ -77,7 +79,7 @@ function MapWrapper(props: MapProps) {
7779
const [mapOpen, setMapOpen] = useState<boolean>(false);
7880
const [map, setMap] = useState<Map | undefined>();
7981
const [featuresLayer, setFeaturesLayer] =
80-
useState<VectorLayer<VectorSource<any>>>();
82+
useState<VectorLayer<Feature<Geometry>>>();
8183
const defaultMapProjection = 'EPSG:3857';
8284
const geoJson = new GeoJSON();
8385

0 commit comments

Comments
 (0)