Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] programmatically changing the layer style

I've created a temporary layer according to [1] and want to change the style of this layer. Is this the correct way or to complicated?

Style style = MyStyleFactory.getStyle();
layer.getStyleBlackboard().put(SLDContent.ID, style);
layer.getStyleBlackboard().setSelected(new String[]{SLDContent.ID});

[1] http://svn.refractions.net/udig/udig/branches/1.1.x/udig/tutorials/net.refractions.udig.tutorials.examples/src/net/refractions/udig/tutorials/examples/CreateTemporaryLayer.java


Thanks,
Jürgen



Back to the top