Hi Stefan,

When you change the style on the layer you will have to use the event mechanism to notify the Tree view on the left of the Task that the contents of the layer have changed so that it can refresh. I've not looked at that code yet but if you look at the Task class you should be able to find the code there.

Paul
Ziegler Stefan wrote:
Scalix message content
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



_______________________________________________
jump-users mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jump-users

Reply via email to