neocturne/MinedMap

Coordinates watermark

Opened this issue · 4 comments

Over the years I have built a few scripts that update MinedMap tiles with additional information. They work OK at a single tile level, zooming in, but updating higher level tiles is far more difficult for an external program.

A couple of examples in the screenshot below: tile coordinates, and a red highlight of a list of tiles that I plan to trim from the world.
A section of a MinedMap map

Maybe these could be useful enhancement for a future version:

  • a command line switch to include coordinates at all or selected zoom levels
  • a way to highlight or 'fence' a set of tiles, reading a list of coordinates from file

Hmm, interesting. Maybe some kind of postprocessing hook could be used for this, making MinedMap call an external command for each generated tile after generation, but before mipmapping?

That could work! It would be slower, but far more flexible and easy to implement for you.

Are you thinking about passing tile filename, and maybe the coordinates as parameters to the external tool?
Would it work to call the tool only on re-rendered tiles, to avoid repeated overlays on the same image?

Are you thinking about passing tile filename, and maybe the coordinates as parameters to the external tool? Would it work to call the tool only on re-rendered tiles, to avoid repeated overlays on the same image?

Yes, that's exactly what I am considering to implement.

Partially related: any resources you would suggest for getting into Rust?