|
|
|
@ -43,6 +43,8 @@ import flatGimpo from '../../map/geojson/airport/flatGimpoAirportAirArea.json';
|
|
|
|
|
import flatUlsan from '../../map/geojson/airport/flatUlsanAirArea.json'; |
|
|
|
|
import flatJeju from '../../map/geojson/airport/flatJejuAirport.json'; |
|
|
|
|
|
|
|
|
|
import competentBorder from '../../map/geojson/competentBorder.json'; |
|
|
|
|
|
|
|
|
|
import { clientMapInit } from '@src/redux/features/control/map/mapSlice'; |
|
|
|
|
import { getDraw } from '@src/utility/MapUtils'; |
|
|
|
|
|
|
|
|
@ -534,7 +536,6 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
console.log('@?@?'); |
|
|
|
|
map.setTerrain(); |
|
|
|
|
map.setMaxPitch(0); |
|
|
|
|
map.setBearing(0); |
|
|
|
@ -710,6 +711,32 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
|
|
|
|
|
filter: ['in', '$type', 'Polygon'] |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 비행승인 관할지역
|
|
|
|
|
// map.addSource('competentBorder', {
|
|
|
|
|
// type: 'geojson',
|
|
|
|
|
// data: competentBorder
|
|
|
|
|
// });
|
|
|
|
|
// map.addLayer({
|
|
|
|
|
// id: 'competentBorder-line',
|
|
|
|
|
// type: 'line',
|
|
|
|
|
// source: 'competentBorder',
|
|
|
|
|
// layout: {},
|
|
|
|
|
// paint: {
|
|
|
|
|
// 'line-color': '#000000',
|
|
|
|
|
// 'line-width': 1
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// map.addLayer({
|
|
|
|
|
// id: 'competentBorder-polygon',
|
|
|
|
|
// type: 'fill',
|
|
|
|
|
// source: 'competentBorder',
|
|
|
|
|
// layout: {},
|
|
|
|
|
// paint: {
|
|
|
|
|
// 'fill-color': '#000000',
|
|
|
|
|
// 'fill-opacity': 0.2
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
setMapLoaded(true); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -792,7 +819,7 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
|
|
|
|
|
<DronToast /> |
|
|
|
|
<DronMarker map={mapObject} mapboxgl={mapboxgl} /> |
|
|
|
|
<DronPlan map={mapObject} planGeo={planGeo} setPlanGeo={setPlanGeo} /> |
|
|
|
|
<FeatureAirZone map={mapObject} mapboxgl={mapboxgl} /> |
|
|
|
|
{/* <FeatureAirZone map={mapObject} mapboxgl={mapboxgl} /> */} |
|
|
|
|
</> |
|
|
|
|
) : null} |
|
|
|
|
|
|
|
|
|