From c5f51306bfc8e57e4837d071e38e25fa6aa87f76 Mon Sep 17 00:00:00 2001 From: DJIsean <102007705+DJIsean@users.noreply.github.com> Date: Wed, 17 Aug 2022 15:16:23 +0800 Subject: [PATCH] Update layer.vue --- src/pages/project-app/projects/layer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/project-app/projects/layer.vue b/src/pages/project-app/projects/layer.vue index 325fd86..eb10e53 100644 --- a/src/pages/project-app/projects/layer.vue +++ b/src/pages/project-app/projects/layer.vue @@ -180,7 +180,7 @@ function updateMapElement ( id: id, name: name }) - } else if (MapElementEnum.LINE === type && geoType === 'Polygon') { + } else if (MapElementEnum.POLY === type && geoType === 'Polygon') { const coordinates = element.resource?.content.geometry .coordinates[0] as GeojsonCoordinate[] useGMapCoverHook.initPolygon(name, coordinates, color, {