Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

I use GeoJSON with LeafletJS to overlay geometry on top of images (using a non-globe project). I wasn't happy with it either, but it works well enough, people write plugins to manipulate it in useful ways, so it's not all bad. It could be useful to add an offset and a scale when exporting to GeoJSON, so people can add it to existing maps.

What do you mean by adding an offset and a scale? Right now all coordinate values are around zero, that's how they are generated. The scale is close to one I display in the generator.

If someone wanted to generate multiple cities to place them all on a larger map, they would want to adjust the coordinates to match their larger map. The larger map is going to have it's own coordinate system. Normally i think it would use Latitude and Longitude. The map I have uses pixels x,y of the most zoomed out image.

If was going to do it, I would write a script to import the city JSON and adjust things, someone else may just want to concatinate all the cities in one JSON file and use it like that.

Also exporting with coordinates in meters could be useful.

Ah! So you are talking about ability to specify a scale and an offset somewhere in the generator to get absolute coordinates in json, right? Well, if someone can parse GeoJSON (manually, using a tool or a library), I'm sure they can adjust coordinates as it fits their needs :)

(+1)

It's relatively easy to do, though of course an option to do it at export time would be more comfortable. I'll see if I can make a short script the next days.