Add two marker with click on the map & is draggable direction

36 views
Skip to first unread message

Map smurfs Earth

unread,
Nov 25, 2011, 10:01:10 AM11/25/11
to google-map...@googlegroups.com, map.smur...@gmail.com
Hi all,

im working on after the map is load, user able to add two marker with click on the map & is draggable direction.
i has search online example been so long and i can't find it.

Anyone can help, any sample or source code for it, desperate now. Thank you.

Pil

unread,
Nov 26, 2011, 4:06:18 AM11/26/11
to Google Maps JavaScript API v3
Adding two markers with one click?
I'm wondering how should that work?
Do you mean a radius search?


On Nov 25, 4:01 pm, Map smurfs Earth <map.smurfs.ea...@gmail.com>
wrote:
> Hi all,
>
> im working on after the map is load, user able to *add two marker with
> click on the map & is draggable direction*.

Martin™

unread,
Nov 26, 2011, 5:29:34 AM11/26/11
to Google Maps JavaScript API v3
You could try my ContextMenu:

http://code.martinpearman.co.uk/googlemapsapi/contextmenu/1.0/examples/advanced_example.htm

Let the user choose a location with a right-click, add a draggable
Marker to the location and the user can fine tune the location by
dragging the Marker.

Documentation can be found here:

http://code.martinpearman.co.uk/googlemapsapi/contextmenu/1.0/

Martin.


On Nov 25, 3:01 pm, Map smurfs Earth <map.smurfs.ea...@gmail.com>
wrote:
> Hi all,
>
> im working on after the map is load, user able to *add two marker with
> click on the map & is draggable direction*.

Map smurfs Earth

unread,
Nov 29, 2011, 12:28:19 AM11/29/11
to google-map...@googlegroups.com
Hi Martin,

thx for your reply, really appreciate it :)
i has try your source code, but there is nothing when i right click the map

geoco...@gmail.com

unread,
Nov 29, 2011, 3:38:14 AM11/29/11
to Google Maps JavaScript API v3
On Nov 28, 9:28 pm, Map smurfs Earth <map.smurfs.ea...@gmail.com>
wrote:

> Hi Martin,
>
> thx for your reply, really appreciate it :)
> i has try your source code, but there is nothing when i right click the map

Sounds like you want this:
http://code.google.com/apis/maps/documentation/javascript/examples/directions-draggable.html

combined with this:
http://www.geocodezip.com/v3_example_click2add_infowindow.html

Like this:
http://www.geocodezip.com/v3_GoogleEx_directions-draggable_fromClick.html

-- Larry

Reply all
Reply to author
Forward
0 new messages