views:

58

answers:

2

I know there is a way to retrieve the coordinates by clicking on the map, using specifically document.getElementById("lonTb").value=point.x; document.getElementById("latTb").value=point.y;

Firstly, i have a html file namely MapToolKit.html, a mapGPS.js and a mapSearch.js.

how do i input the coordinates returns into the js? I just need to be able to click the map for coordinates, not neccessary the search returns. Here's the file which i uploaded. http://www.mediafire.com/?0minqxgwzmx

A: 

Check this out: http://www.putyourlightson.net/projects/coordinates

Alec
i know about that, but i have just need a simple click on map and it returns the coordinates, besides, when i search, there will be markers appearing, which makes me able to click on the map to retrieve coordinates. but i have some trouble implementing it into my code.
cheesebunz
A: 
Geek Num 88
i tried to implement it into my mapGPS.js and it doesn't seem to be able to work, im not quite sure whats wrong with it
cheesebunz