mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 00:23:12 +09:00
Render map tiles as pixelated
This commit is contained in:
1 parent
5b9f650946
commit
063e622721
1 file changed
+18
-1
@@ -135,7 +135,24 @@ export default function MinimapPage() {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
{selectedInstanceData && mapBounds ? (
|
{selectedInstanceData && mapBounds ? (
|
||||||
<div style={{ height: "700px", width: "100%" }}>
|
<div
|
||||||
|
style={{
|
||||||
|
height: "700px",
|
||||||
|
width: "100%"
|
||||||
|
}}
|
||||||
|
className="minimap-container"
|
||||||
|
>
|
||||||
|
<style>
|
||||||
|
{`/* Avoid blurry rendering when zooming in */
|
||||||
|
.minimap-container .leaflet-container .leaflet-overlay-pane svg,
|
||||||
|
.minimap-container .leaflet-container .leaflet-marker-pane img,
|
||||||
|
.minimap-container .leaflet-container .leaflet-shadow-pane img,
|
||||||
|
.minimap-container .leaflet-container .leaflet-tile-pane img,
|
||||||
|
.minimap-container .leaflet-container img.leaflet-image-layer {
|
||||||
|
image-rendering: pixelated;
|
||||||
|
}
|
||||||
|
`}
|
||||||
|
</style>
|
||||||
<MapContainer
|
<MapContainer
|
||||||
bounds={mapBounds}
|
bounds={mapBounds}
|
||||||
style={{ height: "100%", width: "100%", backgroundColor: "#1a1a1a" }}
|
style={{ height: "100%", width: "100%", backgroundColor: "#1a1a1a" }}
|
||||||
|
|||||||
Reference in new issue
Block a user