Java Code Examples for com.nextgis.maplib.api.ILayer#setParent()
The following examples show how to use
com.nextgis.maplib.api.ILayer#setParent() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MapBase.java From android_maplib with GNU Lesser General Public License v3.0 | 5 votes |
@Override public boolean delete() { for (ILayer layer : mLayers) { layer.setParent(null); layer.delete(); } mLayers.clear(); return FileUtil.deleteRecursive(getFileName()); }
Example 2
Source File: LayerGroup.java From android_maplib with GNU Lesser General Public License v3.0 | 5 votes |
/** * Create existed layer from path and add it to the map * * @param layer * A layer object */ public void addLayer(ILayer layer) { if (layer != null) { mLayers.add(layer); layer.setParent(this); onLayerAdded(layer); } }
Example 3
Source File: LayerGroup.java From android_maplib with GNU Lesser General Public License v3.0 | 5 votes |
public void insertLayer( int index, ILayer layer) { if (layer != null) { mLayers.add(index, layer); layer.setParent(this); onLayerAdded(layer); } }
Example 4
Source File: LayerGroup.java From android_maplib with GNU Lesser General Public License v3.0 | 5 votes |
@Override public boolean delete() { for (ILayer layer : mLayers) { layer.setParent(null); layer.delete(); } return super.delete(); }