how to retrieve coordiantes on mouse click

Discussion created by abudawud on Jan 28, 2011
Latest reply on Jan 28, 2011 by ciava.at
I am very very new to this framework. I have managed to get a map up in a screen and I am hoping somebody can advise me on how to get the coordinates on a mouse click. There are a lot of features on the javascript API but I have no idea which one is the one that I need.

I have seen samples where you can click on the map and it brings up a point of interest but I want to actually close the map down on the click event and retrieve the coordinates.

Thanks in advance