|
|
|
@ -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; |
|
|
|
|