|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.micello.mapapi.standard.MicelloLocationManager
public class MicelloLocationManager
This class manages the location and orientation for the user on the map.
For location it uses an instance of MLocationProvider to get the
location. For orientation, it used the device companss.
| Field Summary | |
|---|---|
static java.lang.String |
LOCATION_LAYER_NAME
This is the layer name for the location layer. |
| Constructor Summary | |
|---|---|
MicelloLocationManager(Context context)
This class managers location and orientation. |
|
| Method Summary | |
|---|---|
boolean |
compassEnabled()
This method returns true if the compass is enabled. |
void |
connect(MicelloManager micelloManager)
This method connects the MicelloLocationManager to the map associated with the given MicelloManager. |
void |
disableCompass()
This method disables the compass. |
void |
disableLocation()
This method disables location. |
void |
disconnect(MicelloManager micelloManager)
This method disconnects the MicelloLocationManager from the map associated with the given MicelloManager. |
void |
enableCompass()
This method enables the compass. |
void |
enableLocation()
This method enables location. |
MLatLonPoint |
getCurrentLocation()
The best known current location, or null if no location is known. |
boolean |
locationEnabled()
This method returns true if location is enabled. |
void |
onAccuracyChanged(Sensor sensor,
int accuracy)
This is a part of the SensorEventListener. |
void |
onLocationChanged(MLatLonPoint latLonPoint,
float errorMeters)
This method should be called when a new location is available. |
void |
onSensorChanged(SensorEvent event)
This is a part of the SensorEventListener. |
void |
setLocationProvider(MLocationProvider locationProvider)
This method sets the location provider |
void |
setMapView(MicelloMapView mapView)
This method sets the MapView, which is the receiver for location and orientation. |
void |
showErrorRadius(boolean showError)
This function contorls whether the error radius is shown or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LOCATION_LAYER_NAME
| Constructor Detail |
|---|
public MicelloLocationManager(Context context)
context - The contextMicelloManager - The Micello manager for this map data| Method Detail |
|---|
public void connect(MicelloManager micelloManager)
micelloManager - The MicelloManager associated with the map.public void disconnect(MicelloManager micelloManager)
micelloManager - The MicelloManager associated with the map.public void showErrorRadius(boolean showError)
public void setLocationProvider(MLocationProvider locationProvider)
locationProvider - The location providerpublic void setMapView(MicelloMapView mapView)
setMapView in interface MapViewListenermapView - The MicelloMapView object. This will be null if the mapView is made inactive.public MLatLonPoint getCurrentLocation()
public void enableLocation()
public void disableLocation()
public boolean locationEnabled()
public void enableCompass()
public void disableCompass()
public boolean compassEnabled()
public void onLocationChanged(MLatLonPoint latLonPoint,
float errorMeters)
public void onAccuracyChanged(Sensor sensor,
int accuracy)
public void onSensorChanged(SensorEvent event)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||