Skip to content

Commit

Permalink
feat: remove country border leaflet layer
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschonti committed Dec 11, 2024
1 parent 218422e commit b3a0512
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/components/Map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ import { useEffect, useRef, useState } from 'react';
import { GeoJSON as LeafletGeoJSON, MapContainer, Pane, SVGOverlay, TileLayer } from 'react-leaflet';

import BackToGlobalButton from '@/components/Map/BackToGlobalButton';
import {
countryBorderStyle,
disputedAreaStyle,
MAP_MAX_ZOOM,
MAP_MIN_ZOOM,
oceanBounds,
} from '@/domain/constant/map/Map';
import { disputedAreaStyle, MAP_MAX_ZOOM, MAP_MIN_ZOOM, oceanBounds } from '@/domain/constant/map/Map';
import { useSelectedAlert } from '@/domain/contexts/SelectedAlertContext';
import { useSelectedCountryId } from '@/domain/contexts/SelectedCountryIdContext';
import { useSelectedMap } from '@/domain/contexts/SelectedMapContext';
Expand Down Expand Up @@ -180,12 +174,12 @@ export default function Map({ countries, disputedAreas, fcsData, alertData }: Ma
/>
)}

<Pane name="countries_border" style={{ zIndex: 3 }}>
{/* <Pane name="countries_border" style={{ zIndex: 3 }}>
<LeafletGeoJSON
data={MapOperations.convertCountriesToFeatureCollection(countries.features)}
style={countryBorderStyle}
/>
</Pane>
</Pane> */}
<Pane name="disputed_areas" style={{ zIndex: 4 }}>
<LeafletGeoJSON
data={MapOperations.convertCountriesToFeatureCollection(disputedAreas.features)}
Expand Down

0 comments on commit b3a0512

Please sign in to comment.