API Functions/MapMarker

Details could be found in "Red 5 Studios\Firefall\system\gui\lib\lib_MapMarker.lua".
This is a Lib to make MapMarker on map view.
;Examples:
<nowiki>
require "lib/lib_MapMarker";
local markerList = {}
local function CreateMarker(args)
 local pos = Player.GetPosition()
 local color = "#808080"
 local Marker = MapMarker.Create("storeageName")
 Marker:SetTitle("bodyText")
 Marker:SetBodyText("bodyText")
 Marker:BindToPosition(pos)
 Marker:GetIcon():SetTexture("icons", "crystite"); -- see lib_MultiArt
 Marker:GetIcon():SetParam("tint", color)
 Marker:SetThemeColor(color)
 Marker:ShowOnWorldMap(true)
 --Marker:ShowOnRadar(true)
 --Marker:ShowOnHud(true);
 markerList[args.id] = Marker
end
local function ClearMarkers()
 for num, item in pairs(markerList) do 
 item:ShowOnWorldMap(false)
 --item:ShowOnRadar(false)
 --item:ShowOnHud(false);
 item:Destroy()
 end
 markerList = {}
end
</nowiki>
Category:Addon_API