Forum Moderators: open
i need more than just one color on my routes and a variable width for each route, how can i change that?
i checked the reference at [code.google.com...] , but it seems like there is no method or property that could be used to change color and line width.
any suggestions?
im not good at js; im more the sql and php guy...
See if it has any properties, writable ones.
// Gdirection is the object returned from the class GDirections...
var gp = Gdirection.getPolyline();
for(var i in gp){
alert(i);
}
maybe there are properties like "color" or "weight" in there... in the absense of good documentation, all you can do is poke around and see what you can find. the for/in loop is handy for that.