|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.android.map.LocationService
public class LocationService
Class providing UI support to display the current location of the device on a MapView. To get an instance of a
LocationService see MapView.getLocationService()
.
Method Summary | |
---|---|
android.location.Location |
getLocation()
Returns the current location in the spatial reference WGS1984 (WKID=4326). |
android.location.LocationListener |
getLocationListener()
Gets the Android LocationListener instance. |
int |
getMaxAccuracyCircleSize()
Gets the max accuracy circle size in meter. |
Point |
getPoint()
Returns the current coordinates in the map's spatial reference. |
Symbol |
getSymbol()
Gets the symbol. |
boolean |
isAccuracyCircleOn()
Checks if the accuracy circle is on. |
boolean |
isAllowNetworkLocation()
Checks if the network provider is allowed to determine the current location. |
boolean |
isAutoPan()
Checks if is auto pan. |
boolean |
isBearingOn()
Checks if is bearing on. |
boolean |
isStarted()
Checks if is started. |
boolean |
isSymbolFound(float x,
float y,
int tolerance)
Checks if location symbol is found for the given coordinates and tolerance. |
void |
setAccuracyCircleOn(boolean accuracyCircleOn)
Enables/Disables the accuracy circle. |
void |
setAllowNetworkLocation(boolean allowNetworkLocation)
Allow/disallow the usage of the network (cellular network and WiFi if available) to determine the current location. |
void |
setAutoPan(boolean autoPan)
activate/deactivate the autoPan. |
void |
setBearing(boolean bearing)
activate/deactivate the bearing representation. |
void |
setLocationListener(android.location.LocationListener locationListener)
Sets the Android LocationListener instance. |
void |
setMaxAccuracyCircleSize(int maxSize)
Sets the max accuracy circle size in meter. |
void |
setSymbol(Symbol symbol)
Sets the symbol for location display. |
void |
start()
Starts the LocationService. |
void |
stop()
Stops the LocationService. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void start()
public void stop()
public android.location.Location getLocation()
Location
.public Point getPoint()
Point
containing the coordinates.public Symbol getSymbol()
public boolean isBearingOn()
public boolean isStarted()
public boolean isAutoPan()
public android.location.LocationListener getLocationListener()
public void setLocationListener(android.location.LocationListener locationListener)
locationListener
- the locationListener to setpublic void setAutoPan(boolean autoPan)
autoPan
- the flag for the autoPan (default: true)public void setBearing(boolean bearing)
bearing
- flag for the bearing (default: true)public void setSymbol(Symbol symbol)
symbol
- the symbol to setpublic boolean isSymbolFound(float x, float y, int tolerance)
x
- the screen coordinate along x axis in pixels.y
- the screen coordinate along y axis in pixels.tolerance
- tolerance in pixels.
public boolean isAllowNetworkLocation()
public void setAllowNetworkLocation(boolean allowNetworkLocation)
allowNetworkLocation
- the flag for the usage of the network (default: true)public boolean isAccuracyCircleOn()
public void setAccuracyCircleOn(boolean accuracyCircleOn)
accuracyCircleOn
- the accuracyCircleOn to setpublic void setMaxAccuracyCircleSize(int maxSize)
maxSize
- size in meter.public int getMaxAccuracyCircleSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |