- {MAPS.map((map) =>
- <g className="area" key={map.id} title={map.name}>
- <image
- href={map.bg.src}
- pointerEvents="none"
- x={map.bg.pos.x} y={map.bg.pos.y}
- width={map.bg.size.x}
- style={{ opacity: prefs.showMaps ? 1 : 0.25 }}
- />
- {map.labelPos && prefs.showLabels ?
- <text
- className="area-label"
- x={map.labelPos.x}
- y={map.labelPos.y}
- fill={map.color}
- >
- {map.short}
- </text>
- : null}
- {prefs.showEntrances ? map.entrances.map((entrance) =>
- <MapEntrance key={entrance.id} entrance={entrance} />
- ) : null}
- </g>
- )}
+ <g className="background">
+ {MAPS.map((map) =>
+ <g className="area" key={map.id} title={map.name}>
+ <image
+ href={map.bg.src}
+ pointerEvents="none"
+ x={map.bg.pos.x} y={map.bg.pos.y}
+ width={map.bg.size.x}
+ style={{ opacity: prefs.showMaps ? 1 : 0.25 }}
+ />
+ {map.labelPos && prefs.showLabels ?
+ <text
+ className="area-label"
+ x={map.labelPos.x}
+ y={map.labelPos.y}
+ fill={map.color}
+ >
+ {map.short}
+ </text>
+ : null}
+ </g>
+ )}
+ </g>