refactor(incidents): 배출규정 구역 GeoJSON 파일을 대한민국 해리 데이터로 교체
기존 TB_ZN_TRTSEA 기반 영해기선/버퍼 GeoJSON 6개 삭제, 대한민국 해리 GeoJSON 5개로 교체 및 fetch 경로 수정
This commit is contained in:
부모
7cdbc8664f
커밋
5ea904fc3a
File diff suppressed because one or more lines are too long
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
Load Diff
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
Load Diff
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
Load Diff
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
Load Diff
File diff suppressed because one or more lines are too long
8049
frontend/public/data/대한민국.geojson
Normal file
8049
frontend/public/data/대한민국.geojson
Normal file
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
Load Diff
3966
frontend/public/data/대한민국_12해리.geojson
Normal file
3966
frontend/public/data/대한민국_12해리.geojson
Normal file
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
Load Diff
2644
frontend/public/data/대한민국_25해리.geojson
Normal file
2644
frontend/public/data/대한민국_25해리.geojson
Normal file
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
Load Diff
6262
frontend/public/data/대한민국_3해리.geojson
Normal file
6262
frontend/public/data/대한민국_3해리.geojson
Normal file
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
Load Diff
1760
frontend/public/data/대한민국_50해리.geojson
Normal file
1760
frontend/public/data/대한민국_50해리.geojson
Normal file
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
Load Diff
@ -44,7 +44,7 @@ export async function loadTerritorialBaseline(): Promise<[number, number][][]> {
|
||||
if (cachedBaselineRings) return cachedBaselineRings;
|
||||
if (baselineLoadingPromise) return baselineLoadingPromise;
|
||||
|
||||
baselineLoadingPromise = fetch('/data/TB_ZN_TRTSEA_multipolygon.geojson')
|
||||
baselineLoadingPromise = fetch('/data/대한민국.geojson')
|
||||
.then((res) => res.json())
|
||||
.then((data: { features: GeoJSONFeature[] }) => {
|
||||
cachedBaselineRings = extractOuterRings(data);
|
||||
@ -69,10 +69,10 @@ let cachedZones: ZoneGeoJSON[] | null = null;
|
||||
let zoneLoadingPromise: Promise<ZoneGeoJSON[]> | null = null;
|
||||
|
||||
const ZONE_FILES = [
|
||||
{ nm: 3, file: '/data/TB_ZN_TRTSEA_multipolygon_3nm_buffer.geojson' },
|
||||
{ nm: 12, file: '/data/TB_ZN_TRTSEA_multipolygon_12nm_buffer.geojson' },
|
||||
{ nm: 25, file: '/data/TB_ZN_TRTSEA_multipolygon_25nm_buffer.geojson' },
|
||||
{ nm: 50, file: '/data/TB_ZN_TRTSEA_multipolygon_50nm_buffer.geojson' },
|
||||
{ nm: 3, file: '/data/대한민국_3해리.geojson' },
|
||||
{ nm: 12, file: '/data/대한민국_12해리.geojson' },
|
||||
{ nm: 25, file: '/data/대한민국_25해리.geojson' },
|
||||
{ nm: 50, file: '/data/대한민국_50해리.geojson' },
|
||||
];
|
||||
|
||||
export async function loadZoneGeoJSON(): Promise<ZoneGeoJSON[]> {
|
||||
|
||||
불러오는 중...
Reference in New Issue
Block a user