forked from CRSS/Website
fix: fix map zoom
This commit is contained in:
parent
6c4c425524
commit
7fa2eda590
|
@ -48,6 +48,10 @@
|
|||
text-decoration: none;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
img.leaflet-tile {
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
</style>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
<script>
|
||||
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',
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue