Added search markers component

Functionnality is not present for now and will probably rely on nanostores
This commit is contained in:
Alexis
2023-10-13 11:48:01 +02:00
parent 73cc730a5c
commit 4e1927bf02
11 changed files with 820 additions and 51 deletions

View File

@@ -23,8 +23,13 @@ const { markers, players } = Astro.props
minZoom: 2.5,
zoom: 2.5,
zoomSnap: 0,
zoomControl: false
});
L.control.zoom({
position: 'bottomright',
}).addTo(map);
// Layers
const layer = L.tileLayer.zoomify('/zoomify/alliance-kaldelienne/{g}/{z}-{x}-{y}.jpg', {
width: mapWidth,
@@ -152,7 +157,7 @@ const { markers, players } = Astro.props
});
const rulerOptions = {
position: 'topleft',
position: 'topright',
primaryLengthUnit: 'kilometers',
secondaryLengthUnit: 'days',
primaryAreaUnit: 'hectares',
@@ -187,6 +192,12 @@ html,
body {
height: 100vh;
margin: 0;
position: relative;
}
.world-wrapper {
position: fixed;
inset: 0;
}
.leaflet-container {