Hi
once again a question about styling. I'd like to assign a cloned
ColorThemingStyle to another Layer:
colorStyle1 = myLayer1.getStyle(ColorThemingStyle.class));
ColorThemingStyle colorStyle2 = new ColorThemingStyle();
colorStyle2 = colorStyle1.clone();
myLayer2.removeStyle(myLayer2.getStyle(ColorThemingStyle.class));
myLayer2.addStyle(colorStyle2);
myLayer2.getStyle((ColorThemingStyle.class)).setEnabled(new
Boolean("true"));
myLayer2.getStyle((BasicStyle.class)).setEnabled(new Boolean("false"));
The layer is now rendered with the new style, but I have to zoom once to
see the "colortheming"-icon on the left (a click on the layer name has
the same effect).
Stefan
Mit freundlichem Gruss
Stefan Ziegler
Leiter Aufsicht
Kanton Solothurn
Bau- und Justizdepartement
Amt für Geoinformation
Rötistrasse 4
4501 Solothurn
Telefon 032 627 75 96
Telefax 032 627 75 98
[EMAIL PROTECTED]
http://www.so.ch
_______________________________________________
jump-users mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jump-users