diff --git a/src/store/utils/getGeoJSON.ts b/src/store/utils/getGeoJSON.ts index 03b4e69..fa558de 100644 --- a/src/store/utils/getGeoJSON.ts +++ b/src/store/utils/getGeoJSON.ts @@ -19,6 +19,7 @@ export function getGeoJSON(state: IMapOptions): GeoJSON.FeatureCollection { const properties: GeoJSON.GeoJsonProperties = { ...restProperties, fineType: overlay.type, + name: overlay.name, }; const { category } = overlay; if (category === OverlayCategory.Building) { @@ -67,6 +68,7 @@ export function getGeoJSON(state: IMapOptions): GeoJSON.FeatureCollection { const path = polyline.path!.map((pos) => [...pos]); const properties: GeoJSON.GeoJsonProperties = { fineType: OverlayTypes.Polyline, + name: polyline.name, }; if (polyline.category === OverlayCategory.Road) { properties.road = true;