refactor: Features module start

This commit is contained in:
Azgaar 2024-09-06 14:22:36 +02:00
parent ec236d146b
commit b5fede560b
9 changed files with 315 additions and 160 deletions

View file

@ -111,14 +111,10 @@ window.Submap = (function () {
}
stage("Detect features, ocean and generating lakes");
markFeatures();
markupGridOcean();
Features.markupGrid();
// Warning: addLakesInDeepDepressions can be very slow!
if (options.addLakesInDepressions) {
addLakesInDeepDepressions();
openNearSeaLakes();
}
addLakesInDeepDepressions();
openNearSeaLakes();
OceanLayers();
@ -130,7 +126,7 @@ window.Submap = (function () {
// remove misclassified cells
stage("Define coastline");
reMarkFeatures();
Features.markupPack();
drawCoastline();
createDefaultRuler();