fix: fix map zoom

This commit is contained in:
TheClashFruit 2023-09-18 19:42:59 +02:00
parent 6c4c425524
commit 7fa2eda590
Signed by: TheClashFruit
GPG key ID: CF4A319B9A73290C
2 changed files with 7 additions and 4 deletions

View file

@ -48,6 +48,10 @@
text-decoration: none;
color: #000;
}
img.leaflet-tile {
image-rendering: pixelated;
}
</style>
{% endif %}

View file

@ -6,7 +6,9 @@
<script>
let mapLayer = L.tileLayer('https://cdn.theclashfruit.me/crss/map/tile_{x}x{y}y.png', {
attribution: '&copy; <a href="https://crss.blurryface.xyz/">CRSS</a> players',
noWrap: true
noWrap: true,
maxNativeZoom: 4,
minNativeZoom: 4,
});
let spawnTown = L.marker([-36.3, -41.3])
@ -21,9 +23,6 @@
]);
let map = L.map('map', {
zoomControl: false,
scrollWheelZoom: false,
doubleClickZoom: false,
layers: [mapLayer, markers]
}).setView([-36.3, -41.3], 4);