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, {