Log inGet started
World

Wayfinder Studio: Minimap, Compass, Waypoint and Toast Kit

README.md

mapScreen

The full-screen map. rooms outlines the areas and the level's footprints with their names. fog is the same map covered where the viewer has not been yet, with a percentage explored. satellite shows the real world from straight above (a render the HUD takes once when the map opens) with the markers laid over it. All three share the frame, legend, scale bar, north arrow, viewer arrow and close hint.

Called by navUiKit.hud when the map is open (Nav.openMap, Nav.toggleMap, M, Select, or a tap on the minimap). MapScreen.layout(x, y, w, h) and MapScreen.fit(core, x, y, w, h) return the frame and the world-to-screen fit as tables. MapScreen.build(cmds, ctx, x, y, w, h) draws it.