submapper gui updates, remove feature mapping on/off

This commit is contained in:
Mészáros Gergely 2022-04-06 18:16:21 +02:00
parent 5db436d627
commit 3827f878e7
4 changed files with 61 additions and 63 deletions

View file

@ -13,6 +13,15 @@ function openSubmapOptions() {
});
}
function openRemapOptions() {
$("#remapOptionsDialog").dialog({
title: "Resampler options",
resizable: false,
width: fitContent(),
position: {my: "right top", at: "right-10 top+10", of: "svg", collision: "fit"}
});
}
const generateSubmap = debounce(async function () {
// Create submap from the current map
// submap limits defined by the current window size (canvas viewport)
@ -21,11 +30,6 @@ const generateSubmap = debounce(async function () {
closeDialogs("#worldConfigurator, #options3d");
const checked = id => Boolean(document.getElementById(id).checked)
const options = {
copyBurgs: checked("submapCopyBurgs"),
copyZones: checked("submapCopyZones"),
copyRivers: checked("submapCopyRivers"),
copyRoads: checked("submapCopyRoads"),
lockMarkers: checked("submapLockMarkers"),
lockBurgs: checked("submapLockBurgs"),
@ -77,6 +81,7 @@ const generateSubmap = debounce(async function () {
oldstate = null; // destroy old state to free memory
restoreLayers();
turnButtonOn('toggleMarkers');
if (ThreeD.options.isOn) ThreeD.redraw();
if ($("#worldConfigurator").is(":visible")) editWorld();
}, 1000);