Skip to content

Commit

Permalink
Varadero labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Tunguso4ka committed Jan 6, 2025
1 parent 52f382b commit 6d83a21
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
3 changes: 1 addition & 2 deletions logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var zoom_last = zoom;
var zoom_limit = { min: 0.3, max: 15 };
var initial_pinch_distance = null;
var is_panning;

var target;
var image = new Image();
image.src = 'icon.png';
Expand All @@ -22,7 +23,6 @@ var ctx;
window.onload = () =>
{
target = document.getElementById("map_zoomable");
//image = document.getElementById("map_image");
canvas = document.getElementById("canvas");
ctx = canvas.getContext('2d');

Expand All @@ -45,7 +45,6 @@ window.onload = () =>
load_json("maps.json");
}


// Loads map.json
async function load_json(url)
{
Expand Down
28 changes: 27 additions & 1 deletion maps.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,33 @@
},
"Varadero": {
"name": "New Varadero",
"url": "maps/Varadero-0.png"
"url": "maps/Varadero-0.png",
"labels": [
{ "name": "LZ1", "size": 12, "x": 2100, "y": 1250 },
{ "name": "LZ2", "size": 12, "x": 4450, "y": 1075 },
{ "name": "Bar", "size": 4, "x": 3250, "y": 1000 },
{ "name": "Rockability Beach", "size": 4, "x": 2950, "y": 1600 },
{ "name": "East Beach", "size": 6, "x": 4100, "y": 1900 },
{ "name": "Cargo", "size": 6, "x": 1200, "y": 1550 },
{ "name": "Northern Maint", "size": 4, "x": 1600, "y": 2000 },
{ "name": "Engineering", "size": 6, "x": 3625, "y": 2450 },
{ "name": "Security Offices", "size": 4, "x": 3350, "y": 3300 },
{ "name": "Sec. Maint", "size": 4, "x": 4000, "y": 3300 },
{ "name": "Dorms", "size": 4, "x": 2900, "y": 3400 },
{ "name": "Bathroom", "size": 4, "x": 3800, "y": 4500 },
{ "name": "Admin", "size": 4, "x": 2050, "y": 3350 },
{ "name": "Medical", "size": 4, "x": 1800, "y": 2700 },
{ "name": "Library", "size": 4, "x": 2775, "y": 2250 },
{ "name": "B-Ball", "size": 4, "x": 2850, "y": 2700 },
{ "name": "Research", "size": 6, "x": 475, "y": 3400 },
{ "name": "North Research Caves", "size": 4, "x": 600, "y": 2500 },
{ "name": "South Research Caves", "size": 4, "x": 1150, "y": 4150 },
{ "name": "Southern Maintenance", "size": 4, "x": 2300, "y": 4500 },
{ "name": "South West Caves", "size": 6, "x": 250, "y": 5250 },
{ "name": "Monsoon", "size": 6, "x": 4900, "y": 3500 },
{ "name": "Grass Caves", "size": 6, "x": 2850, "y": 5200 },
{ "name": "Unknown Vessel", "size": 8, "x": 5350, "y": 5100 }
]
},
"Chances": {
"name": "Chances Claim",
Expand Down

0 comments on commit 6d83a21

Please sign in to comment.