mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-20 11:01:23 +01:00
pack.burgs[id] and icons
pack.burgs[id].x and y icon target and map pin
This commit is contained in:
parent
aa5c48b356
commit
2de9d6dea4
2 changed files with 6 additions and 6 deletions
|
|
@ -399,10 +399,10 @@ function editBurg(id) {
|
|||
}
|
||||
|
||||
function zoomIntoBurg() {
|
||||
const id = elSelected.attr("data-id");
|
||||
const label = document.querySelector("#burgLabels [data-id='" + id + "']");
|
||||
const x = +label.getAttribute("x");
|
||||
const y = +label.getAttribute("y");
|
||||
const id = +elSelected.attr("data-id");
|
||||
const burg = pack.burgs[id];
|
||||
const x = burg.x;
|
||||
const y = burg.y;
|
||||
zoomTo(x, y, 8, 2000);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue