Andre Lampe a écrit :
I am using a Styled MapPane to display the map. When I try to replace a
layer in my MapContext by another layer at the same index and repaint the
map, the new layer is always shown on top. Isn't the Layer's MapContext
index also its Position? How can i force the new layer to be shown at the
old layers's order-position and not on top?
I'm not sure how MapContext work (I'm not familiar with this part). But
the underyling renderer use the z-order hint for determining the order.
This hint can be set with RenderedLayer.setZOrder(z). I guess that
setting the same z value than the old layer (as returned by
RenderedLayer.getZValue()) should do the trick.
I'm in the process right now to rewrite the renderer as a GO-1
implementation (the org.opengis.go packages there:
http://geoapi.sourceforge.net/2.0/javadoc/index.html). It make take a
few months before it become ready, but I hope to fix many J2D renderer
issues in this process.
Martin.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users