Revision 824 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/fframes/FFrameView.java
FFrameView.java | ||
---|---|---|
63 | 63 |
import org.gvsig.fmap.mapcontext.events.listeners.AtomicEventListener; |
64 | 64 |
import org.gvsig.fmap.mapcontext.events.listeners.ViewPortListener; |
65 | 65 |
import org.gvsig.fmap.mapcontext.layers.CancelationException; |
66 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
66 | 67 |
import org.gvsig.fmap.mapcontext.layers.LayerCollectionEvent; |
67 | 68 |
import org.gvsig.fmap.mapcontext.layers.LayerCollectionListener; |
68 | 69 |
import org.gvsig.fmap.mapcontext.layers.LayerEvent; |
69 | 70 |
import org.gvsig.fmap.mapcontext.layers.LayerPositionEvent; |
71 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
|
72 |
import org.gvsig.fmap.mapcontext.layers.vectorial.VectorLayer; |
|
70 | 73 |
import org.gvsig.fmap.mapcontext.rendering.legend.events.LegendChangedEvent; |
71 | 74 |
import org.gvsig.fmap.mapcontext.rendering.legend.events.listeners.LegendListener; |
72 | 75 |
import org.gvsig.gui.beans.Messages; |
... | ... | |
284 | 287 |
this.mapContext = null; |
285 | 288 |
return; |
286 | 289 |
} |
290 |
|
|
287 | 291 |
try { |
288 | 292 |
if (syncLayers) { |
289 | 293 |
mapContext |
290 | 294 |
= viewMapContext.createNewFMap( |
291 | 295 |
(ViewPort) viewMapContext.getViewPort().clone()); |
296 |
for (FLayer fLayer : viewMapContext.getGraphicsLayers()) { |
|
297 |
if (fLayer instanceof FLyrVect) { |
|
298 |
mapContext.setGraphicsLayer(fLayer.getName(), (FLyrVect) fLayer); |
|
299 |
} |
|
300 |
} |
|
301 |
|
|
292 | 302 |
} else { |
293 | 303 |
mapContext = viewMapContext.cloneFMap(); |
294 | 304 |
mapContext.setViewPort((ViewPort) viewMapContext |
... | ... | |
1388 | 1398 |
@Override |
1389 | 1399 |
public void windowClosed() { |
1390 | 1400 |
} |
1391 |
|
|
1392 |
|
|
1401 |
|
|
1393 | 1402 |
private class ViewDocListener |
1394 | 1403 |
implements ViewPortListener, LegendListener, LayerCollectionListener, AtomicEventListener { |
1395 | 1404 |
|
Also available in: Unified diff