Ethck / azgaar-foundry

Unofficial Azgaar's Fantasy Map Generator Import
MIT License
43 stars 15 forks source link

Feature request: Import GeoJSON instead of raster image #27

Open soryy708 opened 1 year ago

soryy708 commented 1 year ago

Currently this asks for a raster image (e.g. PNG) of the Azgaar map for displaying in the Scene. This has limitations, especially if the map is very big, so the raster image must be very big, or else zooming in will be pixelated.

Azgaar allows exporting vector data in GeoJSON format.

It's trivial to render GeoJSON in Web using a library like Leaflet

This can allow arbitrary zoom levels without losing resolution, and also smarter showing/hiding of markers based on zoom level.

Ethck commented 1 year ago

This would definitely be a far better method, however, at this time I do not know too much about doing such. I'll keep this idea open and poke at it when I have time. PRs are welcome though!

SpinazFou commented 1 year ago

This! Cant you call from other devs if they can contribute? Azgaars with Foundry working properly will be a blessing for the whole community after all

SpinazFou commented 1 year ago

Currently this asks for a raster image (e.g. PNG) of the Azgaar map for displaying in the Scene. This has limitations, especially if the map is very big, so the raster image must be very big, or else zooming in will be pixelated.

Azgaar allows exporting vector data in GeoJSON format.

It's trivial to render GeoJSON in Web using a library like Leaflet

This can allow arbitrary zoom levels without losing resolution, and also smarter showing/hiding of markers based on zoom level.

Tell him exactly how to do it? Or support him to do it together?

soryy708 commented 1 year ago

I don't have time to contribute a PR to this, but I can definitely consult pro-bono! Please send me an email, where I'll send you my Discord handle.