SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A control element which allows the user to zoom in and out the map
Slider style:
IWSliderControl.STYLE_FULL shows a full slider all the time
IWSliderControl.STYLE_COMPACT shows nothing but the zoom in / zoom out buttons
IWSliderControl.STYLE_COMPACT_BIRDS_VIEW shows a compact slider in bird's eye view, the full slider otherwise
Constructor Summary | |
IWSliderControl(map, style)
Creates a new slider control. |
Method Summary | |
void
|
afterAppend()
|
String
|
getSliderButtonImage()
Returns the path to the image used by the slider button. |
String
|
getSliderImage()
Returns the path to the image used by the slider. |
number
|
getValue(round)
Returns the current value of the slider |
void
|
setCompactSliderImages(imagePath)
Sets the path to the image used by the slider in compact mode (used for bird's eye views). |
void
|
setSliderButtonImage(imagePath)
Sets the path to the image used by the slider button. |
void
|
setSliderImage(imagePath)
Sets the path to the image used by the slider. |
void
|
setValue(value)
Sets the position of the slider |
String
|
toString()
Returns a string representation of this slider control. |
Constructor Detail |
IWSliderControl(map, style)
IWMap map
- the map
Number style
- the style of the slider. use the constants defined above
Method Detail |
void afterAppend()
void
String getSliderButtonImage()
String
String getSliderImage()
String
number getValue(round)
round
number
the current value of the slider
void setCompactSliderImages(imagePath)
String imagePath
void
void setSliderButtonImage(imagePath)
String imagePath
void
void setSliderImage(imagePath)
String imagePath
void
void setValue(value)
number value
- The value the slider shall represent
void
String toString()
String