Folks,
Im trying to move my marker on a map and obtain the street address of
the final position that the user drags the marker to. I have the
following code which doesnt work.. any help would be appreciated.

@marker =
GMarker.new([...@location.latitude,@location.longitude], :draggable
=>true, :title => @location.name)
@map.overlay_global_init(@marker, "my_marker",:draggable
=>true, :title => @location.name)
@map.event_global_init(@marker, :click, "function(){
                @newLocation =
GoogleGeocoder.reverse_geocode([...@marker.getpoint().lat().toFixed(6),@marker.getPoint().lng().toFixed(6)]);
                @location.name = @newLocation.street_address;
                       alert(dead_meat');}")

NOTE: I am not using my_marker as reverse geocoding a hard-coded
lat_lon seems to work but the @marker.getPoint().lat() doesnt seem to
work..

Best
-a

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to google-maps-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to