Click here to Skip to main content
15,897,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

i have written the following code to create and modify a resizable circular geofence. now, i want to retrieve the co-ordinates on click event of the mouse over the map. Pl help urgently...thanks in advance
JavaScript
if (GBrowserIsCompatible()) 
        { 
            var lat1 = document.getElementById("txtlat1").value;
            var lng1 = document.getElementById("txtlng1").value;
        
            var map_center = new GLatLng(lat1, lng1); // 19.09353  72.854891
        
            map = new GMap2(document.getElementById("map_canvas")); //New GMap object 
            map.setCenter(map_center); 
            var ui = new GMapUIOptions(); //Map UI options 
            ui.maptypes = { normal:true, satellite:true, hybrid:true, physical:false } 
            ui.zoom = {scrollwheel:true, doubleclick:true}; 
            ui.controls = { largemapcontrol3d:true, maptypecontrol:true, scalecontrol:true }; 
            map.setUI(ui); //Set Map UI options 
Posted
Updated 7-Nov-11 23:44pm
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900