Thanks! That's precisely what I'm looking for. Just want to update the pin.
My custom pin is declared in Pointer.lua. Here's the abbreviated file, showing only snippets of code that is relevant here.
lua Code:
local Pointer = {}
ZGV.Pointer = Pointer
Pointer.Icons = {
default = "ESOdot",
ESOdot = { icon=ZGV.DIR.."/Arrows/Stealth/arrow-error.dds", size=40, minisize=25, rotates=false, edgeicon=ZGV.DIR.."\\Skins\\minimaparrow-green-edge", edgesize=60, spinner=true, onminimap=always },
}
The ZGV:SetWaypoint function is found in GuideHandling.lua and responsible for setting the pin on the map when the guide moves to the next or previous steps. I put the following snippet there.
lua Code:
for k,v in pairs(ZGV.Pointer.Icons) do
if type(v) == "table" then
if k == "ESOdot" then
print(k)
ZO_WorldMap_RefreshCustomPinsOfType(k)
end
end
end
The good news is the print statement returns "ESOdot." However, ZO_WorldMap_RefreshCustomPinsOfType(k) doesn't update the pin on the map. For a brief moment the only time I see the pin change locations is when I close the map (or enable ZO_WorldMap_UpdateMap, which I want to move away from).
Is ESOdot not the required pinType?
Any ideas, thoughts, sage advice?