mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 10:31:24 +01:00
refactor: submap - restore river and biome data
This commit is contained in:
parent
6e38c93841
commit
72be5f8220
4 changed files with 49 additions and 26 deletions
|
|
@ -20,7 +20,7 @@ function openSubmapTool() {
|
|||
if (modules.openSubmapTool) return;
|
||||
modules.openSubmapTool = true;
|
||||
|
||||
async function generateSubmap() {
|
||||
function generateSubmap() {
|
||||
INFO && console.group("generateSubmap");
|
||||
const [[x0, y0]] = getViewBoxExtent();
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ function openSubmapTool() {
|
|||
|
||||
resetZoom(0);
|
||||
undraw();
|
||||
await Submap.resample(parentMap, options);
|
||||
Resample.process(parentMap, options);
|
||||
rescaleBurgStyles(scale);
|
||||
drawLayers();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue