What I’m trying to do
I’m trying to generate a fantasy map for my DnD campaign using full YAML syntax and am having some issues. I would really like to be able to define my markers as a list of locations.
Things I have tried
This works, but am forced to use non-standard YAML (multiple marker tags)
id: theros-map
image: "https://static.wikia.nocookie.net/mtgsalvation_gamepedia/images/1/16/Mythic_Odysseys_of_Theros_map.jpg/revision/latest?cb=20200609032925"
bounds:
- [0, 0]
- [482.63, 350.48]
height: 500px
lat: 300
long: 175
minZoom: 0
maxZoom: 5
defaultZoom: 1
unit: miles
marker: default, 247.9333724975586, 194.56386857020684
marker: default, 265.3857421875, 191.4090821068939
However as soon as I switch to either the yaml syntax for markers or to the mapmarkers syntax, I cannot for the life of me figure out what combination of whitespace, commas, and property name gets any number of markers to show up. In fact, marker
just causes it to fail to render entirely.
For example, this doesnt work either as mapmarker or marker
id: theros-map
image: "https://static.wikia.nocookie.net/mtgsalvation_gamepedia/images/1/16/Mythic_Odysseys_of_Theros_map.jpg/revision/latest?cb=20200609032925"
bounds:
- [0, 0]
- [482.63, 350.48]
height: 500px
lat: 300
long: 175
minZoom: 0
maxZoom: 5
defaultZoom: 1
unit: miles
mapmarker:
- [default, 247.9333724975586, 194.56386857020684]
- [default, 265.3857421875, 191.4090821068939]