I think you could do this with CSS.  Put a style on your DirectionsPanel with

directionsPanel1.setStyleName("directions1");
directionsPanel2.setStyleName("directions2");

.css file:

.directions1 {
  background-color: #eee;
}
.directions2 {
  background-color: #fee;
}

Or, if you wanted to affect some elements specifically in a different
way, you could use CSS descendent selectors:

.directions1 td {
  color: red;
}

.directions2 td {
  color: green;
}

Look at the DOM using firebug or another tool to see which elements
and classnames are are defined inside the Directions Panel.

-Eric


On Thu, Jun 18, 2009 at 7:03 PM, Enea<[email protected]> wrote:
>
> hi,
> This is my first post here... :)
> My question is if there is a way to change the color of Directions
> shown on a Map with the gwt-maps api.
> I have searched in the api but not found...
> my problem is that i have to display more than one "tour", and it
> would be nice to show these tours in different colors.
>
> Thanks in advance :)
>
>
>
> ---gwt|rocks---
> >
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to