How can I set a classname of a group of markers?
I have a lot of markers with same proprety and I wanna give them a
class name, so whit jquery I'm gonna change the visibility of the
markers.
if I made something this:
switch (max)
{
case '0':
marker.icon =
"http://www.google.com/mapfiles/marker_white.png";
marker.setAttribute =
("classname","blanco");
break;
case '1':
marker.icon
="http://www.google.com/mapfiles/marker_yellow.png";
marker.className = "green" ;
break;
case '2':
marker.icon
="http://www.google.com/mapfiles/marker.png";
marker.className = "yellow" ;
break;
case '-1' :
marker.icon =
"http://www.google.com/mapfiles/marker_green.png";
marker.className = "red";
break;
}
but seems that the "marker.className" instruction doesn't take effect.
--
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.