Browse Source

김포 장애물표면제한구역 좌표 수정

master
김장현 2 months ago
parent
commit
408657a42a
  1. 4642
      src/components/map/geojson/gimpoAirportAirArea.json
  2. 2
      src/components/map/mapbox/MapBoxMap.js
  3. 7
      src/utility/hooks/useMapType.ts

4642
src/components/map/geojson/gimpoAirportAirArea.json

File diff suppressed because it is too large Load Diff

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

@ -38,6 +38,7 @@ import gimPoGrid from '../../../components/map/geojson/airportAirArea.json';
import flatGimpo from '../../map/geojson/flatGimpoAirportAirArea.json'; import flatGimpo from '../../map/geojson/flatGimpoAirportAirArea.json';
import { clientMapInit } from '@src/redux/features/control/map/mapSlice'; import { clientMapInit } from '@src/redux/features/control/map/mapSlice';
import axios from '@src/utility/customAxiosUtil';
let gridCoords = []; let gridCoords = [];
let altitudeMarker = []; let altitudeMarker = [];
@ -531,6 +532,7 @@ export default function MapBoxMap() {
setMapLoaded(true); setMapLoaded(true);
}); });
setMapObject(map); setMapObject(map);
dispatch(clientMapInit(map)); dispatch(clientMapInit(map));
}; };

7
src/utility/hooks/useMapType.ts

@ -24,9 +24,10 @@ const useMapType = () => {
mapState.map.setMaxPitch(85); mapState.map.setMaxPitch(85);
mapState.map.dragRotate.enable(); mapState.map.dragRotate.enable();
} else if (type === '2D') { } else if (type === '2D') {
// mapState.map.setMaxPitch(0); mapState.map.setTerrain();
// mapState.map.setBearing(0); mapState.map.setMaxPitch(0);
// mapState.map.dragRotate.disable(); mapState.map.setBearing(0);
mapState.map.dragRotate.disable();
} else if (type === 'SATELLITE') { } else if (type === 'SATELLITE') {
mapState.map.setStyle('mapbox://styles/mapbox/satellite-streets-v12'); mapState.map.setStyle('mapbox://styles/mapbox/satellite-streets-v12');
mapState.map.setTerrain({ mapState.map.setTerrain({

Loading…
Cancel
Save