1
0
Fork 0
forked from CRSS/Website

feat: bit of stuff

This commit is contained in:
TheClashFruit 2023-11-17 19:38:27 +01:00
parent bf980cede0
commit d14e5b6e48
Signed by: TheClashFruit
GPG key ID: 09BB24C34C2F3204
2 changed files with 28 additions and 10 deletions

View file

@ -38,13 +38,16 @@
#homeLink {
position: absolute;
bottom: 16px;
left: 16px;
padding: 8px 16px;
bottom: 10px;
left: 10px;
padding: 5px 10px;
z-index: 400;
background-color: #fff;
border-radius: 32px;
background-clip: padding-box;
border: 2px solid rgba(0,0,0,0.2);
border-radius: 5px;
text-decoration: none;
color: #000;
@ -63,6 +66,8 @@
width: calc(100% - 2 * 6px);
text-align: end;
border-top-left-radius: 5px;
}
</style>
{% endif %}

View file

@ -41,24 +41,37 @@
const worldMaxZoomFactor = Math.pow(2, 0);
let spawnTown = L.marker([0, 0])
let zeroZero = L.marker([0.5, 0.5])
.bindPopup('0; 0');
let markers = L.layerGroup([
spawnTown
let infoCentre = L.marker([75.5, 49.5])
.bindPopup('Info Centre');
let ropMarkers = L.layerGroup([
infoCentre
]);
let rorMarkers = L.layerGroup([
]);
let miscMarkers = L.layerGroup([
zeroZero
]);
let map = L.map('map', {
layers: [mapLayer, markers],
layers: [mapLayer, ropMarkers],
crs: L.CRS.Simple,
}).setView([0, 0], 2);
}).setView([0.5, 0.5], 2);
let baseMaps = {
"Overworld": mapLayer
};
let overlayMaps = {
"Markers": markers
"Miscellaneous Markers": miscMarkers,
"Markers in RoP": ropMarkers,
"Markers in DRoR": rorMarkers,
};
let layerControl = L.control.layers(baseMaps, overlayMaps).addTo(map);