Browse Source

Update layer.vue

v1.1.0
DJIsean 2 years ago committed by GitHub
parent
commit
c5f51306bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/pages/project-app/projects/layer.vue

2
src/pages/project-app/projects/layer.vue

@ -180,7 +180,7 @@ function updateMapElement (
id: id, id: id,
name: name name: name
}) })
} else if (MapElementEnum.LINE === type && geoType === 'Polygon') { } else if (MapElementEnum.POLY === type && geoType === 'Polygon') {
const coordinates = element.resource?.content.geometry const coordinates = element.resource?.content.geometry
.coordinates[0] as GeojsonCoordinate[] .coordinates[0] as GeojsonCoordinate[]
useGMapCoverHook.initPolygon(name, coordinates, color, { useGMapCoverHook.initPolygon(name, coordinates, color, {

Loading…
Cancel
Save