Custom coordinate space
The game image was loaded directly into Leaflet with a simple CRS, then all markers were placed using coordinates on that image.
ARCHIVED PROJECT · LAST TOUCHED MAR 2023
This one is old, but it was a real project rather than a tiny test. I built a full interactive game map with filters for locations, resources, animals, vehicles and a lot of the useful stuff people kept looking for.
What it was
The map used Leaflet with a simple coordinate system and a large custom image overlay instead of normal world-map tiles. Locations were placed on top as markers and the right side of the page had filters for turning different groups on and off.
The filter list got pretty big: merchants, points of interest, crawlers, caves, mining areas, bears, wolves, fuel stations, motels, oil wells, vehicles, police stations, houses, storage buildings, farms, supermarkets, wells, military areas, airfields, cities and more.
More than the map
The navigation also linked to an about page, feedback Discord, the game wiki, contributor information, privacy/imprint pages and dedicated-server tools. Looking back at it now, it is probably one of the first projects where I kept adding useful side pieces around the original idea.
The game image was loaded directly into Leaflet with a simple CRS, then all markers were placed using coordinates on that image.
The interesting part was not showing a marker. It was keeping a large amount of map information usable without making the page unreadable.
There is a fair amount of marker setup and UI logic directly in the HTML. I definitely would split that into data and smaller modules now.
The last repo change was in March 2023. I am not maintaining the map anymore, but it is still one of the old projects worth keeping in the shelf.