From a7c573ce269a3c7a8c3d190a6fd01e702b39b75c Mon Sep 17 00:00:00 2001 From: Cmen <1176967590@qq.com> Date: Fri, 11 Mar 2022 14:02:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E6=B2=A1=E6=9C=89name=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/utils/getGeoJSON.ts | 2 ++ 1 file changed, 2 insertions(+) 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;