fix: MEEnergyHazardLayer WindTurbineIcon 내부 정의, 선단패널 오른쪽 이동, fishing-zones 데이터 보정
This commit is contained in:
부모
409e618a39
커밋
0aff7302e6
@ -7,9 +7,25 @@ import {
|
||||
layerKeyToCountry,
|
||||
type EnergyHazardFacility,
|
||||
} from '../../data/meEnergyHazardFacilities';
|
||||
import { WindTurbineIcon } from '../korea/WindFarmLayer';
|
||||
import type { FacilitySubType } from '../../data/meEnergyHazardFacilities';
|
||||
|
||||
function WindTurbineIcon({ size = 18, color = '#0891b2' }: { size?: number; color?: string }) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 32 32" fill="none">
|
||||
<path d="M15 14 L14.2 29 L17.8 29 L17 14 Z" fill={color} opacity="0.7" />
|
||||
<rect x="11" y="28.5" width="10" height="2" rx="1" fill={color} opacity="0.5" />
|
||||
<ellipse cx="16" cy="12" rx="2.5" ry="1.5" fill={color} />
|
||||
<circle cx="16" cy="12" r="1.2" fill="#fff" opacity="0.9" />
|
||||
<circle cx="16" cy="12" r="0.6" fill={color} />
|
||||
<path d="M16 12 L15 1.5 Q16 0.5 17 1.5 Z" fill={color} opacity="0.85" />
|
||||
<path d="M16 12 L24.5 18 Q24 19.5 22.5 18.5 Z" fill={color} opacity="0.85" />
|
||||
<path d="M16 12 L7.5 18 Q8 19.5 9.5 18.5 Z" fill={color} opacity="0.85" />
|
||||
<path d="M3 30 Q5.5 28 8 30 Q10.5 32 13 30" stroke={color} strokeWidth="0.8" fill="none" opacity="0.4" />
|
||||
<path d="M19 30 Q21.5 28 24 30 Q26.5 32 29 30" stroke={color} strokeWidth="0.8" fill="none" opacity="0.4" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
function FacilityIcon({ subType, color, size = 18 }: { subType: FacilitySubType; color: string; size?: number }) {
|
||||
const s = size;
|
||||
switch (subType) {
|
||||
|
||||
@ -492,7 +492,7 @@ export function FleetClusterLayer({ ships, analysisMap: analysisMapProp, cluster
|
||||
const panelStyle: React.CSSProperties = {
|
||||
position: 'absolute',
|
||||
bottom: 60,
|
||||
left: 10,
|
||||
right: 10,
|
||||
zIndex: 10,
|
||||
minWidth: 220,
|
||||
maxWidth: 300,
|
||||
|
||||
File diff suppressed because one or more lines are too long
불러오는 중...
Reference in New Issue
Block a user