General information
Category:
Third party products
Environment versions
Network:
Windows 2008 Server
Here is solution.
somewhere in BODY section I put listener to read gps coordinates on right click
google.maps.event.addListener(map, "rightclick", function(event)
{
var lat = event.latLng.lat();
var lng = event.latLng.lng();
// populate yor box/field with lat, lng mayby some other fieds you need for location, perhaps create marker
var StoreToFile= "lat"+lat+"#"+"long"+lng
WriteToFile(StoreToFile)
}
);
At the end of SCRIPT section
function WriteToFile(sText)
{
var fso = new ActiveXObject("Scripting.FileSystemObject");
var FileObject = fso.OpenTextFile("C:\\tmp\\LogFile.txt", 8, true,0); // 8=append, true=create if not exist, 0 = ASCII
FileObject.writeline(sText)
FileObject.close()
}
Voila, now I can manipulate with data in my logfile.txt
Thanks for all replies.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only