Azgaar / Fantasy-Map-Generator

Web application generating interactive and highly customizable maps
https://azgaar.github.io/Fantasy-Map-Generator
Other
4.48k stars 636 forks source link

Add canvas size to exported FULL json file. #1071

Closed pryvyd9 closed 4 months ago

pryvyd9 commented 4 months ago

Problem No canvas size in exported files. I'm writing a tool which converts exported files into a map mod for a game. The only file currently having this informaition is the .map file. And not in json part of it. It requires custom parsing which shouldn't really be a thing.

Solution Add canvas size to full json file. Probably to "settings" object.

Alternatives Add Burg lon, lat coordinates to json or a separate Burg geojson export option.

Azgaar commented 4 months ago

Added width and height to the info object. Did not add to settings as settings are supposed to contain elements that can be changed. Map size cannot be changed.