com.neomades.maps.MapSettings |
Map Settings.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | MAP_TYPE_HYBRID | Satellite maps with a transparent layer of major streets. | |||||||||
int | MAP_TYPE_NONE | No base map tiles (Show nothing on Android ). |
|||||||||
int | MAP_TYPE_NORMAL | Basic maps. | |||||||||
int | MAP_TYPE_SATELLITE | Satellite maps with no labels. | |||||||||
int | MAP_TYPE_TERRAIN | Terrain maps. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract int |
getMapType()
Gets the type of map that is currently displayed.
| ||||||||||
abstract boolean |
isBuildingsEnabled()
Returns if the buildings are currently shown over the map.
| ||||||||||
abstract boolean |
isCompassEnabled()
Returns if the compass visual control is currently shown over the map.
| ||||||||||
abstract boolean |
isIndoorEnabled()
Returns if the indoor layers are currently shown on the map.
| ||||||||||
abstract boolean |
isMyLocationEnabled()
Returns if the user's location is displayed on the map.
| ||||||||||
abstract boolean |
isRotateGesturesEnabled()
Returns if the rotate gestures are currently permitted on the map.
| ||||||||||
abstract boolean |
isScrollGesturesEnabled()
Returns if the scroll gestures are currently permitted on the map.
| ||||||||||
abstract boolean |
isTiltGesturesEnabled()
Returns if the tilt gestures are currently permitted on the map.
| ||||||||||
abstract boolean |
isTrafficEnabled()
Returns if the traffic layer is shown or not.
| ||||||||||
abstract boolean |
isZoomControlsEnabled()
Returns if the zoom visual controls are currently shown over the map.
| ||||||||||
abstract boolean |
isZoomGesturesEnabled()
Returns if the zoom gestures (pinch or double tap) are currently permitted on
the map.
| ||||||||||
abstract MapSettings |
setBuildingsEnabled(boolean enabled)
Enables or disables the display of buildings on the map.
| ||||||||||
abstract MapSettings |
setCompassEnabled(boolean enabled)
Enables or disables the compass visual control, that is displayed over the
map.
| ||||||||||
abstract MapSettings |
setIndoorEnabled(boolean enabled)
Enables or disables indoor maps.
| ||||||||||
abstract MapSettings |
setMapType(int mapType)
Sets the map type currently shown by the map.
| ||||||||||
abstract MapSettings |
setMyLocationEnabled(boolean enabled)
Sets whether the map can try to retrieve and display the user's location.
| ||||||||||
abstract MapSettings |
setRotateGesturesEnabled(boolean enabled)
Sets whether the rotate gestures are enabled on the map.
| ||||||||||
abstract MapSettings |
setScrollGesturesEnabled(boolean enabled)
Sets whether the scroll gestures are enabled on the map.
| ||||||||||
abstract MapSettings |
setTiltGesturesEnabled(boolean enabled)
Sets whether the tilt gestures are enabled on the map.
| ||||||||||
abstract MapSettings |
setTrafficEnabled(boolean enabled)
Turns the traffic layer on or off.
| ||||||||||
abstract MapSettings |
setZoomControlsEnabled(boolean enabled)
Enables or disables the visual controls that let the user zoom in or zoom out
the map.
| ||||||||||
abstract MapSettings |
setZoomGesturesEnabled(boolean enabled)
Sets whether the zoom gestures (pinch or double tap) are enabled on the map.
|
Satellite maps with a transparent layer of major streets.
No base map tiles (Show nothing on Android
).
Basic maps.
Satellite maps with no labels.
Terrain maps.
Gets the type of map that is currently displayed.
See MAP_TYPE_NORMAL
, MAP_TYPE_SATELLITE
,
MAP_TYPE_TERRAIN
for possible values.
Returns if the buildings are currently shown over the map.
Returns if the compass visual control is currently shown over the map.
Returns if the indoor layers are currently shown on the map.
Available only for the Android
platform. Returns false for the
other platforms.
Returns if the user's location is displayed on the map.
Available only for the Android
platform. Returns false for the
other platforms.
Returns if the rotate gestures are currently permitted on the map.
Returns if the scroll gestures are currently permitted on the map.
Returns if the tilt gestures are currently permitted on the map.
Returns if the traffic layer is shown or not.
Returns if the zoom visual controls are currently shown over the map.
Always returns false
for the iOS
platform,
as there are no zoom controls over the map.
Returns if the zoom gestures (pinch or double tap) are currently permitted on the map.
Enables or disables the display of buildings on the map.
For the Android
platform, the
buildings are displayed only when the current map type is
MAP_TYPE_NORMAL
. For the iOS
platform,
the buildings display when the current map type
is MAP_TYPE_NORMAL
or
MAP_TYPE_TERRAIN
.
Enables or disables the compass visual control, that is displayed over the map. This control usually appears when the user rotates the map with a rotate gesture.
Enables or disables indoor maps. This lets the user see the indoor map of a building for example.
Available only for the Android
platform.
Sets the map type currently shown by the map.
mapType | the map type, which must be one of the following :
MAP_TYPE_HYBRID ,
MAP_TYPE_NONE ,
MAP_TYPE_NORMAL ,
MAP_TYPE_SATELLITE or
MAP_TYPE_TERRAIN |
---|
Sets whether the map can try to retrieve and display the user's location.
enabled | true to show the user position |
---|
Sets whether the rotate gestures are enabled on the map.
Sets whether the scroll gestures are enabled on the map.
Sets whether the tilt gestures are enabled on the map.
Turns the traffic layer on or off.
Available only for the Android
platform.
enabled | true to show traffic. |
---|
Enables or disables the visual controls that let the user zoom in or zoom out the map.
Available only for the Android
platform. The other platforms do not have any zoom controls.
Sets whether the zoom gestures (pinch or double tap) are enabled on the map.