ESODecoded

SetMapToPlayerLocation

ESO Lua API function — used by 35 of the 3,030 addons we indexed (combined 52,623,385 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

SetMapToPlayerLocation()

Returns: setMapResult

Real usage — from SkyShards


  if SetMapToPlayerLocation() == SET_MAP_RESULT_MAP_CHANGED then
    CALLBACK_MANAGER:FireCallbacks("OnWorldMapChanged")

Short excerpt from the shipping addon SkyShardsits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
SkyShards12,943,031
HarvestMap9,454,533
Lost Treasure6,404,899
LibMapPins5,838,255
Votan's Minimap4,211,718
LibGPS4,027,526