tl;dr version:
It would be cool to have more POI colors!
Long version:
We have color-coded villages (red, blue, green, purple) on my server but the villages are full now and we would like to add more but there are no more unused colors left to choose from.
Given that Leaflet.awesome-markers does support more colors than currently available, I gave it an naive attempt trying to "unlock" them all.
This is what I did, without success:
I took the color names and pixel offsets from
https://github.com/minetest-mapserver/mapserver/blob/master/public/css/leaflet.awesome-markers.css
and then modified
https://github.com/minetest-mapserver/mapserver/blob/master/doc/internal/textures.md
like so
magick markers-soft.png -crop 36x46+0+0 -resize 28% mapserver_poi_red.png
magick markers-soft.png -crop 36x46+36+0 -resize 28% mapserver_poi_orange.png
magick markers-soft.png -crop 36x46+72+0 -resize 28% mapserver_poi_green.png
magick markers-soft.png -crop 36x46+108+0 -resize 28% mapserver_poi_blue.png
magick markers-soft.png -crop 36x46+144+0 -resize 28% mapserver_poi_purple.png
magick markers-soft.png -crop 36x46+180+0 -resize 28% mapserver_poi_darkred.png
magick markers-soft.png -crop 36x46+216+0 -resize 28% mapserver_poi_darkblue.png
magick markers-soft.png -crop 36x46+252+0 -resize 28% mapserver_poi_darkgreen.png
magick markers-soft.png -crop 36x46+288+0 -resize 28% mapserver_poi_darkpurple.png
magick markers-soft.png -crop 36x46+324+0 -resize 28% mapserver_poi_cadetblue.png
magick markers-soft.png -crop 36x46+360+0 -resize 28% mapserver_poi_lightred.png
magick markers-soft.png -crop 36x46+396+0 -resize 28% mapserver_poi_beige.png
magick markers-soft.png -crop 36x46+432+0 -resize 28% mapserver_poi_lightgreen.png
magick markers-soft.png -crop 36x46+468+0 -resize 28% mapserver_poi_lightblue.png
magick markers-soft.png -crop 36x46+504+0 -resize 28% mapserver_poi_pink.png
magick markers-soft.png -crop 36x46+574+0 -resize 28% mapserver_poi_white.png
magick markers-soft.png -crop 36x46+612+0 -resize 28% mapserver_poi_lightgray.png
magick markers-soft.png -crop 36x46+648+0 -resize 28% mapserver_poi_gray.png
magick markers-soft.png -crop 36x46+682+0 -resize 28% mapserver_poi_black.png
Then I copied the textures into the Minetest/Luanti mapserver_mod and added register_poi() for all the new colors in
https://github.com/minetest-mapserver/mapserver_mod/blob/master/poi.lua#L99
On the Minetest/Luanti side it all works fine, but the new/unofficial POI markers never show up on the map, and it is beyond my abilities to figure out what I need to do to make them work.
tl;dr version:
It would be cool to have more POI colors!
Long version:
We have color-coded villages (red, blue, green, purple) on my server but the villages are full now and we would like to add more but there are no more unused colors left to choose from.
Given that Leaflet.awesome-markers does support more colors than currently available, I gave it an naive attempt trying to "unlock" them all.
This is what I did, without success:
I took the color names and pixel offsets from
https://github.com/minetest-mapserver/mapserver/blob/master/public/css/leaflet.awesome-markers.css
and then modified
https://github.com/minetest-mapserver/mapserver/blob/master/doc/internal/textures.md
like so
Then I copied the textures into the Minetest/Luanti
mapserver_modand addedregister_poi()for all the new colors inhttps://github.com/minetest-mapserver/mapserver_mod/blob/master/poi.lua#L99
On the Minetest/Luanti side it all works fine, but the new/unofficial POI markers never show up on the map, and it is beyond my abilities to figure out what I need to do to make them work.