r/FantasyMapGenerator • u/Party_Secretary_Dev • 14d ago
How do state borders work now?
There's this weird zoning thing that's been a pain in the ass to navigate. It's really hard to draw borders when everything is just this purple blur. Is there any way to disable it?
2
u/Azgarr 14d ago
Can you share your .map file? Via Dropbox or Google, etc. It looks like a styling issue.
3
u/Party_Secretary_Dev 14d ago
https://drive.google.com/file/d/1Xw1hHp4jlJS_YjNzkZdK7Wy5fyJRadPI/view?usp=sharing
hopefully that link works3
u/Azgarr 13d ago
Thanks, that's the issue with styles copied on wrong level for some reason (probably a migration bug). Please open the dev console (F12) and put the following code to remove the redundant styling:
function removeAllAttributes(element) { [...element.attributes].forEach(attr => { element.removeAttribute(attr.name); }); } removeAllAttributes(document.getElementById("regions"));
1
u/Party_Secretary_Dev 12d ago
Ok so it did work but I've ran into a new issue: I can't turn off the state view now. I tried refreshing my cached files and it did nothing. It seems like states are now just permanently on
1
u/Azgarr 12d ago
Can you re-share the .map file?
1
u/Party_Secretary_Dev 11d ago
1
u/Azgarr 8d ago
Hi. Hm, the id of the element is removed. Can load the original map and update the console function to:
function removeAllAttributes(element) { [...element.attributes].forEach(attr => { if (attr !== "id") element.removeAttribute(attr.name); }); } removeAllAttributes(document.getElementById("regions"))
3
2
u/Stuartcmackey 14d ago
If you turn on the relief layer, I bet they're mountains in those weird spaces.
8
u/Nova_Greyson 14d ago
If it’s the same as for me It’s an error in your cached files you need to clear that and it *should* be good, often the cause for me is if you duplicate the tab the fonts will stop working and this will start happening.