Refactoring(layout): move infobox to right modal; fix minimap

This commit is contained in:
Pieter Vander Vennet 2023-04-16 04:13:09 +02:00
parent 37ab1e5735
commit 9a282cbce4
6 changed files with 107 additions and 144 deletions

View file

@ -4,6 +4,7 @@ import * as turf from "@turf/turf"
import { AllGeoJSON, booleanWithin, Coord, Lines } from "@turf/turf"
import {
Feature,
FeatureCollection,
GeoJSON,
Geometry,
LineString,
@ -243,7 +244,7 @@ export class GeoOperations {
})
}
static bbox(feature: any): Feature<LineString, {}> {
static bbox(feature: Feature | FeatureCollection): Feature<LineString, {}> {
const [lon, lat, lon0, lat0] = turf.bbox(feature)
return {
type: "Feature",