public class MapConfig
extends java.lang.Object
| Constructor and Description |
|---|
MapConfig(java.lang.String cachePath,
java.lang.String assetPath,
java.lang.String onlineMapsKey,
java.lang.String onlineTrafficKey)
Default constructor for map configuration.
|
| Modifier and Type | Method and Description |
|---|---|
MapConfig |
setStyleProperty(StyleProperty key,
java.lang.String value)
Property setter of map style.
|
public MapConfig(java.lang.String cachePath,
java.lang.String assetPath,
java.lang.String onlineMapsKey,
java.lang.String onlineTrafficKey)
cachePath - path to cache folder, for default config use "context.getCacheDir() + File.pathSeparator + MapConstants.CACHE_FILE.assetPath - path to assets folder, for default config use constant MapConstants.ASSET_PATH if you are not running custom Android version.onlineMapsKey - key for Maps API obtained from TomTom.onlineTrafficKey - key for Traffic API obtained from TomTom.public MapConfig setStyleProperty(StyleProperty key, java.lang.String value)
StyleProperty.key - property name from StyleProperty.value - string value of property.