|
|
@ -322,11 +322,13 @@ export default function LaancAreaMap({ |
|
|
|
{mapObject && viewCoordObj.length > 0 ? ( |
|
|
|
{mapObject && viewCoordObj.length > 0 ? ( |
|
|
|
<div className='coords-box'> |
|
|
|
<div className='coords-box'> |
|
|
|
{viewCoordObj?.map((obj, i) => { |
|
|
|
{viewCoordObj?.map((obj, i) => { |
|
|
|
const coord = |
|
|
|
let coord = |
|
|
|
obj.properties.id === 'LINE' |
|
|
|
obj.properties.id === 'LINE' |
|
|
|
? obj.geometry.coordinates |
|
|
|
? obj.geometry.coordinates |
|
|
|
: obj.geometry.coordinates[0]; |
|
|
|
: obj.geometry.coordinates[0]; |
|
|
|
// if (obj.properties.id === 'POLYGON') coord.splice(-1);
|
|
|
|
if (obj.properties.id === 'POLYGON') { |
|
|
|
|
|
|
|
coord = coord.slice(0, coord.length - 1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<div> |
|
|
|