See: Description
Interface | Description |
---|---|
Map.InfoBubbleAdapter |
Interface for implementing custom info bubbles for
MapMarker objects. |
Map.OnSchemeChangedListener |
Listener for
Map scheme changed events. |
Map.OnTransformListener |
Listener for
Map transform events. |
MapGesture |
Encapsulates all user interactions and touch gestures.
|
MapGesture.OnGestureListener |
Event Listener interface for gesture events.
|
MapMarker.OnDragListener |
Callback interface for drag events on
MapMarker objects. |
OnMapRenderListener |
Represents an abstract class listener to provide notification upon completion of a
Map rendering event. |
Class | Description |
---|---|
Map |
A
Map object represents a virtual model of the world. |
Map.PixelResult |
Result class for conversion of a GeoCoordinate to screen pixel coordinates.
|
Map.Scheme |
Represents a collection of schemes that the
Map class supports. |
MapCircle |
Represents a
MapObject in the shape of a circle. |
MapContainer |
Represents a container that determines the stacking order of objects on a
Map . |
MapFragment |
A fragment class that automatically creates a
Map and handles map UI interactions such as
panning and zooming. |
MapGesture.OnGestureListener.OnGestureListenerAdapter |
Default implementation for the OnGestureListener interface.
|
MapMarker |
Represents a marker used to display an icon at a geographical position on a map.
|
MapObject |
Represents a base class for all map-related objects that users can add to a
Map . |
MapPolygon |
A graphical representation of a
GeoPolygon to be rendered on a map. |
MapPolyline |
A graphical representation of a
GeoPolyline that
can be rendered on a map. |
MapRasterTileSource |
Represents an interface for a map raster tile source, used to render custom tile images on top of
a
Map . |
MapRasterTileSource.MapTileSystemHelper |
Represents a helper class for converting raster tile coordinates to other tile system values.
|
MapRasterTileSource.TileResult |
Result class for getting tile.
|
MapRoute | |
MapState |
Represents a composite class comprised of tilt, orientation, zoom level and
center point for a
Map . |
MapView |
Represents a map view.
|
OnMapRenderListener.OnMapRenderListenerAdapter |
Default implementation for the OnMapRenderListener interface.
|
PositionIndicator |
Represents a class for rendering a map marker to indicate the current position.
|
UrlMapRasterTileSourceBase |
Represents an abstract base class for URL map raster tile sources.
|
Enum | Description |
---|---|
Map.Animation |
Represents values that describe animation types for on-screen map movements.
|
Map.PixelResult.Error |
Error code for the computation of GeoCoordinate to screen pixel coordinate projection
|
MapObject.Type | |
MapRasterTileSource.TileResult.Error |
Error code for raster tile result.
|
MapRoute.RenderType |
Render classification of the route.
|
MapView.TileSize |
Tile resolution selection.
|
The mapping package provides classes, interfaces, and enumerations that display an interactive map, and related functionality that allows your application to create and add map content.
Some key classes and interfaces in this package are:
Map
MapGesture
MapFragment
MapObject
MapTransitLayer
Map
The Map
interface represents the interactive map itself.
Map schemes (e.g. Satellite, Terrain, etc.) can be changed as follows:
map.setMapScheme ( Map.Scheme.NORMAL_DAY );
Refer to the Map.Scheme
class for a description of
supported schemes.
A Map can contain visual objects, which are instantiated from
the children of the MapObject
class, such as:
MapCircle
MapMarker
MapPolygon
MapPolyline
MapRoute
A polygon, for example, can be drawn on the map as follows:
... MapPolygon polygon = new MapPolygon(); map.addMapObject( polygon );
Notice that the parent map object class, MapContainer
,
does not itself represent a visual object.
A MapContainer determines the stacking order (z-index ordering) of
objects on a map.
MapObjects and z-index ordering
The z-index of a MapObject specifies its stacking order within a Map. In general, an object with a higher z-index appears closer to the viewer than an object with a lower z-index.
The stack order of a Map is defined hierarchically, according to the following specifications:
Colors
Color values in this package are defined in terms of ARGB integer values, where the 24 least significant bits define red, green, and blue components while the eight most significant bits define the alpha value (0xAARRGGBB) of opacity, for which 0xFFRRGGBB is fully opaque and 0x00RRGGBB is fully transparent.
Note: if the target platform does not support transparency, the alpha value is ignored and the color is displayed as fully opaque.