-
-
Notifications
You must be signed in to change notification settings - Fork 828
URL parameters
Azgaar edited this page Apr 14, 2020
·
14 revisions
Here is a list of parameters you can add to URL in order to set generator options and/or control behavior by link. Use it like [http://azgaar.github.io/Fantasy-Map-Generator/?seed=123456789&width=1536&height=722&options=default], which should generate the same map for everyone using this link.
-
maplink- open .map file from the provided URL, use likehttps://azgaar.github.io/Fantasy-Map-Generator/?maplink=https://dl.dropboxusercontent.com/s/xgs3y1awlokio7x/Atlas%20046.map?dl=1. Due to CORS restrictions, it works only for some servers -
seed- map seed, actual map generation depends not only on seed, but also on options and map size. So to share the same map via a link you need to use it likehttp://azgaar.github.io/Fantasy-Map-Generator/?seed=123456789&width=1536&height=722&options=default. It will work only if codebase is the same, so till the next generator update. To share exactly the same map you have to send a .map file (e.g. viamaplink) -
options- set todefaultto allow generator to ignore options set by user. It's required for sharing the same map, see above -
width,height- map canvas size in pixels -
scale- map zoom level, where1is 100% zoom,2is 200% and so on -
x,y- point coordinates that should be focused. Obviously works only ifscaleis greater than 1. Tryhttp://azgaar.github.io/Fantasy-Map-Generator/?seed=123456789&width=1536&height=722&options=default&scale=8&x=768&y=361 -
burg- burg id to focus on, works only ifscaleis greater than 1. Tryhttp://azgaar.github.io/Fantasy-Map-Generator/?seed=123456789&width=1536&height=722&options=default&scale=8&burg=2 -
cell- cell if to focus on, Tryhttp://azgaar.github.io/Fantasy-Map-Generator/?seed=123456789&width=1536&height=722&options=default&scale=8&cell=1000
This parameters are used by MFCG and not intended to be set manually.
-
from- if equals toMFCG, generator will try to show/create city representation on a map -
size- MFCG city size, equals to population point in FMG -
coast-1if city is on a coastline -
port-1if city is a port -
river-1if city is on a river