6.3.1.7.3. LayerGroup

public class LayerGroup extends Layer

6.3.1.7.3.1. Fields

6.3.1.7.3.1.1. mDisplay

protected GISDisplay mDisplay

6.3.1.7.3.1.2. mLayerDrawIndex

protected int mLayerDrawIndex

6.3.1.7.3.1.3. mLayerFactory

protected LayerFactory mLayerFactory

6.3.1.7.3.1.4. mLayers

protected final List<ILayer> mLayers

6.3.1.7.3.1.5. mOnAllLayersAddedListener

protected OnAllLayersAddedListener mOnAllLayersAddedListener

6.3.1.7.3.2. Constructors

6.3.1.7.3.2.1. LayerGroup

public LayerGroup(Context context, File path, LayerFactory layerFactory)

6.3.1.7.3.3. Methods

6.3.1.7.3.3.1. addLayer

public void addLayer(ILayer layer)

Create existed layer from path and add it to the map

Parameters:
  • layer – A layer object

6.3.1.7.3.3.2. cancelDraw

public void cancelDraw()

6.3.1.7.3.3.3. clearLayers

public void clearLayers()

6.3.1.7.3.3.4. createLayerStorage

public File createLayerStorage(String layerName)

Create the layer folder of specified name

Parameters:
  • layerName – The name of folder
Returns:

Path to the layer folder

6.3.1.7.3.3.5. createLayerStorage

public File createLayerStorage()

Create the layer folder of random name

Returns:Path to the layer folder

6.3.1.7.3.3.6. delete

public boolean delete()

6.3.1.7.3.3.7. fromJSON

public void fromJSON(JSONObject jsonObject)

6.3.1.7.3.3.8. getExtents

public GeoEnvelope getExtents()

6.3.1.7.3.3.9. getLayer

public ILayer getLayer(int index)

6.3.1.7.3.3.10. getLayerById

public ILayer getLayerById(int id)

Get layer by identificator

Parameters:
  • id – Layer identificator
Returns:

Layer or null

6.3.1.7.3.3.11. getLayerByName

public ILayer getLayerByName(String name)

search layer by it human readabler name

Parameters:
  • name – Name to search
Returns:

ILayer or null

6.3.1.7.3.3.12. getLayerByPathName

public ILayer getLayerByPathName(String name)

Search layer by it folder name

Parameters:
  • name – Name to search
Returns:

ILayer or null

6.3.1.7.3.3.13. getLayerCount

public int getLayerCount()

6.3.1.7.3.3.14. getLayerFactory

public LayerFactory getLayerFactory()

6.3.1.7.3.3.15. getLayersByType

public static void getLayersByType(LayerGroup layerGroup, int types, List<ILayer> layerList)

Get a list of specified type layers

Parameters:
  • layerGroup – to inspect for layers
  • types – A layer type
  • layerList – A list to fill with find layers

6.3.1.7.3.3.16. getVectorLayersByType

public static void getVectorLayersByType(LayerGroup layerGroup, int types, List<ILayer> layerList)

6.3.1.7.3.3.17. getVisibleLayerCount

public int getVisibleLayerCount()

6.3.1.7.3.3.18. getVisibleTopLayerId

public int getVisibleTopLayerId()

6.3.1.7.3.3.19. haveFeaturesNotSyncFlag

public boolean haveFeaturesNotSyncFlag()

6.3.1.7.3.3.20. insertLayer

public void insertLayer(int index, ILayer layer)

6.3.1.7.3.3.21. isChanges

public boolean isChanges()

6.3.1.7.3.3.22. isVisible

public boolean isVisible()

6.3.1.7.3.3.23. moveLayer

public void moveLayer(int newPosition, ILayer layer)

6.3.1.7.3.3.24. onExtentChanged

protected void onExtentChanged(float zoom, GeoPoint center)

6.3.1.7.3.3.25. onLayerAdded

protected void onLayerAdded(ILayer layer)

6.3.1.7.3.3.26. onLayerChanged

protected void onLayerChanged(ILayer layer)

6.3.1.7.3.3.27. onLayerDeleted

protected void onLayerDeleted(int id)

6.3.1.7.3.3.28. onLayersReordered

protected void onLayersReordered()

6.3.1.7.3.3.29. onUpgrade

public void onUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion)

6.3.1.7.3.3.30. removeLayer

public int removeLayer(ILayer layer)

6.3.1.7.3.3.31. runDraw

public void runDraw(GISDisplay display)

6.3.1.7.3.3.32. save

public boolean save()

6.3.1.7.3.3.33. setOnAllLayersAddedListener

protected void setOnAllLayersAddedListener(OnAllLayersAddedListener listener)

6.3.1.7.3.3.34. setViewSize

public void setViewSize(int w, int h)

6.3.1.7.3.3.35. setVisible

public void setVisible(boolean visible)

6.3.1.7.3.3.36. toJSON

public JSONObject toJSON()