OmniMap (LibOmniMap-1.0) — Spatial Pin Grid, Zero-Idle Waypoints, Dijkstra Router & Legacy Map Bridges
#7 in the Omni* Library Suite (OmniSync, OmniBase, OmniFlow, OmniHUD, OmniUI, OmniSearch, OmniMap): OmniMap (LibOmniMap-1.0) is a high-speed Spatial Hash Pin Grid & Clustering, Zero-Idle Recycled Pin & CrazyArrow Waypoint, Multi-Flavor Coordinate & Zone Math, Dijkstra Inter-Zone Travel Graph, and Nearest-Neighbor + 2-Opt TSP Route Optimizer library. Built in strict Lua 5.1 with zero global leaks, standalone OmniMap stays 100% invisible and silent on login (0 chat lines, 0 minimap buttons, 0 auto-LDB/Compartment/Settings clutter, and 0 idle OnUpdate scripts) and shields all Midnight 12.0+ Secret Values via SecretGuard.
Addon Authors: Upgrade Your Existing Addon in 1 Click (Zero Handler Rewrites)
1-Click Browser Converter Studio: https://fishingbuddyforever.com/Omnimap
- Drop-In Compatibility Facades: Replace
HereBeDragons-2.0,HereBeDragons-Pins-2.0,LibTourist-3.0, andTomTomwith one zero-idleLibStub("LibOmniMap-1.0")dependency via built-in facades (CreateLegacyBridge,GetHereBeDragons,GetHereBeDragonsPins,GetLibTourist,GetTomTomFacade,EmbedLegacyMap) plusOmniMapBridge-1.0. - Offline CLI & In-Game Converter: Run
migrate_to_omnimap.py --mode hybridlocally or run/omap convertinside World of Warcraft to open the 1-click browser converter studio. - Required Dependency Policy (
All Rights Reserved): OmniMap is proprietary and non-embeddable — third-party addon makers may not bundleLibOmniMap-1.0files and must list standalone OmniMap as a Required Dependency on CurseForge (under Project/File Relations) in addition to## Dependencies: OmniMapin their.toc.
Supported World of Warcraft Clients
| Client Flavor | TOC Interface(s) | Engine Highlights |
|---|---|---|
| Retail / Midnight 12.x | 120107, 120105, 120100, 120005, 120001, 120000 |
Live C_Map projection + Midnight SecretGuard (issecretvalue / canaccessvalue) protection |
| WoW Forever 1.60.1 | 16001 |
Multi-flavor zone & world coordinate math, ruleset-safe state & zero idle OnUpdate |
| TBC Anniversary | 20506, 20505 |
Cross-client coordinate projection, spatial pin grid & portal/flight/boat routing |
| Classic Era | 11509, 11508 |
Classic no-C_Map coordinate fallback, recycled pins & event-driven CrazyArrow |
| Mists / Cata / Wrath Classic | 50504, 50503, 40402, 38002, 30405 |
Multi-TOC flavor detection & unified legacy map bridge support |
Complete Feature List
- Secret-Safe Multi-Flavor Coordinate & Zone Math:
GetZoneInfo,GetZoneSize,GetPlayerZone,GetPlayerZonePosition,GetPlayerWorldPosition,GetWorldCoordinatesFromZone,GetZoneCoordinatesFromWorld,GetZoneDistance,GetWorldVector,GetAllMapIDs,GetContinentID, andIsInstanceMap. - O(1) Spatial Hash Grid & Clustering:
CreateSpatialIndex(cellSize)supporting:Insert,:Remove,:Update,:QueryRadius,:QueryViewport, and:Clusterwith O(1) cell-bucket lookups. - Zero-Idle Recycled Pin Pool & Event-Driven CrazyArrow Waypoints: Frame-pooled
AcquirePin/ReleasePin/ReleaseAllPins,AddWaypoint/RemoveWaypoint/ClearWaypoints, andGetCrazyArrowStatedriven purely by WoW map & zone events (PLAYER_ENTERING_WORLD,ZONE_CHANGED_NEW_AREA,NEW_WMO_CHUNK,MINIMAP_UPDATE_ZOOM) with0idleOnUpdatescripts. - Inter-Zone Dijkstra Travel Graph & 2-Opt TSP Route Optimizer: Built-in Azeroth, Outland, Northrend, Dragon Isles, and Khaz Algar portal/flight/boat/tram graph (
RegisterPortalEdge,FindTravelPath) plusOptimizeRoute(waypoints, startPoint)using Nearest-Neighbor + 2-opt refinement. - 4-Tab In-Game Studio & Live Benchmark Suite (
/omap): Interactive tabs forMap Explorer,Pins & Spatial,Route Optimizer, andBridges, staying completely silent & invisible until opened.
Quickstart (Required Dependency Policy)
-- 1. Add "## Dependencies: OmniMap" to your addon's .toc (never bundle LibOmniMap-1.0)
local Map = LibStub("LibOmniMap-1.0")
-- Spatial Hash Pin Index & Clustering
local grid = Map:CreateSpatialIndex("MyPins", { cellSize = 0.05 })
grid:Insert({ id = "node1", mapID = 37, x = 0.42, y = 0.65 })
local nearby = grid:QueryRadius(37, 0.45, 0.65, 0.10)
-- Event-Driven Waypoint & 2-Opt Route Optimization
Map:AddWaypoint(37, 0.55, 0.65, { title = "Goldshire", crazy = true })
local path = Map:FindTravelPath(52, 2112)
local best = Map:OptimizeRoute(waypoints, { mapID = 37, x = 0.42, y = 0.65 })
-- 1-Line Legacy Drop-In Bridges (HereBeDragons / LibTourist / TomTom)
local HBD = Map:GetHereBeDragons()
local Tourist = Map:GetLibTourist()
local TomTom = Map:GetTomTomFacade()
Slash Commands
/omapor/omnimap— Toggle the 4-tab OmniMap Studio UI/omap explorer,/omap spatial,/omap router,/omap bridges— Open a specific Studio tab directly/omap way <x> <y> [title]&/omap clear— Add or clear CrazyArrow waypoints in your current zone/omap route <fromMapID> <toMapID>— Compute multi-hop portal/flight/boat travel paths/omap bench&/omap stats— Run spatial/TSP/Dijkstra benchmarks or print active library & SecretGuard stats/omap convert— Open the 1-Click Addon Converter Studio URL popup (https://fishingbuddyforever.com/Omnimap)
License: All Rights Reserved (c) 2026 XyGoT — Standalone Distribution Only.