Fix typing and build

This commit is contained in:
Pieter Vander Vennet 2022-11-07 23:35:17 +01:00
parent 336ebc4ea9
commit 5f1a7892c1
6 changed files with 20 additions and 19 deletions

View file

@ -22,6 +22,8 @@ import { TiledStaticFeatureSource } from "../FeatureSource/Sources/StaticFeature
import { Translation, TypedTranslation } from "../../UI/i18n/Translation"
import { Tag } from "../Tags/Tag"
import { OsmConnection } from "../Osm/OsmConnection"
import {Feature, GeoJSON, LineString} from "geojson";
import {OsmTags} from "../../Models/OsmFeature";
export interface GlobalFilter {
filter: FilterState
@ -320,7 +322,7 @@ export default class MapState extends UserRelatedState {
return []
}
const feature = {
const feature : Feature<LineString, OsmTags> = {
type: "Feature",
properties: {
id: "location_track",