Blizzard actually did all the work:
Code:
local x, y = WorldMapFrame.ScrollContainer:GetNormalizedCursorPosition()
That will return the x, y coordinates taking into account map zoom, pan, etc...
Just multiply x and y by 100 and it should work like you want.