diff --git a/web/static/camper.js b/web/static/camper.js index 90f1c35..621030f 100644 --- a/web/static/camper.js +++ b/web/static/camper.js @@ -139,8 +139,9 @@ export function setupCampgroundMap(map) { if (!map) { return; } - for (const campsite of Array.from(map.querySelectorAll('.lodge'))) { - const label = campsite.getAttribute('camper:lodge'); + const prefix = "cp_"; + for (const campsite of Array.from(map.querySelectorAll(`[id^="${prefix}"]`))) { + const label = campsite.id.substring(prefix.length); if (!label) { continue; } diff --git a/web/templates/campground_map.svg b/web/templates/campground_map.svg index 1785a78..bef71cb 100644 --- a/web/templates/campground_map.svg +++ b/web/templates/campground_map.svg @@ -1,4 +1,4 @@ - + @@ -19,35 +19,35 @@ - + 30 - + 31 - + 32 - + 33 - + 34 - + 35 - + 36 - + B1 @@ -55,152 +55,152 @@ - + D1 - + D2 - + D3 - + D4 - + 38 - + 39 - + 40 - + 41 - + 42 - + 43 - + 44 - + 45 - + 46 - + 47 - + 48 - + 50 - + 51 - + 52 - + 53 - + 54 - + 55 - + 79 - + 80 - + 89 - + 98 - + 97 - + 96 - + 90 - + 91 - + 92 - + 93 - + 94 - + 95 - + 81 - + 82 - + 83 @@ -210,187 +210,187 @@ - + 77 - + 76 - + 75 - + 74 - + 73 - + 72 - + 71 - + 70 - + 69 - + 2 - + 3 - + 4 - + 5 - + 6 - + 7 - + 8 - + 9 - + 10 - + 11 - + 12 - + 64 - + 65 - + 62 - + 63 - + 56 - + 57 - + 58 - + 59 - + 60 - + 61 - + 29 - + 28 - + 27 - + 26 - + 25 - + 24 - + 23 - + 22 - + 21 - + 20 - + 19 - + 18 - + 17 - + 16 - + 15 - + 14