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