public class LayersMapComponent extends AbstractMapComponent implements android.content.SharedPreferences.OnSharedPreferenceChangeListener
AbstractMapComponent.OnAllComponentsCreatedCallback| Modifier and Type | Field and Description |
|---|---|
protected LayersManagerBroadcastReceiver |
_layersManagerReceiver |
protected com.atakmap.android.layers.MobileLayerSelectionAdapter |
_mobileLayersAdapter2 |
protected LayerSelectionAdapter |
_nativeLayersAdapter |
static java.lang.String |
IMPORTER_CONTENT_TYPE |
static java.lang.String |
IMPORTER_DEFAULT_MIME_TYPE |
static java.io.File |
LAYERS_PRIVATE_DIR |
protected AbstractDataStoreRasterLayer2 |
mobileLayers2 |
protected com.atakmap.android.layers.MobileOutlinesDataStore |
mobileOutlines |
protected AbstractDataStoreRasterLayer2 |
nativeLayers |
protected OutlinesFeatureDataStore |
nativeOutlines |
protected CardLayer |
rasterLayers |
static java.lang.String |
TAG |
| Constructor and Description |
|---|
LayersMapComponent() |
| Modifier and Type | Method and Description |
|---|---|
static LocalRasterDataStore |
getLayersDatabase() |
static void |
loadLayerState(android.content.SharedPreferences prefs,
java.lang.String id,
RasterLayer2 layer,
FeatureDataStore layerOutlines,
boolean adoptParentVisibility) |
void |
onCreate(android.content.Context context,
android.content.Intent intent,
MapView view)
Called when the component is first created
|
protected void |
onDestroyImpl(android.content.Context context,
MapView view)
This method is invoked as a subset of the onDestroy call as part of the
MapComponent lifecycle.
|
void |
onPause(android.content.Context context,
MapView view)
Default implementation for an abstract map component which does not respond to the onPause
state transition.
|
void |
onProxySubjectChanged(ProxyLayer layer) |
void |
onResume(android.content.Context context,
MapView view)
Default implementation for an abstract map component which does not respond to the onResume
state transition.
|
void |
onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key) |
void |
onStart(android.content.Context context,
MapView view)
Default implementation for an abstract map component which does not respond to the onStart
state transition.
|
void |
onStop(android.content.Context context,
MapView view)
Default implementation for an abstract map component which does not respond to the onStop
state transition.
|
static void |
saveLayerState(android.content.SharedPreferences prefs,
java.lang.String id,
RasterLayer2 layer,
FeatureDataStore layerOutlines) |
addOverlay, onConfigurationChanged, onCreateOptionsMenu, onDestroy, onOptionsItemSelected, onOptionsMenuClosed, onPrepareOptionsMenu, registerReceiver, removeOverlay, setOnAllComponentsCreatedCallback, unregisterReceiverpublic static final java.io.File LAYERS_PRIVATE_DIR
public static final java.lang.String TAG
protected LayerSelectionAdapter _nativeLayersAdapter
protected com.atakmap.android.layers.MobileLayerSelectionAdapter _mobileLayersAdapter2
protected LayersManagerBroadcastReceiver _layersManagerReceiver
protected com.atakmap.android.layers.MobileOutlinesDataStore mobileOutlines
protected OutlinesFeatureDataStore nativeOutlines
public static final java.lang.String IMPORTER_CONTENT_TYPE
public static final java.lang.String IMPORTER_DEFAULT_MIME_TYPE
protected AbstractDataStoreRasterLayer2 nativeLayers
protected AbstractDataStoreRasterLayer2 mobileLayers2
protected CardLayer rasterLayers
public void onCreate(android.content.Context context,
android.content.Intent intent,
MapView view)
MapComponentonCreate in interface MapComponentcontext - the context of the component (the MapActivity instance)intent - the intent of the MapActivityview - the main MapViewprotected void onDestroyImpl(android.content.Context context,
MapView view)
AbstractMapComponentonDestroyImpl in class AbstractMapComponentpublic void onStart(android.content.Context context,
MapView view)
AbstractMapComponentonStart in interface MapComponentonStart in class AbstractMapComponentcontext - the context of the component (the MapActivity instance)view - the main MapViewpublic void onStop(android.content.Context context,
MapView view)
AbstractMapComponentonStop in interface MapComponentonStop in class AbstractMapComponentcontext - the context of the component (the MapActivity instance)view - the main MapViewpublic void onPause(android.content.Context context,
MapView view)
AbstractMapComponentonPause in interface MapComponentonPause in class AbstractMapComponentcontext - the context of the component (the MapActivity instance)view - the main MapViewpublic void onResume(android.content.Context context,
MapView view)
AbstractMapComponentonResume in interface MapComponentonResume in class AbstractMapComponentcontext - the context of the component (the MapActivity instance)view - the main MapViewpublic void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key)
onSharedPreferenceChanged in interface android.content.SharedPreferences.OnSharedPreferenceChangeListenerpublic void onProxySubjectChanged(ProxyLayer layer)
public static LocalRasterDataStore getLayersDatabase()
public static void loadLayerState(android.content.SharedPreferences prefs,
java.lang.String id,
RasterLayer2 layer,
FeatureDataStore layerOutlines,
boolean adoptParentVisibility)
public static void saveLayerState(android.content.SharedPreferences prefs,
java.lang.String id,
RasterLayer2 layer,
FeatureDataStore layerOutlines)