Map + Property Overlay #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally filed by @coilysiren on 2026-05-02T23:09:44Z - https://github.com/coilysiren/eco-mcp-app/issues/12
Task 3 — Map + Property Overlay
Prereq: read
todo/README.mdfirst for cross-cutting conventions.Goal
Build an MCP tool
get_eco_mapthat renders the live Eco world with property deed boundaries overlaid.Data sources (all public, no admin auth)
GET http://eco.coilysiren.me:3001/Layers/WorldPreview.gif— ~50 KB animated GIF, canonical worldgen preview.GET http://eco.coilysiren.me:3001/api/v1/map/property→ dict of"<deed name>, Owner: <name>": [{x,y},...]. Verified shape; some deeds have empty arrays (e.g. "yourock17's Small Wood Cart Deed").GET http://eco.coilysiren.me:3001/api/v1/map/dimension→{"x":720,"y":200,"z":720}.IMPORTANT: coordinate system
dimension.y = 200is the elevation range, not a map extent. Do not useyas a map axis.propertyendpoint's{x,y}pairs are actually{x, z}— Eco's 2D map projection names the vertical screen axisyeven though it's the world'sz. Treatdimension.xas x-extent anddimension.zas the analog of the property payload'sy.{x:705, y:175}and also{x:0, y:195}— that's a polygon crossing the x=720→0 seam. When consecutive verts differ by more thandimension/2, split the polygon at the seam and render two polygons (one on each side) so Pillow/SVG don't draw a straight line across the entire map.Implementation
(image_width/720, image_height/720).HSL(hash(owner_name) % 360, 50%, 50%)at 40% alpha.data:URI in the iframe (CSP blocks external origins, perclaude-ai-mcp#40).<polygon>s matching the PNG coords so hover shows owner name + deed name as a tooltip.Dead-end (do not attempt)
Per-biome spatial rendering from
/api/v1/worldlayers/layers/{name}— those return summary text only ("Summary": "4%"), not grid pixels. Verified dead in a prior spike. If you want biome composition, see task #10 (ecoregion task), which uses the percentages directly without pretending they're tiles.Acceptance
inv smokepasses with the new tool registered.