Johannes Echterhoff a =E9crit :
> One layer contains landuse data, one layer contains roads, one layer=20
> contains zones represented by polygons and the last layer should show=20
> roads in a special - but never changed - style that are filtered with a=
> GeometryFilter. The only features that change are those of the last=20
> layer, depending on the type of GeometryFilter chosen.
Note sure if it help, but there is some tips.
You may try to get the RendererLayer used for the last layer. Invokes=20
Renderer.getLayers() for the list of layer as RendererLayer objects.
Try to use Renderer.addLayer(...) and Renderer.removeLayer(...) for=20
adding and removing only this specific RendererLayer, instead of=20
rebuilding all RendererLayers from a whole MapContext.
If you know that some layers neven changes, try the following: for each=20
layers, give it a z order (invokes RenderedLayer.setZOrder(float) with a=20
value of yours choice). If the layers that never changes are comprises=20
in, said, z-value 10 to 20, they try to invoke the following:
Renderer.setOffscreenBuffered(10, 20, ImageType.VOLATILE);
Note that you can invokes this method as many time as you want. For=20
example if you know that layers 30 to 40 usually changes indenpendently=20
of layer 10 to 20, it is worth to have a separated buffered image for=20
layers 10 to 20 and 30 to 40. Then invoke (after the previous call):
Renderer.setOffscreenBuffered(30, 40, ImageType.BUFFERED);
Note that I used type BUFFERED for the second call, because type=20
VOLATILE do not support transparency as of J2SE 1.4.
Hope it help...