>> 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.
Thank you. That works fine. ------------------------------------------------------- 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&kid=103432&bid=230486&dat=121642 _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
