Allowing users to add markers to google maps and getting the coordinates?

Source: code.google.com/apis/maps/documentation/... Scroll down to accessing arguments in UI events var map; function initialize() { var myLatlng = new google.maps. LatLng(-25.363882,131.044922); var myOptions = { zoom: 4, center: myLatlng, mapTypeId: google.maps.MapTypeId. ROADMAP } map = new google.maps.

Map(document. GetElementById("map_canvas"), myOptions); google.maps.event. AddListener(map, 'click', function(event) { placeMarker(event.

LatLng); }); } function placeMarker(location) { var marker = new google.maps. Marker({ position: location, map: map }); map. SetCenter(location); }.

Source: code.google.com/apis/maps/documentation/... Scroll down to accessing arguments in UI events. Var map; function initialize() { var myLatlng = new google.maps. LatLng(-25.363882,131.044922); var myOptions = { zoom: 4, center: myLatlng, mapTypeId: google.maps.MapTypeId.

ROADMAP } map = new google.maps. Map(document. GetElementById("map_canvas"), myOptions); google.maps.event.

AddListener(map, 'click', function(event) { placeMarker(event. LatLng); }); } function placeMarker(location) { var marker = new google.maps. Marker({ position: location, map: map }); map.

SetCenter(location); }.

What I want to do is embed a map on my website and allow users to place markers on it (also if there is a way to control how many markers a user can put on the map?) and I also want to get the coordinates of these markers once they have been put on the map. From the documentation that i've read for google maps javascript api V3, I can place markers on the map myself, but I don't see a way to let users put them up on the map. Is there a way to do it?

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