forked from blurryface/Website
fix: fix map zoom
This commit is contained in:
parent
6c4c425524
commit
7fa2eda590
|
@ -48,6 +48,10 @@
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img.leaflet-tile {
|
||||||
|
image-rendering: pixelated;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
<script>
|
<script>
|
||||||
let mapLayer = L.tileLayer('https://cdn.theclashfruit.me/crss/map/tile_{x}x{y}y.png', {
|
let mapLayer = L.tileLayer('https://cdn.theclashfruit.me/crss/map/tile_{x}x{y}y.png', {
|
||||||
attribution: '© <a href="https://crss.blurryface.xyz/">CRSS</a> players',
|
attribution: '© <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])
|
let spawnTown = L.marker([-36.3, -41.3])
|
||||||
|
@ -21,9 +23,6 @@
|
||||||
]);
|
]);
|
||||||
|
|
||||||
let map = L.map('map', {
|
let map = L.map('map', {
|
||||||
zoomControl: false,
|
|
||||||
scrollWheelZoom: false,
|
|
||||||
doubleClickZoom: false,
|
|
||||||
layers: [mapLayer, markers]
|
layers: [mapLayer, markers]
|
||||||
}).setView([-36.3, -41.3], 4);
|
}).setView([-36.3, -41.3], 4);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue