-
Notifications
You must be signed in to change notification settings - Fork 30
API Documentation
Note: references to existing methods, for example overloads, are referring to the ArcGIS Runtime SDK for Android.
The addLayer() method is an overloaded method that let's you create a map using some of the most common base map types. Maps are set using the MapType ENUM. Set the center of the map using latitude, longitude and scale determines how far in or out the map will be zoomed in when it loads. You can add more than one map, for example you could load both a Streets and Satellite layer. You can also specify visibility when using multiple maps. So if you add Streets you can set its visible property to true, and then when you add Satellite set its visible property to false. This way Streets will be the map that shows up when the app loads.
addLayer(MapType maptype,Double latitude, Double longitude, Double scale, Boolean visible)This method returns an ArcGISTiledMapServiceLayer.
When you have multiple maps the setBaseMapVisibility() method lets you easily toggle which map is visible. This provides you a way to quickly set visibility without having to instantiate a reference to the map. Compare to Layer.setVisibile().
setBaseMapVisibility(MapType maptype)This method returns void.
layerExists() lets you verify a map layer exists and has been fully initialized before performing an operation against it. Compare to Layer.isInitialized().
layerExists(MapType maptype)This method returns Boolean.
layerExists() is an overloaded method that lets you verify a drawing (or Graphics) layer exists and has been fully initialized before performing an operation against it.
layerExists(GraphicsLayer graphicsLayer)This method returns Boolean.
getCurrentVisibileLayerName() lets you programmatically determine which of the internal mapping layers is visible.
getCurrentVisibleLayerName()This method returns String.
findClosestGraphic() simplifies finding the nearest point. An example use case is when you are displaying multiple coffee shops and you want to return a reference to the Graphic that is closest to where the user touches the map. Compare to GraphicsLayer.getGraphicsIDs().
findClosestGraphic(float x, float y,GraphicsLayer graphicsLayer,int tolerance)This method returns the Graphic.
addGraphicLatLon() provides an easy way to use lats and lons to create a Graphic. Compare to GraphicsLayer.addGraphic().
addGraphicLatLon(double latitude, double longitude, Map attributes, SimpleMarkerSymbol.STYLE style)This method returns void.
addGraphicLine() lets you take a String array of lats and lons and create a simple line on the map.
addGraphicLine(String[] lineArray, SimpleLineSymbol.STYLE style, int color)This method returns void.
centerAt() is an overloaded method of MapView that lets you center the map using a latitude and longitude coordinate.
centerAt(double latitude, double longitude, boolean animated)This method returns void.
findAddress(String address)This method returns void.
findAddressByXY(float x, float y)This method returns void.
findAddressByLatLon(double latitude, double longitude)This method returns void.
displayToast() gives you a single line pattern that can be used for repetitive tasks that require toast messages.
displayToast(String message,int... toastLength)This method returns void.
setDrawType() lets you use a single line pattern for specifying whether you want to draw a point, line or polygon.
setDrawType(DrawType drawType)This method returns void.
delayedStartLocationService() provides an easy and safe way of starting the GPS that automatically checks that the map has been initialized before starting to use GPS coordinates to manipulate the map. It also provides a snapshot mode that will allow the GPS accuracy to settle to a predetermined point and then automatically shutdown.
delayedStartLocationService(final boolean...gpsSnapshotMode)This method returns void.
stopLocationService() attempts to stop the location service and throws an error event after a fixed number of unsuccessful attempts.
stopLocationService(final Boolean... silent)This method returns void.
getLastKnownLocation() is a single line way of retrieving the last known location from the device.
getLastKnownLocation()This method returns Location.
pause() is an overloaded method that lets you gracefully pause map operations during the application lifecycle.
pause()This method returns void.
unpause() is an overloaded method that lets you gracefully unpause the map operations during the application lifecycle.
unpause()This method returns void.
addEventListener(EsriQuickStartEventListener listener)This method returns void.
removeEventListener(EsriQuickStartEventListener listener)This method returns void.
Use this in conjunction with the setDrawTouchListener().
setDefaultTouchListener()This method returns void.
setDrawTouchListener() lets you enable drawing capabilities and lock the map so it doesn't move while the user is drawing.
setDrawTouchListener()This method returns void.
getMapView() returns a references to the INTERNAL MapView instance.
getMapView()This method returns MapView.
isLocationEnabled() provides a single line pattern for determining if GPS_PROVIDER is set.
isLocationEnabled()isLocationEnabled()
This method returns boolean.
isLocationStarted() returns whether or not the location service has been started.
isLocationStarted()This method returns boolean.
getStreetsLayer()This method returns ArcGISTiledMapServiceLayer.
getTopoLayer()This method returns ArcGISTiledMapServiceLayer.
getSatelliteLayer()This method returns ArcGISTiledMapServiceLayer.
getPointsLayer()This method returns GraphicsLayer.
getDrawLayer()This method returns GraphicsLayer.
Lets you determine if the map is fully initialized and ready to be used.
isMapLoaded()This method returns boolean.
Single line pattern for setting the map.
MapType.STREETS
MapType.TOPO
MapType.SATELLITE
This method returns enum.
Single line pattern for setting the draw tool.
DrawType.POINT
DrawType.POLYLINE
DrawType.POLYGON
This method returns enum.