For experimentation, place a single unit on an island and in its init line, have this:
onMapSingleClick {player sideChat format ["You klicked on position %1",_pos]}
Now preview and klick around on the map and Thy Shall See ;D
In general, as stated in the messages above, you can print out results from getPos using format. Another example to get you going:
mypos = getPos player
hint format ["You are at %1",mypos]