The merge introduced draw-features.js as a deferred script, but drawLayers() (called during initial map generation) unconditionally calls drawFeatures(). Since deferred scripts load after DOMContentLoaded, drawFeatures() was undefined when the map tried to render, causing only ocean to display. Fix: Move draw-features.js to load before main.js (after its dependencies like simplify.js) so it's available when drawLayers() executes. This is the minimal fix - other renderer scripts remain deferred since they're only called conditionally based on layer toggles. Fixes: Map only showing ocean after merge |
||
|---|---|---|
| .docker | ||
| .github | ||
| .vscode | ||
| api-server | ||
| charges | ||
| components | ||
| config | ||
| demos | ||
| heightmaps | ||
| images | ||
| libs | ||
| modules | ||
| styles | ||
| utils | ||
| wiki | ||
| .gitignore | ||
| CODE_OF_CONDUCT.md | ||
| Dockerfile | ||
| dropbox.html | ||
| EXTERNAL_API_INTEGRATION.md | ||
| icons.css | ||
| index.css | ||
| index.html | ||
| ISSUE_TEMPLATE.md | ||
| LICENSE | ||
| main.js | ||
| manifest.webmanifest | ||
| PERFORMANCE_OPTIMIZATIONS.md | ||
| README.md | ||
| run_php_server.bat | ||
| run_python_server.bat | ||
| run_python_server.sh | ||
| sw.js | ||
| versioning.js | ||
Fantasy Map Generator
Azgaar's Fantasy Map Generator is a free web application that helps fantasy writers, game masters, and cartographers create and edit fantasy maps.
Link: azgaar.github.io/Fantasy-Map-Generator.
Refer to the project wiki for guidance. The current progress is tracked in Trello. Some details are covered in my old blog Fantasy Maps for fun and glory.
Join our Discord server and Reddit community to share your creations, discuss the Generator, suggest ideas and get the most recent updates.
Contact me via email if you have non-public suggestions. For bug reports please use GitHub issues or #fmg-bugs channel on Discord. If you are facing performance issues, please read the tips.
Pull requests are highly welcomed. The codebase is messy and requires re-design. I will appreciate if you start with minor changes. Check out the data model before contributing.
You can support the project on Patreon.
Inspiration:
-
Martin O'Leary's Generating fantasy maps
-
Amit Patel's Polygonal Map Generation for Games
-
Scott Turner's Here Dragons Abound