Browse Source

서항청 관할지역 좌표파일 추가

master
junh_eee(이준희) 1 week ago
parent
commit
379808b9fa
  1. 25250
      src/components/map/geojson/competentBorder.json
  2. 31
      src/components/map/mapbox/MapBoxMap.js

25250
src/components/map/geojson/competentBorder.json

File diff suppressed because it is too large Load Diff

31
src/components/map/mapbox/MapBoxMap.js

@ -43,6 +43,8 @@ import flatGimpo from '../../map/geojson/airport/flatGimpoAirportAirArea.json';
import flatUlsan from '../../map/geojson/airport/flatUlsanAirArea.json'; import flatUlsan from '../../map/geojson/airport/flatUlsanAirArea.json';
import flatJeju from '../../map/geojson/airport/flatJejuAirport.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 { clientMapInit } from '@src/redux/features/control/map/mapSlice';
import { getDraw } from '@src/utility/MapUtils'; import { getDraw } from '@src/utility/MapUtils';
@ -534,7 +536,6 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
} }
}); });
} else { } else {
console.log('@?@?');
map.setTerrain(); map.setTerrain();
map.setMaxPitch(0); map.setMaxPitch(0);
map.setBearing(0); map.setBearing(0);
@ -710,6 +711,32 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
filter: ['in', '$type', 'Polygon'] 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); setMapLoaded(true);
}); });
@ -792,7 +819,7 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
<DronToast /> <DronToast />
<DronMarker map={mapObject} mapboxgl={mapboxgl} /> <DronMarker map={mapObject} mapboxgl={mapboxgl} />
<DronPlan map={mapObject} planGeo={planGeo} setPlanGeo={setPlanGeo} /> <DronPlan map={mapObject} planGeo={planGeo} setPlanGeo={setPlanGeo} />
<FeatureAirZone map={mapObject} mapboxgl={mapboxgl} /> {/* <FeatureAirZone map={mapObject} mapboxgl={mapboxgl} /> */}
</> </>
) : null} ) : null}

Loading…
Cancel
Save