You need to do a few changes to map #1 to get it behave like #2:
- onClick -> add a draggable marker (if none exists yet, so only first time)
or move it there
- when dragging that marker, update current position
- when dropping that marker, reverse-geocode current position

Cheers,
Miguel

On Wed, Jun 2, 2010 at 08:51, Jnew <[email protected]> wrote:

> Allows you to search the site:
>
> http://code.google.com/intl/pt-BR/apis/maps/documentation/javascript/examples/geocoding-simple.html
>
> Drag and shows the local "Closest matching address:"
>
> http://gmaps-samples-v3.googlecode.com/svn/trunk/draggable-markers/draggable-markers.html
>
> How to join these two maps?
>
> Because I wanted the user to seek its location on my site, but if he
> saw that it is not the exact address, allowing it to drag the marker
> and to the side, showing the address of the new location.
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

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

Reply via email to