On May 17, 4:53 pm, brian <[email protected]> wrote:
> Is it possible to assign an class to a marker? I want to have the
> marker change appearance when the user clicks on it, rather than using
> setImage, I want to put a border around the marker using a class.

Why? What's wrong with setImage()?

The API provides setImage(); it doesn't provide a means of assigning a
user-defined CSS class to a marker image. And presumably you would
need to identify a unique marker to apply the class to: the API
doesn't give markers an element id you can use to do this, either. A
map marker is quite a bit more complex than a single <img> element.

-- 
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=en.

Reply via email to