diff --git a/index.html b/index.html index 8eb8d2c2..bf6e48e2 100644 --- a/index.html +++ b/index.html @@ -3513,7 +3513,8 @@ - + + - + diff --git a/modules/ui/burg-editor.js b/modules/ui/burg-editor.js index 94145e13..6bbf7891 100644 --- a/modules/ui/burg-editor.js +++ b/modules/ui/burg-editor.js @@ -47,6 +47,7 @@ function editBurg(id) { byId("burgEmblem").addEventListener("click", openEmblemEdit); byId("burgTogglePreview").addEventListener("click", toggleBurgPreview); byId("burgEditEmblem").addEventListener("click", openEmblemEdit); + byId("burgLocate").addEventListener("click", zoomIntoBurg); byId("burgRelocate").addEventListener("click", toggleRelocateBurg); byId("burglLegend").addEventListener("click", editBurgLegend); byId("burgLock").addEventListener("click", toggleBurgLockButton); @@ -397,6 +398,14 @@ function editBurg(id) { byId("burgTogglePreview").className = options.showBurgPreview ? "icon-map" : "icon-map-o"; } + function zoomIntoBurg() { + const id = +elSelected.attr("data-id"); + const burg = pack.burgs[id]; + const x = burg.x; + const y = burg.y; + zoomTo(x, y, 8, 2000); + } + function toggleRelocateBurg() { const toggler = byId("toggleCells"); byId("burgRelocate").classList.toggle("pressed"); diff --git a/versioning.js b/versioning.js index ac005116..93bbb8e4 100644 --- a/versioning.js +++ b/versioning.js @@ -12,7 +12,7 @@ * * Example: 1.102.0 -> Major version 1, Minor version 102, Patch version 0 */ -const VERSION = "1.101.02"; +const VERSION = "1.102.0"; { document.title += " v" + VERSION;