Hi guys, i've been playing with the Maps Api for a couple days now, i
can create a map, place a custom marker in, add info speech bubbles
but when it comes to more interesting stuff i get a little stuck.

At the moment i'm trying to add draggable function to my custom
marker. I've looked at some example code :
(http://code.google.com/apis/ajax/playground/?
exp=maps#map_marker_drag)
But as soon as i try to add my custom marker (a dagger) it fails to
work.

I've read that i need to state  GMarkerOptions.draggable = true;

Hang on is there a difference between Icon and marker?

this gets the icon on the map:
var marker = new GMarker(center, knifeIcon);

but i have replaced the {draggable:true} with daggerIcon and so my
custom icon shows but the draggable function doesn't work.

I've tried:

var marker = new GMarker(center, knifeIcon, {draggable:true});

and even:

var marker = new GMarker(center, knifeIcon
                                                   {
 
draggable:true
                                                    });

Any ideas?

Just to let you know i have searched these forums and can't seem to
find any info on it.

Thanks,
Jub

--

You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=.


Reply via email to