Browse Source

.

pull/2/head
junh_eee(이준희) 11 months ago
parent
commit
1cbb8ea14c
  1. 6
      src/views/laanc/LaancAreaMap.js

6
src/views/laanc/LaancAreaMap.js

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

Loading…
Cancel
Save