Package org.geotools.map

Examples of org.geotools.map.MapContent.removeLayer()


                Layer selectedMapLayer = mapLayerTableViewer.getSelectedMapLayer();
                if (selectedMapLayer == null) {
                    return;
                }
                MapContent mapContext = pane.getMapContent();
                mapContext.removeLayer(selectedMapLayer);
                mapLayerTableViewer.selectionChanged(null);
            }
        });

        Button showLayersButton = new Button(buttonComposite, SWT.PUSH);
View Full Code Here


    @Test(expected=UnsupportedOperationException.class)
    public void removeLayerThrowsException() {
        Layer layer = new MockLayer(WORLD);
        MapContent mc = new SingleLayerMapContent(layer);

        mc.removeLayer(layer);
    }
   
    @Test
    public void disposeDoesNotCallLayerDispose() {
        final boolean[] layerDisposed = new boolean[1];
View Full Code Here

   
    @Test
    public void resetAfterRemovingAllLayersIsIgnored() {
        MapContent mapContent = createMapContent(WORLD);
        mapPane.setMapContent(mapContent);
        mapContent.removeLayer(mapContent.layers().get(0));

        // just checking no exception is thrown
        mapPane.reset();
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.