mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-23 23:57:23 +01:00
feat: Enhance WebGL2LayerFramework initialization and improve global variable handling
This commit is contained in:
parent
2dae325d05
commit
8560c131eb
6 changed files with 202 additions and 147 deletions
|
|
@ -303,6 +303,7 @@ async function checkLoadParameters() {
|
|||
async function generateMapOnLoad() {
|
||||
await applyStyleOnLoad(); // apply previously selected default or custom style
|
||||
await generate(); // generate map
|
||||
WebGL2LayerFramework.init();
|
||||
applyLayersPreset(); // apply saved layers preset and reder layers
|
||||
drawLayers();
|
||||
fitMapToScreen();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue