deCarta Android API Documentation - Copyright

com.decarta
Class CONFIG

java.lang.Object
  extended by com.decarta.CONFIG

public class CONFIG
extends java.lang.Object

Global static CONFIG class

You must configure this class with your user credentials for using deCarta web services


Field Summary
static int BACKGROUND_COLOR_CANVAS
          background color for canvas mode
static int BACKGROUND_COLOR_OPENGL
          background color for opengl mode
static int BACKGROUND_GRID_COLOR
          background grid line color
static int BORDER
          BORDER set the width of border between tiles.
static int CACHE_SIZE
          Enable file caching flag.
static java.lang.String clientName
          This is the configuration that will be used at runtime and will also be the one updated if the user changes the configuration
static java.lang.String clientPassword
           
static int COMPASS_PLACE_LOCATION
          place compass on the corner.
static java.lang.String configuration
           
static double DECELERATE_RATE
          log easing DECELERATE_RATE means speed will become 0.8 times of the previous speed every 33 miniseconds, which is approximately one frame.
static boolean DRAW_BY_OPENGL
          DRAW_BY_OPENGL sets whether to use OpenGL (or Canvas) for the rendering of the map view.
static boolean ENABLE_ROTATE
          enable rotate
static boolean ENABLE_TILT
          enable tilt
static int FADING_TIME
          specify fading time for map effect of fading in tiles when they load, default to 100 ms
static java.lang.String host
           
static java.lang.String IMAGE_FORMAT
           
static int LOAD_TIME_SAVE_TO_DB
          if ONLY_CACHE_NETWORK_SLOW, only tiles with loading time larger than LOAD_TIME_SAVE_TO_DB will be cached.
static int LOG_LEVEL
          Set Log level 0: no log 1: error 2: warn 3: info 4: debug
static boolean ONLY_CACHE_NETWORK_SLOW
          if enabled, only cache when the network is slow.
static boolean REAL_TIME_TRAFFIC
           
static java.lang.String REL
           
static java.lang.String SATELLITE_KEY
           
static boolean SNAP_TO_CLOSEST_ZOOMLEVEL
          enable if after pinch zooming, slide to closest integer zoom level
static int STATELESS_SESSION_ID
           
static int TILE_SIZE
          TILE_SIZE sets tile image size default is 256 x 256 pixels
static int TILE_THREAD_COUNT
          TILE_THREAD_COUNT for tile network thread pool default 6
static java.lang.String TILE_URL_SUFFIX
           
static java.lang.String transparentConfiguration
           
static int ZOOM_LOWER_BOUND
          sets the upper and lower bounds of the zoom controller possible range : 0-20.
static int ZOOM_UPPER_BOUND
           
 
Constructor Summary
CONFIG()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientName

public static java.lang.String clientName
This is the configuration that will be used at runtime and will also be the one updated if the user changes the configuration


clientPassword

public static java.lang.String clientPassword

host

public static java.lang.String host

configuration

public static java.lang.String configuration

transparentConfiguration

public static java.lang.String transparentConfiguration

TILE_SIZE

public static int TILE_SIZE
TILE_SIZE sets tile image size default is 256 x 256 pixels


TILE_THREAD_COUNT

public static int TILE_THREAD_COUNT
TILE_THREAD_COUNT for tile network thread pool default 6


CACHE_SIZE

public static int CACHE_SIZE
Enable file caching flag.


ONLY_CACHE_NETWORK_SLOW

public static boolean ONLY_CACHE_NETWORK_SLOW
if enabled, only cache when the network is slow.


LOAD_TIME_SAVE_TO_DB

public static int LOAD_TIME_SAVE_TO_DB
if ONLY_CACHE_NETWORK_SLOW, only tiles with loading time larger than LOAD_TIME_SAVE_TO_DB will be cached.


ZOOM_LOWER_BOUND

public static int ZOOM_LOWER_BOUND
sets the upper and lower bounds of the zoom controller possible range : 0-20. Bigger number means more ability to zoom in.


ZOOM_UPPER_BOUND

public static int ZOOM_UPPER_BOUND

SNAP_TO_CLOSEST_ZOOMLEVEL

public static boolean SNAP_TO_CLOSEST_ZOOMLEVEL
enable if after pinch zooming, slide to closest integer zoom level


DRAW_BY_OPENGL

public static boolean DRAW_BY_OPENGL
DRAW_BY_OPENGL sets whether to use OpenGL (or Canvas) for the rendering of the map view. OpenGL rendering will only benefit performance with Graphic Processing Units (GPUs)


FADING_TIME

public static int FADING_TIME
specify fading time for map effect of fading in tiles when they load, default to 100 ms


ENABLE_TILT

public static boolean ENABLE_TILT
enable tilt


ENABLE_ROTATE

public static boolean ENABLE_ROTATE
enable rotate


COMPASS_PLACE_LOCATION

public static int COMPASS_PLACE_LOCATION
place compass on the corner. The compass's real screen position is decided by the compass's offset relative to the corner. -1: no compass, 0: top-left, 1: top-right, 2: bottom-left, 3: bottom-right


BORDER

public static int BORDER
BORDER set the width of border between tiles. This is only for debug purpose.


LOG_LEVEL

public static int LOG_LEVEL
Set Log level 0: no log 1: error 2: warn 3: info 4: debug


DECELERATE_RATE

public static double DECELERATE_RATE
log easing DECELERATE_RATE means speed will become 0.8 times of the previous speed every 33 miniseconds, which is approximately one frame. valid value is (0,1). The bigger, the longer it will ease.


BACKGROUND_COLOR_CANVAS

public static int BACKGROUND_COLOR_CANVAS
background color for canvas mode


BACKGROUND_COLOR_OPENGL

public static int BACKGROUND_COLOR_OPENGL
background color for opengl mode


BACKGROUND_GRID_COLOR

public static int BACKGROUND_GRID_COLOR
background grid line color


TILE_URL_SUFFIX

public static java.lang.String TILE_URL_SUFFIX

STATELESS_SESSION_ID

public static final int STATELESS_SESSION_ID
See Also:
Constant Field Values

IMAGE_FORMAT

public static final java.lang.String IMAGE_FORMAT
See Also:
Constant Field Values

REAL_TIME_TRAFFIC

public static final boolean REAL_TIME_TRAFFIC
See Also:
Constant Field Values

REL

public static final java.lang.String REL
See Also:
Constant Field Values

SATELLITE_KEY

public static final java.lang.String SATELLITE_KEY
See Also:
Constant Field Values
Constructor Detail

CONFIG

public CONFIG()

deCarta Android API Documentation - Copyright

deCarta Android API Documentation - Copyright