-
Notifications
You must be signed in to change notification settings - Fork 56
Region Map Generator
Generates a whole region: coastlines, rivers, mountains, cities, borders and place names.
Built on Martin O'Leary's terrain generator, using d3.
It builds a height field over an irregular mesh of points, erodes it to cut valleys and river courses, works out where water flows and pools, then places cities where the terrain suits them and draws territory borders around them. Place names are generated from a made-up language rather than picked from a list, so no two maps share names.
Because it is doing real simulation rather than stamping tiles, a map takes a moment to appear.
- Generate produces a completely new region.
- Export SVG downloads the map as vector art, which stays sharp at any size and can be opened in Illustrator, Inkscape or Affinity.
- Export PNG downloads it as an image.
Exports carry their own colours and background, so the file looks the same wherever you open it rather than depending on the page's stylesheet.
Filenames include the date and time, so repeated exports do not overwrite each other.
- The map fits the window it was generated in. If you resize, generate again.
- Labels are placed to avoid collisions, so a dense region takes slightly longer than a sparse one.