Skip to content

Commit

Permalink
Fix types in GeoJSON export
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed Dec 5, 2024
1 parent e15a306 commit 709b75b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/export/geojson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export function exportGeoJson(database: Database, mapId: MapId, filter?: string)
searchEngines: mapData.searchEngines,
description: mapData.description,
clusterMarkers: mapData.clusterMarkers,
views: jsonStreamArray(mapAsyncIterator(database.views.getViews(mapId), (view) => omit(view, ["id", "mapId"])))
views: jsonStreamArray(mapAsyncIterator(database.views.getViews(mapId), (view) => omit(view, ["id", "mapId"]))),
types: mapValues(types, (type) => omit(type, ["id", "mapId"]))
}),
types: mapValues(types, (type) => omit(type, ["id", "mapId"])),
features: jsonStreamArray(concatAsyncIterators(
flatMapAsyncIterator(database.markers.getMapMarkers(mapId), (marker) => {
if (filterFunc(marker, types[marker.typeId])) {
Expand Down

0 comments on commit 709b75b

Please sign in to comment.