> Hang on is there a difference between Icon and marker?

Yes.
A GMarker represents an individual place on the map, so it has
properties of loaction as well as what it looks like.
A GIcon is the collection of image properties that can be used by a
GMarker.  Several GMarkers can use the same GIcon.

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

Try
 var marker = new GMarker(center, { icon:knifeIcon, draggable:true});
syntax
http://code.google.com/apis/maps/documentation/reference.html#GMarker.GMarker
http://code.google.com/apis/maps/documentation/reference.html#GMarkerOptions

--

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