|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ls.widgets.map.config.OfflineMapConfig
public class OfflineMapConfig
Constructor Summary | |
---|---|
OfflineMapConfig(OfflineMapConfig config)
|
|
OfflineMapConfig(java.lang.String rootMapFolder,
int imageWidth,
int imageHeight,
int tileSize,
int overlap,
java.lang.String imageFormat)
|
Method Summary | |
---|---|
GPSConfig |
getGpsConfig()
You can use GPSConfig in order to control GPS sensor settings. |
MapGraphicsConfig |
getGraphicsConfig()
You can use MapGraphicsConfig in order to configure the look of the position marker. |
java.lang.String |
getImageFormat()
|
int |
getImageHeight()
Returns original map image height in pixels |
Rect |
getImageRect()
|
int |
getImageWidth()
Returns original map image width in pixels |
java.lang.String |
getMapRootPath()
|
int |
getMaxZoomLevelLimit()
|
int |
getMinZoomLevelLimit()
|
int |
getOverlap()
|
int |
getTileSize()
Returns size of a tile in pixels. |
int |
getTouchAreaSize()
|
int |
getTrackballScrollStepX()
|
int |
getTrackballScrollStepY()
|
boolean |
isFlingEnabled()
|
boolean |
isMapCenteringEnabled()
|
boolean |
isPinchZoomEnabled()
|
boolean |
isSoftwareZoomEnabled()
|
boolean |
isZoomBtnsVisible()
|
void |
setFlingEnabled(boolean flingEnabled)
Controls inertial scrolling. |
void |
setMapCenteringEnabled(boolean enabled)
Controls the ability to center the map. |
void |
setMaxZoomLevelLimit(int maxZoomLevelLimit)
Sets max zoom level the user can zoom in to. |
void |
setMinZoomLevelLimit(int minZoomLevelLimit)
Sets minimal zoom level the user can zoom out to. |
void |
setPinchZoomEnabled(boolean pinchZoomEnabled)
Controls pinch zoom gesture. |
void |
setSoftwareZoomEnabled(boolean softwareZoomEnabled)
Controls the ability to use software zoom if there is no zoom levels left during zooming in. |
void |
setTouchAreaSize(int touchAreaSize)
Sets touch area size |
void |
setTrackballScrollStepX(int trackballScrollStepX)
Set's track ball scroll step by X axis. |
void |
setTrackballScrollStepY(int trackballScrollStepY)
Set's track ball scroll step by Y axis. |
void |
setZoomBtnsVisible(boolean zoomBtnsVisible)
Controls standard zoom buttons visibility. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OfflineMapConfig(java.lang.String rootMapFolder, int imageWidth, int imageHeight, int tileSize, int overlap, java.lang.String imageFormat)
public OfflineMapConfig(OfflineMapConfig config)
Method Detail |
---|
public int getImageWidth()
public int getImageHeight()
public Rect getImageRect()
public int getTileSize()
public int getOverlap()
public java.lang.String getImageFormat()
public boolean isFlingEnabled()
public void setFlingEnabled(boolean flingEnabled)
flingEnabled
- true to enable fling, false otherwise.public boolean isMapCenteringEnabled()
public void setMapCenteringEnabled(boolean enabled)
enabled
- - if set to true map will center itself if it is smaller than screen.public boolean isPinchZoomEnabled()
public void setPinchZoomEnabled(boolean pinchZoomEnabled)
pinchZoomEnabled
- - true to enable pinch zoom gesture, false otherwise.public boolean isZoomBtnsVisible()
public void setZoomBtnsVisible(boolean zoomBtnsVisible)
zoomBtnsVisible
- - true to make standard zoom buttons visible, false otherwise.public int getTrackballScrollStepX()
public void setTrackballScrollStepX(int trackballScrollStepX)
trackballScrollStepX
- scroll step in pixels.
java.lang.IllegalArgumentException
- if trackballScrollStepX < 0public int getTrackballScrollStepY()
public void setTrackballScrollStepY(int trackballScrollStepY)
trackballScrollStepY
- - scroll step in pixels.
java.lang.IllegalArgumentException
- if trackballScrollStepY < 0public int getMinZoomLevelLimit()
public void setMinZoomLevelLimit(int minZoomLevelLimit)
minZoomLevelLimit
- - represents zoom level number.
java.lang.IllegalArgumentException
- if minZoomLevelLimit < 0public int getMaxZoomLevelLimit()
public void setMaxZoomLevelLimit(int maxZoomLevelLimit)
maxZoomLevelLimit
- - zoom level number.
java.lang.IllegalArgumentException
- if maxZoomLevelLimit < 0public java.lang.String getMapRootPath()
public boolean isSoftwareZoomEnabled()
public void setSoftwareZoomEnabled(boolean softwareZoomEnabled)
softwareZoomEnabled
- - Set true if you want to use software zoom, false otherwise.public int getTouchAreaSize()
public void setTouchAreaSize(int touchAreaSize)
touchAreaSize
- - area size in pixels. Used when detecting objects that were hit by the user with a finger.
java.lang.IllegalArgumentException
- when touchAreaSize <= 0public GPSConfig getGpsConfig()
GPSConfig
in order to control GPS sensor settings.
Please note, that you need to configure the GPS sensor before calling MapWidget.setShowMyPosition(true);
GPSConfig
class.public MapGraphicsConfig getGraphicsConfig()
MapGraphicsConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |