How to get map to show coordinates

UI and Macro
Can someone please show me how to get the map to show coordinates?

Thanks
Map coordinates are not an in game feature for the World of Warcraft map. I would recommend looking up a few add-on's to help you with this, such as :

http://wow.curse.com/downloads/wow-addons/details/map-coords.aspx

Hope this helped.
Oh ok tyvm :)
The following works to get map coordinates in game without an add on -

/script SetMapToCurrentZone() local x,y=GetPlayerMapPosition(“player”) DEFAULT_CHAT_FRAME: AddMessage(format(“%s, %s: %.1f, %.1f”,GetZoneText(),GetSubZoneText(),x*100,y*100))

You can just cut and paste it into the macro text area after you have created a name and symbol to represent the macro.
The macro isn't working any longer. Any other ideas?
heres a rudementary one i made just now..
and its working as of feb 9th 2013

/script x,y = GetPlayerMapPosition("player"); map=GetZoneText(); c1=floor(x*100);c2=floor(y*100); print(map .. " : " .. c1 ..",".. c2);
If you use default unit frames, hit this macro once:

/run local p,f,x,y="player",MyL or CreateFrame("Frame","MyL",PlayerFrame) f.t=0 f:SetScript("OnUpdate",function(s,e) f.t=f.t+e if f.t>.25 then f.t=0 x,y=GetPlayerMapPosition(p) PlayerName:SetText(format("%s (%d,%d)",UnitName(p),x*100,y*100)) end end)

and it will periodically update your current coordinates beside your name on your unit frame until you logout or reload.
lol
how do i install the first addon?
It doesn't exist any more, as it was posted in 2011 and not maintained. Here's a current addon with map coordinates:

http://www.wowace.com/addons/mapster/
you are awesome
01/02/2016 01:34 PMPosted by Soulchill
you are awesome
Totally works! Thank you.
Thank you so much - this has totally saved me!
I modified Ro's that macro slightly to show more accurate co-ordinates...

/run local p,f,x,y="player",MyL or CreateFrame("Frame","MyL",PlayerFrame) f.t=0 f:SetScript("OnUpdate",function(s,e) f.t=f.t+e if f.t>.25 then f.t=0 x,y=GetPlayerMapPosition(p) PlayerName:SetText(format("%s (%.1f,%.1f)",UnitName(p),x*100,y*100)) end end)

This will show 1 floating point place for each, which is about as much as you can fit in the name frame). It may still be too long if your name is too long.

I also modified the simple macro above which will show current co-ordinates in your chat window to two decimal places each time you click it.

/script x,y = GetPlayerMapPosition("player"); map=GetZoneText(); c1=x*100;c2=y*100; print(string.format("%s: %.2f, %.2f", map, c1, c2));
I would recommend getting the Wowhead Looter addon. It has an option to add player + cursor coordinates to the world map, along with adding a small tooltip showing your current coordinates to the main game window which you can move anywhere your want on your screen. At the same time, it helps Wowhead by uploading data. Two birds one stone!
Get Mapster to add coordinates to the world map, and MiniMapster to add them to the minimap.
http://mods.curse.com/addons/wow/mapster
http://mods.curse.com/addons/wow/minimapster

I, personally, use Carbonite - but it is a large questing addon which has its own maps. And it is not for everyone. It is my personal favorite though.
I use sexymap it comes with coords and some pretty neat mini map skins
This frustrated me to no end that I would have to get an addon with a ton of crap, just to show my coordinates.

So, I dug a bit and figured out how to code it out, the examples above really helped.

This will create a new box at the top of your screen showing your coordinates:

/run local p,f,x,y="player",gf or CreateFrame("Button","gf",UIParent,"UIGoldBorderButtonTemplate") f:SetPoint("TOP",0,0) f:SetWidth(80) f:SetScript("OnUpdate",function(s,e) x,y=GetPlayerMapPosition(p) f:SetText(format("(%.1f,%.1f)",x*100,y*100)) end)
This is perfect!

Join the Conversation

Return to Forum