Google Maps user location?

First create a function that a accepts a latlng object. This function will add the info to your database and then add the marker if it was successful function addRestaurant( latlng ) { lat = latlng. Lat; lng = latlng.

Lng; //Code to add restaurant if ( dbase_successful ) { var marker = new google.maps. Marker({ position: latlng, title: "Some text" map: map //make your map global }); } } Then add an event listener on the click event of the map that calls the function you just created. Add this to your map initialize code google.maps.event.

AddListener(map, 'click', function(event) { addRestaurant( event. Latlng ) } ) Now when your map is clicked add_restaurant will be called with the latlng of the click event on the map.

First create a function that a accepts a latlng object. This function will add the info to your database and then add the marker if it was successful. Function addRestaurant( latlng ) { lat = latlng.

Lat; lng = latlng. Lng; //Code to add restaurant if ( dbase_successful ) { var marker = new google.maps. Marker({ position: latlng, title: "Some text" map: map //make your map global }); } } Then add an event listener on the click event of the map that calls the function you just created.

Add this to your map initialize code. Google.maps.event. AddListener(map, 'click', function(event) { addRestaurant( event.

Latlng ) } ); Now when your map is clicked add_restaurant will be called with the latlng of the click event on the map.

Thanks mate.... – Harsha M V Oct 28 '10 at 17:01.

Maybe this is what you are looking for: Im using javascript for this. Here you set a marker from the address. Var address= "denmark Ã…rhus"; geocoder.

GetLatLng( address, function(point) { if (!point) { alert(address + " not found"); } else { map. SetCenter(point, 14); map. AddOverlay(new GMarker(point, markerOptions)); } } ).

I want the user to zoom and the place the marker.. to mark their address. I think your code just finds the address and places a marker. Basically its to allow people to locate a restuarant on the map – Harsha M V Oct 28 '10 at 11:56 1 Maybe you can finde your answer here: code.google.Com/intl/da/apis/maps/documentation/javascript/… or here: code.google.

Com/apis/maps/documentation/javascript/v2/examples/… – Kim Oct 28 '10 at 11:59.

To see all the details that are visible on the screen, use the "Print" link next to the map.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions