12 Commits
1.4.0 ... 1.4.2

Author SHA1 Message Date
Alexis
f41ccfa079 Hotfix : Fixed attribution to Andrei Pervukhin 2025-01-04 21:05:38 +01:00
Alexis
d273674160 Hotfix : Changed wiki URL 2025-01-04 14:00:57 +01:00
Alexis
8fc2667644 Merge branch 'dev' 2025-01-02 21:39:20 +01:00
Alexis
c7bdfadce7 Added back player position 2025-01-02 21:39:15 +01:00
Alexis
6ebeff59a7 Updated version 2025-01-02 21:30:16 +01:00
Alexis
d893baeba2 Fixed z-index on map switch 2025-01-02 21:23:16 +01:00
Alexis
333e2548de Added more marker data 2025-01-02 21:19:37 +01:00
Alexis
3f7a8ec0b6 Changed cover images for map switch 2025-01-02 12:27:54 +01:00
Alexis
190406bf24 Added some marker data 2025-01-01 23:50:29 +01:00
Alexis
2ebee9f3e8 Fixed custom markers appearing on other maps 2025-01-01 21:14:33 +01:00
Alexis
db67032941 Removed unused imports 2025-01-01 20:04:55 +01:00
Alexis
696848d18f Fixed absolute path to /public for icons 2025-01-01 20:03:56 +01:00
18 changed files with 209 additions and 168 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "leim-maps",
"type": "module",
"version": "1.4.0",
"version": "1.4.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -12,7 +12,7 @@ const players = playersData as PlayerMarker
<div class="world-wrapper">
<div id="world"></div>
<MarkerCreator client:load />
<MarkerCreator client:load mapKey="aldys" />
</div>
<script lang="ts" define:vars={{ markers, players }} defer>
@@ -111,8 +111,8 @@ for (let i = 0; i < markers.length; i++) {
switch (m.group) {
case "capitals":
markerIcon = L.icon({
iconUrl: `icon/castle.png`,
shadowUrl: `icon/castle-shadow.png`,
iconUrl: `/icon/castle.png`,
shadowUrl: `/icon/castle-shadow.png`,
iconSize: [25, 25],
shadowSize: [35, 30],
iconAnchor: [12.5, 8],
@@ -122,15 +122,15 @@ for (let i = 0; i < markers.length; i++) {
case "cities":
markerIcon = L.icon({
iconUrl: `icon/circle.png`,
iconUrl: `/icon/circle.png`,
iconSize: [12, 12],
})
break
case "landmarks":
markerIcon = L.icon({
iconUrl: `icon/monument.png`,
shadowUrl: `icon/monument-shadow.png`,
iconUrl: `/icon/monument.png`,
shadowUrl: `/icon/monument-shadow.png`,
iconSize: [18, 18],
shadowSize: [32, 14],
iconAnchor: [12.5, 8],
@@ -140,8 +140,8 @@ for (let i = 0; i < markers.length; i++) {
case "quests":
markerIcon = L.icon({
iconUrl: `icon/flag.png`,
shadowUrl: `icon/flag-shadow.png`,
iconUrl: `/icon/flag.png`,
shadowUrl: `/icon/flag-shadow.png`,
iconSize: [20, 23],
shadowSize: [35, 30],
iconAnchor: [12.5, 8],
@@ -159,8 +159,8 @@ for (let i = 0; i < markers.length; i++) {
markerIconOverride = markerIcon
if (m.icon) {
markerIconOverride = L.icon({
iconUrl: `icon/${m.icon}.png`,
shadowUrl: `icon/${m.icon}-shadow.png`,
iconUrl: `/icon/${m.icon}.png`,
shadowUrl: `/icon/${m.icon}-shadow.png`,
iconSize: [25, 25],
shadowSize: [35, 30],
iconAnchor: [12.5, 8],
@@ -236,8 +236,8 @@ if ( players && Object.keys(players).length > 0 ) {
]
const playerIcon = L.icon({
iconUrl: `icon/location-pin.png`,
shadowUrl: `icon/location-pin-shadow.png`,
iconUrl: `/icon/location-pin.png`,
shadowUrl: `/icon/location-pin-shadow.png`,
iconSize: [18, 24],
shadowSize: [20, 16],
iconAnchor: [11, 8],
@@ -335,7 +335,7 @@ let customMarkersList = []
* It also sends an event to refresh data on other components that use localStorage
*/
function saveCustomMarkers() {
localStorage.setItem('custom-markers', JSON.stringify(customMarkersList))
localStorage.setItem('custom-markers-aldys', JSON.stringify(customMarkersList))
const refreshCustomMarkersEvent = new CustomEvent('refresh-custom-markers', { bubbles: true })
@@ -360,8 +360,8 @@ function addCustomMarker(markerTitle) {
const lat = Number(localStorage.getItem('lastHeldYPosition'))
const customMarkerIconOptions = {
iconUrl: `icon/push-pin.png`,
shadowUrl: `icon/push-pin-shadow.png`,
iconUrl: `/icon/push-pin.png`,
shadowUrl: `/icon/push-pin-shadow.png`,
iconSize: [20, 20],
shadowSize: [30, 25],
iconAnchor: [0, 13],
@@ -421,7 +421,7 @@ document.addEventListener('add-custom-marker', (e) => {
* Load all custom markers onto the map
*/
function loadCustomMarkersFromStorage() {
const customMarkersData = JSON.parse(localStorage.getItem('custom-markers'))
const customMarkersData = JSON.parse(localStorage.getItem('custom-markers-aldys'))
if (!customMarkersData) return

View File

@@ -11,7 +11,7 @@ const players = playersData as PlayerMarker
---
<div class="world-overlay">
<SearchMarkers client:load markers={markers} players={players} />
<SearchMarkers client:load markers={markers} players={players} mapKey="aldys" />
</div>
<style lang="scss">

View File

@@ -12,7 +12,7 @@ const players = playersData as PlayerMarker
<div class="world-wrapper">
<div id="world"></div>
<MarkerCreator client:load />
<MarkerCreator client:load mapKey="bamast" />
</div>
<script lang="ts" define:vars={{ markers, players }} defer>
@@ -111,8 +111,8 @@ for (let i = 0; i < markers.length; i++) {
switch (m.group) {
case "capitals":
markerIcon = L.icon({
iconUrl: `icon/castle.png`,
shadowUrl: `icon/castle-shadow.png`,
iconUrl: `/icon/castle.png`,
shadowUrl: `/icon/castle-shadow.png`,
iconSize: [25, 25],
shadowSize: [35, 30],
iconAnchor: [12.5, 8],
@@ -122,15 +122,15 @@ for (let i = 0; i < markers.length; i++) {
case "cities":
markerIcon = L.icon({
iconUrl: `icon/circle.png`,
iconUrl: `/icon/circle.png`,
iconSize: [12, 12],
})
break
case "landmarks":
markerIcon = L.icon({
iconUrl: `icon/monument.png`,
shadowUrl: `icon/monument-shadow.png`,
iconUrl: `/icon/monument.png`,
shadowUrl: `/icon/monument-shadow.png`,
iconSize: [18, 18],
shadowSize: [32, 14],
iconAnchor: [12.5, 8],
@@ -140,8 +140,8 @@ for (let i = 0; i < markers.length; i++) {
case "quests":
markerIcon = L.icon({
iconUrl: `icon/flag.png`,
shadowUrl: `icon/flag-shadow.png`,
iconUrl: `/icon/flag.png`,
shadowUrl: `/icon/flag-shadow.png`,
iconSize: [20, 23],
shadowSize: [35, 30],
iconAnchor: [12.5, 8],
@@ -159,8 +159,8 @@ for (let i = 0; i < markers.length; i++) {
markerIconOverride = markerIcon
if (m.icon) {
markerIconOverride = L.icon({
iconUrl: `icon/${m.icon}.png`,
shadowUrl: `icon/${m.icon}-shadow.png`,
iconUrl: `/icon/${m.icon}.png`,
shadowUrl: `/icon/${m.icon}-shadow.png`,
iconSize: [25, 25],
shadowSize: [35, 30],
iconAnchor: [12.5, 8],
@@ -236,8 +236,8 @@ if ( players && Object.keys(players).length > 0 ) {
]
const playerIcon = L.icon({
iconUrl: `icon/location-pin.png`,
shadowUrl: `icon/location-pin-shadow.png`,
iconUrl: `/icon/location-pin.png`,
shadowUrl: `/icon/location-pin-shadow.png`,
iconSize: [18, 24],
shadowSize: [20, 16],
iconAnchor: [11, 8],
@@ -335,7 +335,7 @@ let customMarkersList = []
* It also sends an event to refresh data on other components that use localStorage
*/
function saveCustomMarkers() {
localStorage.setItem('custom-markers', JSON.stringify(customMarkersList))
localStorage.setItem('custom-markers-bamast', JSON.stringify(customMarkersList))
const refreshCustomMarkersEvent = new CustomEvent('refresh-custom-markers', { bubbles: true })
@@ -360,8 +360,8 @@ function addCustomMarker(markerTitle) {
const lat = Number(localStorage.getItem('lastHeldYPosition'))
const customMarkerIconOptions = {
iconUrl: `icon/push-pin.png`,
shadowUrl: `icon/push-pin-shadow.png`,
iconUrl: `/icon/push-pin.png`,
shadowUrl: `/icon/push-pin-shadow.png`,
iconSize: [20, 20],
shadowSize: [30, 25],
iconAnchor: [0, 13],
@@ -421,7 +421,7 @@ document.addEventListener('add-custom-marker', (e) => {
* Load all custom markers onto the map
*/
function loadCustomMarkersFromStorage() {
const customMarkersData = JSON.parse(localStorage.getItem('custom-markers'))
const customMarkersData = JSON.parse(localStorage.getItem('custom-markers-bamast'))
if (!customMarkersData) return

View File

@@ -11,7 +11,7 @@ const players = playersData as PlayerMarker
---
<div class="world-overlay">
<SearchMarkers client:load markers={markers} players={players} />
<SearchMarkers client:load markers={markers} players={players} mapKey="bamast" />
</div>
<style lang="scss">

View File

@@ -4,7 +4,7 @@
"group": "capitals",
"title": "Ambrose",
"description": "Chef-lieu de Nacride et Capitale économique de l'Alliance Kaldélienne.",
"link": "https://alexcreates.fr/leim/index.php/Ambrose",
"link": "https://wiki.alexcreates.fr/index.php/Ambrose",
"markerCoords": {
"x": 83.6,
"y": -185.2
@@ -17,7 +17,7 @@
"group": "capitals",
"title": "Cordouac",
"description": "Chef-lieu d'Héraldie et Capitale administrative de l'Alliance Kaldélienne.",
"link": "https://alexcreates.fr/leim/index.php/Cordouac",
"link": "https://wiki.alexcreates.fr/index.php/Cordouac",
"markerCoords": {
"x": 133.46875,
"y": -146.0625
@@ -30,7 +30,7 @@
"group": "capitals",
"title": "Bordelac",
"description": "Chef-lieu des Hautes-Berges",
"link": "https://alexcreates.fr/leim/index.php/Bordelac",
"link": "https://wiki.alexcreates.fr/index.php/Bordelac",
"markerCoords": {
"x": 151.22656,
"y": -173.63281
@@ -40,7 +40,7 @@
"group": "capitals",
"title": "Tourgrise",
"description": "Chef-lieu de Ternâcre. C'est une cité de mages archivistes, mais c'est aussi ici qu'on trouve la plus grande population carcérale de l'Alliance.",
"link": "https://alexcreates.fr/leim/index.php/Tourgrise",
"link": "https://wiki.alexcreates.fr/index.php/Tourgrise",
"markerCoords": {
"x": 132.26953,
"y": -98.19141
@@ -54,7 +54,7 @@
"group": "capitals",
"title": "Valsoie",
"description": "Chef-lieu de Mireloin.",
"link": "https://alexcreates.fr/leim/index.php/Valsoie",
"link": "https://wiki.alexcreates.fr/index.php/Valsoie",
"markerCoords": {
"x": 103.4375,
"y": -79.5
@@ -64,7 +64,7 @@
"group": "capitals",
"title": "Prismalline",
"description": "Chef-lieu de Corambre.",
"link": "https://alexcreates.fr/leim/index.php/Prismalline",
"link": "https://wiki.alexcreates.fr/index.php/Prismalline",
"markerCoords": {
"x": 103.00329,
"y": -138.02162
@@ -74,7 +74,7 @@
"group": "capitals",
"title": "Port-brisé",
"description": "Chef-lieu d'Émerose.",
"link": "https://alexcreates.fr/leim/index.php/Port-brisé",
"link": "https://wiki.alexcreates.fr/index.php/Port-brisé",
"markerCoords": {
"x": 168.39491,
"y": -109.13376
@@ -87,7 +87,7 @@
"group": "capitals",
"title": "Berce",
"description": "Chef-lieu des Basses-berges.",
"link": "https://alexcreates.fr/leim/index.php/Berce",
"link": "https://wiki.alexcreates.fr/index.php/Berce",
"markerCoords": {
"x": 173.39874,
"y": -164.39011
@@ -97,7 +97,7 @@
"group": "capitals",
"title": "Lamière",
"description": "Chef-lieu de Quillon.",
"link": "https://alexcreates.fr/leim/index.php/Lamière",
"link": "https://wiki.alexcreates.fr/index.php/Lamière",
"markerCoords": {
"x": 140.20731,
"y": -195.77923
@@ -107,7 +107,7 @@
"group": "capitals",
"title": "Halport",
"description": "Chef-lieu de Lagarde.",
"link": "https://alexcreates.fr/leim/index.php/Halport",
"link": "https://wiki.alexcreates.fr/index.php/Halport",
"markerCoords": {
"x": 76.6803,
"y": -198.76159
@@ -117,7 +117,7 @@
"group": "capitals",
"title": "Soubreciel",
"description": "Chef-lieu de Rougefer.",
"link": "https://alexcreates.fr/leim/index.php/Soubreciel",
"link": "https://wiki.alexcreates.fr/index.php/Soubreciel",
"markerCoords": {
"x": 204.42515,
"y": -226.85883
@@ -130,7 +130,7 @@
"group": "capitals",
"title": "Dramast",
"description": "Chef-lieu d'Asharos.",
"link": "https://alexcreates.fr/leim/index.php/Dramast",
"link": "https://wiki.alexcreates.fr/index.php/Dramast",
"markerCoords": {
"x": 119.35456,
"y": -27.53623
@@ -140,7 +140,7 @@
"group": "capitals",
"title": "Briseroc",
"description": "Chef-lieu de Pergaré.",
"link": "https://alexcreates.fr/leim/index.php/Briseroc",
"link": "https://wiki.alexcreates.fr/index.php/Briseroc",
"markerCoords": {
"x": 41.96763,
"y": -48.83056
@@ -150,7 +150,7 @@
"group": "cities",
"title": "Demilieu",
"description": "Ancienne cité militaire laissée à l'abandon depuis plusieurs centaines d'années.",
"link": "https://alexcreates.fr/leim/index.php/Demilieu",
"link": "https://wiki.alexcreates.fr/index.php/Demilieu",
"markerCoords": {
"x": 204.75462,
"y": -116.80687
@@ -160,7 +160,7 @@
"group": "cities",
"title": "Borélis",
"description": "Cité côtière vivant principalement de la pêche.",
"link": "https://alexcreates.fr/leim/index.php/Borélis",
"link": "https://wiki.alexcreates.fr/index.php/Borélis",
"markerCoords": {
"x": 138.44531,
"y": -51.54687
@@ -173,7 +173,7 @@
"group": "cities",
"title": "Alcombe",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Alcombe",
"link": "https://wiki.alexcreates.fr/index.php/Alcombe",
"markerCoords": {
"x": 165.42471,
"y": -164.00393
@@ -183,7 +183,7 @@
"group": "cities",
"title": "Cristaline",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Cristaline",
"link": "https://wiki.alexcreates.fr/index.php/Cristaline",
"markerCoords": {
"x": 167.06242,
"y": -176.47233
@@ -193,7 +193,7 @@
"group": "cities",
"title": "Vidinamel",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Vidinamel",
"link": "https://wiki.alexcreates.fr/index.php/Vidinamel",
"markerCoords": {
"x": 176.40469,
"y": -199.94666
@@ -203,7 +203,7 @@
"group": "cities",
"title": "Cantane",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Cantane",
"link": "https://wiki.alexcreates.fr/index.php/Cantane",
"markerCoords": {
"x": 197.3492280183025,
"y": -210.87224307207197
@@ -216,7 +216,7 @@
"group": "cities",
"title": "Horfer",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Horfer",
"link": "https://wiki.alexcreates.fr/index.php/Horfer",
"markerCoords": {
"x": 185.57431,
"y": -229.08588
@@ -229,7 +229,7 @@
"group": "cities",
"title": "Cimeterre",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Cimeterre",
"link": "https://wiki.alexcreates.fr/index.php/Cimeterre",
"markerCoords": {
"x": 143.16512,
"y": -217.37201
@@ -239,7 +239,7 @@
"group": "cities",
"title": "Aubert",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Aubert",
"link": "https://wiki.alexcreates.fr/index.php/Aubert",
"markerCoords": {
"x": 140.19456,
"y": -201.85993
@@ -249,7 +249,7 @@
"group": "cities",
"title": "Telos",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Telos",
"link": "https://wiki.alexcreates.fr/index.php/Telos",
"markerCoords": {
"x": 104.61938,
"y": -204.35683
@@ -259,7 +259,7 @@
"group": "cities",
"title": "Saint-Amanthe",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Saint-Amanthe",
"link": "https://wiki.alexcreates.fr/index.php/Saint-Amanthe",
"markerCoords": {
"x": 83.88068,
"y": -196.35341
@@ -269,7 +269,7 @@
"group": "cities",
"title": "Flauvent",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Flauvent",
"link": "https://wiki.alexcreates.fr/index.php/Flauvent",
"markerCoords": {
"x": 77.58332,
"y": -210.22326
@@ -279,7 +279,7 @@
"group": "cities",
"title": "Nardion",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Nardion",
"link": "https://wiki.alexcreates.fr/index.php/Nardion",
"markerCoords": {
"x": 43.56226,
"y": -218.19662
@@ -289,7 +289,7 @@
"group": "cities",
"title": "Granvert",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Granvert",
"link": "https://wiki.alexcreates.fr/index.php/Granvert",
"markerCoords": {
"x": 63.47312,
"y": -192.67867
@@ -299,7 +299,7 @@
"group": "cities",
"title": "Olydra",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Olydra",
"link": "https://wiki.alexcreates.fr/index.php/Olydra",
"markerCoords": {
"x": 92.24383,
"y": -179.9298
@@ -309,7 +309,7 @@
"group": "cities",
"title": "Vermeil",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Vermeil",
"link": "https://wiki.alexcreates.fr/index.php/Vermeil",
"markerCoords": {
"x": 98.86066,
"y": -185.63039
@@ -319,7 +319,7 @@
"group": "cities",
"title": "Corindon",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Corindon",
"link": "https://wiki.alexcreates.fr/index.php/Corindon",
"markerCoords": {
"x": 85.04465,
"y": -173.44829
@@ -329,7 +329,7 @@
"group": "cities",
"title": "Verdame",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Verdame",
"link": "https://wiki.alexcreates.fr/index.php/Verdame",
"markerCoords": {
"x": 93.64841,
"y": -155.23226
@@ -339,7 +339,7 @@
"group": "cities",
"title": "Sellier",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Sellier",
"link": "https://wiki.alexcreates.fr/index.php/Sellier",
"markerCoords": {
"x": 112.8161,
"y": -165.85315
@@ -349,7 +349,7 @@
"group": "cities",
"title": "Fort-Altare",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Fort-Altare",
"link": "https://wiki.alexcreates.fr/index.php/Fort-Altare",
"markerCoords": {
"x": 123.1809,
"y": -156.79472
@@ -359,7 +359,7 @@
"group": "cities",
"title": "Naegir",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Naegir",
"link": "https://wiki.alexcreates.fr/index.php/Naegir",
"markerCoords": {
"x": 111.22838,
"y": -142.46072
@@ -369,7 +369,7 @@
"group": "cities",
"title": "Silène",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Silène",
"link": "https://wiki.alexcreates.fr/index.php/Silène",
"markerCoords": {
"x": 129.49372,
"y": -127.83022
@@ -379,7 +379,7 @@
"group": "cities",
"title": "Astelion",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Astelion",
"link": "https://wiki.alexcreates.fr/index.php/Astelion",
"markerCoords": {
"x": 149.80364,
"y": -141.47096
@@ -389,7 +389,7 @@
"group": "cities",
"title": "Mythuse",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Mythuse",
"link": "https://wiki.alexcreates.fr/index.php/Mythuse",
"markerCoords": {
"x": 101.52778,
"y": -119.3854
@@ -399,7 +399,7 @@
"group": "cities",
"title": "Celadonis",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Celadonis",
"link": "https://wiki.alexcreates.fr/index.php/Celadonis",
"markerCoords": {
"x": 121.39631,
"y": -107.59972
@@ -409,7 +409,7 @@
"group": "cities",
"title": "Mestrl",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Mestrl",
"link": "https://wiki.alexcreates.fr/index.php/Mestrl",
"markerCoords": {
"x": 141.59822,
"y": -112.96104
@@ -419,7 +419,7 @@
"group": "cities",
"title": "Pyranae",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Pyranae",
"link": "https://wiki.alexcreates.fr/index.php/Pyranae",
"markerCoords": {
"x": 191.89054,
"y": -166.99251
@@ -429,7 +429,7 @@
"group": "cities",
"title": "Liserios",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Liserios",
"link": "https://wiki.alexcreates.fr/index.php/Liserios",
"markerCoords": {
"x": 187.69872,
"y": -101.89283
@@ -439,7 +439,7 @@
"group": "cities",
"title": "Armistille",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Armistille",
"link": "https://wiki.alexcreates.fr/index.php/Armistille",
"markerCoords": {
"x": 187.72908,
"y": -111.21423
@@ -449,7 +449,7 @@
"group": "cities",
"title": "Gasterre",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Gasterre",
"link": "https://wiki.alexcreates.fr/index.php/Gasterre",
"markerCoords": {
"x": 167.39995,
"y": -144.62217
@@ -459,7 +459,7 @@
"group": "cities",
"title": "Valversant",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Valversant",
"link": "https://wiki.alexcreates.fr/index.php/Valversant",
"markerCoords": {
"x": 177.56325,
"y": -156.35054
@@ -469,7 +469,7 @@
"group": "cities",
"title": "Becqueraut",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Becqueraut",
"link": "https://wiki.alexcreates.fr/index.php/Becqueraut",
"markerCoords": {
"x": 129.06038,
"y": -190.31194
@@ -479,7 +479,7 @@
"group": "cities",
"title": "Grasselieu",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Grasselieu",
"link": "https://wiki.alexcreates.fr/index.php/Grasselieu",
"markerCoords": {
"x": 148.54698,
"y": -185.44567
@@ -489,7 +489,7 @@
"group": "cities",
"title": "Asandre",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Asandre",
"link": "https://wiki.alexcreates.fr/index.php/Asandre",
"markerCoords": {
"x": 125.35658,
"y": -95.44555
@@ -499,7 +499,7 @@
"group": "landmarks",
"title": "Faille de Kiam",
"description": "Vaste réseau de falaises et de ravins où gisent des cristaux étranges.",
"link": "https://alexcreates.fr/leim/index.php/Faille_de_Kiam",
"link": "https://wiki.alexcreates.fr/index.php/Faille_de_Kiam",
"markerCoords": {
"x": 121.47116769539711,
"y": -94.66997667550434
@@ -513,7 +513,7 @@
"group": "cities",
"title": "Félisse",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Félisse",
"link": "https://wiki.alexcreates.fr/index.php/Félisse",
"markerCoords": {
"x": 138.45867,
"y": -87.15509
@@ -523,7 +523,7 @@
"group": "cities",
"title": "Zélira",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Zélira",
"link": "https://wiki.alexcreates.fr/index.php/Zélira",
"markerCoords": {
"x": 151.79771,
"y": -89.78763
@@ -533,7 +533,7 @@
"group": "cities",
"title": "Anderol",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Anderol",
"link": "https://wiki.alexcreates.fr/index.php/Anderol",
"markerCoords": {
"x": 88.08019,
"y": -76.54403
@@ -543,7 +543,7 @@
"group": "cities",
"title": "Denteloin",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Denteloin",
"link": "https://wiki.alexcreates.fr/index.php/Denteloin",
"markerCoords": {
"x": 99.26192,
"y": -94.88901
@@ -553,7 +553,7 @@
"group": "cities",
"title": "Willeau",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Willeau",
"link": "https://wiki.alexcreates.fr/index.php/Willeau",
"markerCoords": {
"x": 107.50352,
"y": -67.36631
@@ -566,7 +566,7 @@
"group": "cities",
"title": "Borglah",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Borglah",
"link": "https://wiki.alexcreates.fr/index.php/Borglah",
"markerCoords": {
"x": 91.03982,
"y": -57.75967
@@ -576,7 +576,7 @@
"group": "cities",
"title": "Karlas",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Karlas",
"link": "https://wiki.alexcreates.fr/index.php/Karlas",
"markerCoords": {
"x": 133.5332,
"y": -44.42783
@@ -586,7 +586,7 @@
"group": "cities",
"title": "Sérak",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Sérak",
"link": "https://wiki.alexcreates.fr/index.php/Sérak",
"markerCoords": {
"x": 127.10271,
"y": -18.2676
@@ -596,7 +596,7 @@
"group": "cities",
"title": "Plumeroche",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Plumeroche",
"link": "https://wiki.alexcreates.fr/index.php/Plumeroche",
"markerCoords": {
"x": 52.68144,
"y": -44.71821
@@ -615,7 +615,7 @@
"group": "landmarks",
"title": "Les Cages Handaniennes",
"description": "Complexe pénitencier réservé aux criminels maîtrisant la magie.",
"link": "https://alexcreates.fr/leim/index.php/Cages_Handaniennes",
"link": "https://wiki.alexcreates.fr/index.php/Cages_Handaniennes",
"markerCoords": {
"x": 168.31641,
"y": -60.54297
@@ -629,7 +629,7 @@
"group": "landmarks",
"title": "Solemthelio",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Solemthelio",
"link": "https://wiki.alexcreates.fr/index.php/Solemthelio",
"markerCoords": {
"x": 174.22358,
"y": -197.04778
@@ -639,7 +639,7 @@
"group": "landmarks",
"title": "Temple du soleil",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Temple du soleil",
"link": "https://wiki.alexcreates.fr/index.php/Temple du soleil",
"markerCoords": {
"x": 58.89295,
"y": -189.69308
@@ -648,7 +648,7 @@
{
"group": "landmarks",
"title": "Épave de l'Éclipse",
"description": "Carcasse d'un bateau de garde de la cité de Borélis, échouée sur le rivage rocheux par <a href=\"https://alexcreates.fr/leim/index.php/Sulvan Trois-Barbes\" target=\"_blank\">Sulvan Trois-Barbes</a>, un anarchiste de Bamast.",
"description": "Carcasse d'un bateau de garde de la cité de Borélis, échouée sur le rivage rocheux par <a href=\"https://wiki.alexcreates.fr/index.php/Sulvan Trois-Barbes\" target=\"_blank\">Sulvan Trois-Barbes</a>, un anarchiste de Bamast.",
"markerCoords": {
"x": 165.08197,
"y": -57.93673
@@ -657,7 +657,7 @@
{
"group": "landmarks",
"title": "Plaines de Poussière",
"link": "https://alexcreates.fr/leim/index.php/Plaines_de_poussière",
"link": "https://wiki.alexcreates.fr/index.php/Plaines_de_poussière",
"markerCoords": {
"x": 159.57688930332125,
"y": -157.4739168466964
@@ -670,7 +670,7 @@
"group": "capitals",
"title": "Flamberge",
"description": "Cité principale et capitale de l'empire des Terres de Syaltha.",
"link": "https://alexcreates.fr/leim/index.php/Flamberge",
"link": "https://wiki.alexcreates.fr/index.php/Flamberge",
"markerCoords": {
"x": 301.5278268956225,
"y": -109.31289744548666
@@ -680,7 +680,7 @@
"group": "cities",
"title": "Gosselin",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Gosselin",
"link": "https://wiki.alexcreates.fr/index.php/Gosselin",
"markerCoords": {
"x": 274.548390146726,
"y": -102.85910373918237
@@ -690,17 +690,30 @@
"group": "capitals",
"title": "Garràn",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Garràn",
"link": "https://wiki.alexcreates.fr/index.php/Garràn",
"markerCoords": {
"x": 285.0990986858211,
"y": -146.08986069534564
},
"cover": "Garràn.jpg",
"coverAuthor": "Dmitry Dubinsky",
"coverLink": "https://elhour.artstation.com/projects/RYynYm?album_id=47640"
},
{
"group": "landmarks",
"title": "Ligatorium",
"description": "Monument qui renferme les archives royales de l'empire des Terres de Syaltha.",
"link": "https://wiki.alexcreates.fr/index.php/Garr%C3%A0n#Ligatorium",
"markerCoords": {
"x": 283.4611668744801,
"y": -146.1972028485071
}
},
{
"group": "cities",
"title": "Reilig",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Reilig",
"link": "https://wiki.alexcreates.fr/index.php/Reilig",
"markerCoords": {
"x": 223.59559509274789,
"y": -128.59456481755538
@@ -710,7 +723,7 @@
"group": "cities",
"title": "Hiraeth",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Hiraeth",
"link": "https://wiki.alexcreates.fr/index.php/Hiraeth",
"markerCoords": {
"x": 258.93504395455756,
"y": -170.68684659852204
@@ -720,7 +733,7 @@
"group": "capitals",
"title": "Sàrù",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Sàrù",
"link": "https://wiki.alexcreates.fr/index.php/Sàrù",
"markerCoords": {
"x": 263.7812679145169,
"y": -200.00348881920243
@@ -730,7 +743,7 @@
"group": "cities",
"title": "Sarys",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Sarys",
"link": "https://wiki.alexcreates.fr/index.php/Sarys",
"markerCoords": {
"x": 299.97233754112403,
"y": -213.20999986828247
@@ -740,17 +753,20 @@
"group": "cities",
"title": "Fasàch",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Fasàch",
"link": "https://wiki.alexcreates.fr/index.php/Fasàch",
"markerCoords": {
"x": 326.7497076703842,
"y": -206.67114645854178
}
},
"cover": "Fasàch.jpg",
"coverAuthor": "Liang Mark",
"coverLink": "https://www.artstation.com/artwork/Jll2Jd"
},
{
"group": "cities",
"title": "Treidàrch",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Treidàrch",
"link": "https://wiki.alexcreates.fr/index.php/Treidàrch",
"markerCoords": {
"x": 348.1598016147318,
"y": -199.19162163619717
@@ -760,7 +776,7 @@
"group": "cities",
"title": "Alemin",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Alemin",
"link": "https://wiki.alexcreates.fr/index.php/Alemin",
"markerCoords": {
"x": 334.95532432090823,
"y": -150.73512405752393
@@ -770,7 +786,7 @@
"group": "cities",
"title": "Méasine",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Méasine",
"link": "https://wiki.alexcreates.fr/index.php/Méasine",
"markerCoords": {
"x": 357.1552251247344,
"y": -99.67975687686224
@@ -780,7 +796,7 @@
"group": "capitals",
"title": "Ormünd",
"description": "Capitale de la République séparatiste de Sakâr",
"link": "https://alexcreates.fr/leim/index.php/Orm%C3%BCnd",
"link": "https://wiki.alexcreates.fr/index.php/Orm%C3%BCnd",
"markerCoords": {
"x": 331.89665426999727,
"y": -233.1398446347952
@@ -790,7 +806,7 @@
"group": "cities",
"title": "Ârmelio",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Ârmelio",
"link": "https://wiki.alexcreates.fr/index.php/Ârmelio",
"markerCoords": {
"x": 312.66238876422227,
"y": -236.43901518662912
@@ -800,7 +816,7 @@
"group": "cities",
"title": "Parsûl",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Parsûl",
"link": "https://wiki.alexcreates.fr/index.php/Parsûl",
"markerCoords": {
"x": 350.6765500094611,
"y": -223.55406577960014
@@ -815,15 +831,6 @@
"y": -206.1154623032882
}
},
{
"group": "quests",
"title": "Les Cloches de Cantane",
"description": "D'étranges disparitions secouent la cité minière de Cantane, rythmées par le tintement des cloches de l'église.",
"markerCoords": {
"x": 198.0424703459088,
"y": -210.9293951755887
}
},
{
"group": "quests",
"title": "Mémoires de fer",
@@ -837,7 +844,7 @@
"group": "landmarks",
"title": "Faculté de Magie Appliquée",
"description": "Établissement d'enseignements arcaniques tout public, mais à la qualité lacunaire.",
"link": "https://alexcreates.fr/leim/index.php/Facult%C3%A9_de_Magie_Appliqu%C3%A9e",
"link": "https://wiki.alexcreates.fr/index.php/Facult%C3%A9_de_Magie_Appliqu%C3%A9e",
"markerCoords": {
"x": 103.96761286182101,
"y": -79.90785827537563
@@ -848,7 +855,7 @@
"group": "landmarks",
"title": "Académie Artistique Arcanique",
"description": "Institut d'apprentissage public centré sur les arts.",
"link": "https://alexcreates.fr/leim/index.php/Acad%C3%A9mie_Artistique_Arcanique",
"link": "https://wiki.alexcreates.fr/index.php/Acad%C3%A9mie_Artistique_Arcanique",
"markerCoords": {
"x": 75.84445789595449,
"y": -199.14437153165204
@@ -859,7 +866,7 @@
"group": "landmarks",
"title": "Académie Centrale Kaldélienne",
"description": "Une des plus grandes académies dispensant des cours de magie de l'Alliance. L'examen d'entrée est public, mais les coûts de scolarité restent à la charge des étudiants.",
"link": "https://alexcreates.fr/leim/index.php/Acad%C3%A9mie_Centrale_Kald%C3%A9lienne",
"link": "https://wiki.alexcreates.fr/index.php/Acad%C3%A9mie_Centrale_Kald%C3%A9lienne",
"markerCoords": {
"x": 83.80737652386473,
"y": -184.52963682119173
@@ -873,7 +880,7 @@
"group": "landmarks",
"title": "Grande Maison de Flamberge",
"description": "La plus prestigieuse école des Terres de Syaltha. La Grande Maison est une des rares entités à certifier les sal'kayas.",
"link": "https://alexcreates.fr/leim/index.php/Grande_Maison_de_Flamberge",
"link": "https://wiki.alexcreates.fr/index.php/Grande_Maison_de_Flamberge",
"markerCoords": {
"x": 302.23491236190273,
"y": -110.07337124956246
@@ -884,7 +891,7 @@
"group": "landmarks",
"title": "Haute-École de Magistrature Cordouenne",
"description": "Institut de l'Alliance formant les magistrats, juges et politiciens de demain.",
"link": "https://alexcreates.fr/leim/index.php/Haute-%C3%89cole_de_Magistrature_Cordouenne",
"link": "https://wiki.alexcreates.fr/index.php/Haute-%C3%89cole_de_Magistrature_Cordouenne",
"markerCoords": {
"x": 131.07900289783518,
"y": -148.801890020031
@@ -895,7 +902,7 @@
"group": "landmarks",
"title": "Institut du Fer Blanc",
"description": "Première école militaire de l'Alliance Kaldélienne.",
"link": "https://alexcreates.fr/leim/index.php/Institut_du_Fer_Blanc",
"link": "https://wiki.alexcreates.fr/index.php/Institut_du_Fer_Blanc",
"markerCoords": {
"x": 140.3159943633407,
"y": -191.78102982328744
@@ -906,7 +913,7 @@
"group": "landmarks",
"title": "Maison d'Études de Tourgrise",
"description": "Établissement pluridisciplinaires axé vers les études de législations mais possèdant un cursus d'études arcaniques général.",
"link": "https://alexcreates.fr/leim/index.php/Maison_d%27%C3%89tudes_de_Tourgrise",
"link": "https://wiki.alexcreates.fr/index.php/Maison_d%27%C3%89tudes_de_Tourgrise",
"markerCoords": {
"x": 132.82148271354282,
"y": -98.7924395350658
@@ -917,7 +924,7 @@
"group": "landmarks",
"title": "École des Arts Spirituels",
"description": "Institut privé spécialisé dans les maîtrises des arcanes spirituelles.",
"link": "https://alexcreates.fr/leim/index.php/%C3%89cole_des_Arts_Spirituels",
"link": "https://wiki.alexcreates.fr/index.php/%C3%89cole_des_Arts_Spirituels",
"markerCoords": {
"x": 124.8585640856326,
"y": -95.86995303475213

View File

@@ -1 +1,8 @@
{}
{
"markerCoords": {
"x": 198.0424703459088,
"y": -210.9293951755887
},
"title": "Les Mines Blanches",
"description": "Malik, Elie et Clayron sont pris au piège dans les mines blanches après un éboulement soudain."
}

View File

@@ -4,17 +4,20 @@
"group": "capitals",
"title": "Faranne",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Faranne",
"link": "https://wiki.alexcreates.fr/index.php/Faranne",
"markerCoords": {
"x": 119.6667886200924,
"y": -17.945469721492717
}
},
"cover": "Faranne.jpg",
"coverAuthor": "Pablo Mendoza Peces",
"coverLink": "https://www.artstation.com/artwork/dAJr1"
},
{
"group": "cities",
"title": "Alorie",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Alorie",
"link": "https://wiki.alexcreates.fr/index.php/Alorie",
"markerCoords": {
"x": 120.39729093844922,
"y": -13.692664769841931
@@ -24,17 +27,20 @@
"group": "landmarks",
"title": "Miverne",
"description": "Ancien hameau réduite en cendres depuis les Charbonneries.",
"link": "https://alexcreates.fr/leim/index.php/Miverne",
"link": "https://wiki.alexcreates.fr/index.php/Miverne",
"markerCoords": {
"x": 113.52851847725508,
"y": -19.882939646724424
}
},
"cover": "Miverne.jpg",
"coverAuthor": "Andrei-Pervukhin",
"coverLink": "https://www.deviantart.com/andrei-pervukhin/art/Medieval-Village-383779337"
},
{
"group": "cities",
"title": "Valourde",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Valourde",
"link": "https://wiki.alexcreates.fr/index.php/Valourde",
"markerCoords": {
"x": 118.82386540626896,
"y": -26.524623165045536
@@ -44,7 +50,7 @@
"group": "cities",
"title": "Bucarie",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Bucarie",
"link": "https://wiki.alexcreates.fr/index.php/Bucarie",
"markerCoords": {
"x": 121.22773731204137,
"y": -32.909643754809295
@@ -54,7 +60,7 @@
"group": "capitals",
"title": "Brisaube",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Brisaube",
"link": "https://wiki.alexcreates.fr/index.php/Brisaube",
"markerCoords": {
"x": 117.00664279509309,
"y": -45.03852369536854
@@ -63,18 +69,21 @@
{
"group": "capitals",
"title": "Rocheverre",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Rocheverre",
"description": "Capitale de l'Union Bahamienne, qui tire son nom du minerai éponyme et de ses falaises de basalt.",
"link": "https://wiki.alexcreates.fr/index.php/Rocheverre",
"markerCoords": {
"x": 122.87040892704968,
"y": -58.7910005354329
}
},
"cover": "Rocheverre.jpg",
"coverAuthor": "Creative Intelligence Arts",
"coverLink": "https://www.kickstarter.com/projects/1300298569/project-phoenix-japans-indie-rpg-feat-aaa-talent"
},
{
"group": "landmarks",
"title": "Académie de la Feuille d'Or",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Académie de la Feuille d'Or",
"link": "https://wiki.alexcreates.fr/index.php/Académie de la Feuille d'Or",
"markerCoords": {
"x": 123.11414481237149,
"y": -59.316085319396734
@@ -85,7 +94,7 @@
"group": "capitals",
"title": "Taralie",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Taralie",
"link": "https://wiki.alexcreates.fr/index.php/Taralie",
"markerCoords": {
"x": 129.26032961638916,
"y": -68.91926130477364
@@ -94,8 +103,8 @@
{
"group": "landmarks",
"title": "Tours d'Anfall",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Tours d'Anfall",
"description": "Institut arcanique public, faisant office d'alternative à l'Académie de la Feuille d'Or pour les étudiants des milieux plus modestes de Bamast.",
"link": "https://wiki.alexcreates.fr/index.php/Tours d'Anfall",
"markerCoords": {
"x": 128.134559374788,
"y": -68.06430226842451
@@ -106,7 +115,7 @@
"group": "cities",
"title": "Lameroy",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Lameroy",
"link": "https://wiki.alexcreates.fr/index.php/Lameroy",
"markerCoords": {
"x": 151.66724865788115,
"y": -41.479728474288045
@@ -116,7 +125,7 @@
"group": "cities",
"title": "Garech",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Garech",
"link": "https://wiki.alexcreates.fr/index.php/Garech",
"markerCoords": {
"x": 150.24269883199952,
"y": -51.12778776489305
@@ -126,7 +135,7 @@
"group": "capitals",
"title": "Escarmin",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Escarmin",
"link": "https://wiki.alexcreates.fr/index.php/Escarmin",
"markerCoords": {
"x": 142.44974653559413,
"y": -51.68971626301039
@@ -136,7 +145,7 @@
"group": "capitals",
"title": "Typhos",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Typhos",
"link": "https://wiki.alexcreates.fr/index.php/Typhos",
"markerCoords": {
"x": 120.90400634757226,
"y": -90.77028040549715
@@ -146,7 +155,7 @@
"group": "cities",
"title": "Portelyre",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Portelyre",
"link": "https://wiki.alexcreates.fr/index.php/Portelyre",
"markerCoords": {
"x": 124.18423280853722,
"y": -83.98547764082718
@@ -156,7 +165,7 @@
"group": "cities",
"title": "Hatenyr",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Hatenyr",
"link": "https://wiki.alexcreates.fr/index.php/Hatenyr",
"markerCoords": {
"x": 113.60389451777777,
"y": -84.04978856750651
@@ -166,7 +175,7 @@
"group": "cities",
"title": "Florette",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Florette",
"link": "https://wiki.alexcreates.fr/index.php/Florette",
"markerCoords": {
"x": 114.47218975744497,
"y": -77.77947321627123
@@ -176,17 +185,26 @@
"group": "cities",
"title": "Rastys",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Rastys",
"link": "https://wiki.alexcreates.fr/index.php/Rastys",
"markerCoords": {
"x": 107.88172380301971,
"y": -102.55907647074645
"x": 114.06646730992365,
"y": -102.12951165200633
}
},
{
"group": "landmarks",
"title": "Champs communaux de Rastys",
"description": "Plusieurs collines côtières où le sol y est riche en nutriments. Certaines terres sont cultivées par des familles possédant des terres, mais certains champs sont publics et appartiennent à la communauté de Rastys.",
"markerCoords": {
"x": 114.62855568365849,
"y": -101.5674232782715
}
},
{
"group": "capitals",
"title": "Dayà",
"description": "",
"link": "https://alexcreates.fr/leim/index.php/Dàyà",
"link": "https://wiki.alexcreates.fr/index.php/Dàyà",
"markerCoords": {
"x": 114.50042048704195,
"y": -113.75000202375236

View File

@@ -7,6 +7,12 @@ const markerMenu = ref<HTMLMenuElement>()
type MenuMode = "editing-marker" | "default"
const props = defineProps<{
mapKey?: string
}>()
const customMarkersKey = props.mapKey ? `custom-markers-${props.mapKey}` : 'custom-markers'
/**
* Appearing behaviour
*/
@@ -91,14 +97,14 @@ const markerTitleInput = ref<HTMLInputElement>()
const markerTitleInputError = ref<Error | null>()
// Data from localStorage
const customMarkersData = useLocalStorage('custom-markers', [])
const customMarkersData = useLocalStorage(customMarkersKey, [])
// Refresh from localStorage
onMounted(() => {
customMarkersData.value = useLocalStorage('custom-markers', []).value
customMarkersData.value = useLocalStorage(customMarkersKey, []).value
document.addEventListener('refresh-custom-markers', () => {
customMarkersData.value = useLocalStorage('custom-markers', []).value
customMarkersData.value = useLocalStorage(customMarkersKey, []).value
})
})

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import { PopoverArrow, PopoverContent, PopoverRoot, PopoverTrigger } from 'radix-vue'
import { computed, onMounted, onUpdated, ref, watch } from 'vue';
import { useElementHover, useFocus, useUrlSearchParams, watchDebounced } from '@vueuse/core'
import { computed, onUpdated, ref, watch } from 'vue';
import { useElementHover, useFocus } from '@vueuse/core'
const navModel = ref(false);
@@ -34,12 +34,12 @@ interface MenuItem {
const menuItems: MenuItem[] = [
{
name: 'Aldys',
img: 'https://picsum.photos/id/13/40',
img: '/images/aldys-cover.png',
url: '/'
},
{
name: 'Bamast',
img: 'https://picsum.photos/id/14/40',
img: '/images/bamast-cover.png',
url: '/bamast'
}
]
@@ -53,14 +53,14 @@ const menuItems: MenuItem[] = [
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"/><path d="M228.92,49.69a8,8,0,0,0-6.86-1.45L160.93,63.52,99.58,32.84a8,8,0,0,0-5.52-.6l-64,16A8,8,0,0,0,24,56V200a8,8,0,0,0,9.94,7.76l61.13-15.28,61.35,30.68A8.15,8.15,0,0,0,160,224a8,8,0,0,0,1.94-.24l64-16A8,8,0,0,0,232,200V56A8,8,0,0,0,228.92,49.69ZM96,176a8,8,0,0,0-1.94.24L40,189.75V62.25L95.07,48.48l.93.46Zm120,17.75-55.07,13.77-.93-.46V80a8,8,0,0,0,1.94-.23L216,66.25Z"/></svg>
</button>
</PopoverTrigger>
<PopoverContent side="bottom" :side-offset="6" :collision-padding="10" class="card">
<PopoverContent side="bottom" :side-offset="6" :collision-padding="10" class="card" style="z-index: 100;">
<PopoverArrow class="card-arrow" />
<menu class="world-menu">
<li v-for="item in menuItems" :key="item.name">
<a :href="item.url" :class="{ 'active': url?.pathname === item.url }" :tabindex="url?.pathname === item.url ? -1 : 0">
<figure>
<img :src="item.img" alt="" width="40" height="40" loading="lazy">
<img :src="item.img" alt="" width="40" height="40" loading="eager">
<figcaption>
{{ item.name }}

View File

@@ -9,10 +9,13 @@ import SearchMapSwitch from './SearchMapSwitch.vue';
const props = defineProps<{
markers: MapMarker[],
players: PlayerMarker,
mapKey?: string
}>()
const customMarkersKey = props.mapKey ? `custom-markers-${props.mapKey}` : 'custom-markers'
const fixedMarkers = props.markers
const customMarkersData = useLocalStorage('custom-markers', [])
const customMarkersData = useLocalStorage(customMarkersKey, [])
const allMarkers = computed(() => {
return [...fixedMarkers, ...customMarkersData.value]
@@ -142,10 +145,10 @@ function handleCategorySwitch(g: MapMarkerGroup) {
* Custom Markers handling
*/
onMounted(() => {
customMarkersData.value = useLocalStorage('custom-markers', []).value
customMarkersData.value = useLocalStorage(customMarkersKey, []).value
document.addEventListener('refresh-custom-markers', () => {
customMarkersData.value = useLocalStorage('custom-markers', []).value
customMarkersData.value = useLocalStorage(customMarkersKey, []).value
})
})