|
|
|
@ -106,7 +106,8 @@ export default function MapBoxMap() {
|
|
|
|
|
mapControl.area0004, |
|
|
|
|
mapControl.area0005, |
|
|
|
|
mapControl.area0006, |
|
|
|
|
mapControl.liner |
|
|
|
|
// mapControl.liner
|
|
|
|
|
mapControl.areaType |
|
|
|
|
]); |
|
|
|
|
|
|
|
|
|
// 공역 생성
|
|
|
|
@ -118,7 +119,8 @@ export default function MapBoxMap() {
|
|
|
|
|
features: [...geoJson.features, ...flatGimpo.features] |
|
|
|
|
} |
|
|
|
|
) => { |
|
|
|
|
useGeoJson = mapControl.liner |
|
|
|
|
// useGeoJson = mapControl.liner
|
|
|
|
|
useGeoJson = mapControl.areaType |
|
|
|
|
? { |
|
|
|
|
...geoJson, |
|
|
|
|
...flatGimpo, |
|
|
|
@ -144,7 +146,8 @@ export default function MapBoxMap() {
|
|
|
|
|
linerAltitudeMarker.map(i => i.remove()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!mapControl.liner) { |
|
|
|
|
// if (!mapControl.liner) {
|
|
|
|
|
if (mapControl.areaType === 'square') { |
|
|
|
|
if (gridCoords.length <= 0) { |
|
|
|
|
gimPoGrid.features.map(air => { |
|
|
|
|
gridCoords.push({ |
|
|
|
|