On Wed, Jun 2, 2010 at 3:04 PM, Toemouse <[email protected]> wrote: > I wanted to change the icon for a markers whilst it is being dragged. > Is this possible?
Yes. You can change the marker's icon by calling marker.setIcon(draggingMarkerImage). > The API documentation says "The MarkerImage cannot be changed once > constructed." That's correct. You cannot change a MarkerImage once you have created it, but you can make new/different MarkerImages and change an existing Marker to use this new MarkerImage. > Thanks > > -- > 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. > > -- 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.
