A pannable, zoomable interactive map viewer for the Land of Olmran game world.
- Pan/zoom over the full-resolution map image (Leaflet,
CRS.Simple) - Search box that jumps to any named zone or marker
- Filter chips to show/hide marker types (once markers are defined)
- Layer dropdown to switch between map images (currently just the overworld;
add more region maps in
js/data/layers.js) - Built-in coordinate picker ("Dev: Pick Coords") for adding new zones/markers —
toggle it on, click anywhere on the map, and it logs
{layer, x, y}as JSON in the bottom panel
This is a static site — no build step. Serve the folder with any static file server, e.g.:
python -m http.server 8080
then open http://localhost:8080.
(Opening index.html directly via file:// won't work in most browsers
because the data files are loaded as scripts relative to the page — a local
server avoids any path issues.)
index.html
css/style.css toolbar, popups, marker pin styling
js/app.js map setup, search, filters, coordinate picker
js/data/layers.js map image definitions (id, name, image, width, height)
js/data/zones.js named regions used by search ("jump to zone")
js/data/markers.js points of interest (banks, shops, healers, etc.)
maps/ source map images
js/data/markers.js is currently empty — marker meanings (what B, S, h, etc.
stand for in-game) haven't been defined yet. To add one:
- Open the site, click "Dev: Pick Coords", click the spot on the map.
- Copy the
{x, y}it logs. - Add an entry to
MARKERSinjs/data/markers.js:
{
name: "Kaid Local Bank",
type: "bank",
layer: "land-of-kaid",
x: 1234,
y: 567,
description: "Optional longer text shown in the popup."
}The type field drives both the filter chips and the marker icon letter.
- Drop the image into
maps/. - Add an entry to
MAP_LAYERSinjs/data/layers.jswith its pixel width/height. - It shows up automatically in the layer dropdown.