I'd like to change the text color of an ELabel when an event (like a
mouseover of some other entity) occurs.  I couldn't find a method to
do this in the off-the-shelf ELabel.js.

I thought the best way would be to add a function to ELabel.js:

      ELabel.prototype.setColor = function(newColor) {
        this.div_.style.color = newColor;
        this.redraw(true);
      }

I call this function like this:         gLabels[n].setColor
('#FF0000');

Alas when I call my new function nothing happens.  I suspect that I'm
not setting the proper attribute (or not setting it correctly) in my
new setColor function but I'm stumped - what else would it be but
style.color?  I've tried: this.div_.innerHTML.style.color as well but
that doesn't work either.

I've tried with the original style definition used when creating the
ELabel including a color: specification and not including one - same
same.

Mike (or anyone else) - if you happen to see this, could you give me
some guidance?


--~--~---------~--~----~------------~-------~--~----~
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