SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class representing a set of initialization options for the map.
Constructor Summary | |
IWMapOptions(map)
Creates a new options object. |
Method Summary | |
IWMapOptions
|
clone()
Returns a new instance of this object. |
String
|
getApplicationCopyright()
Returns a application specific copyright notice which extends the copyright of the currently used map type. |
number
|
getArrowKeyAction()
Returns the map action which is bound to the arrow keys. |
number
|
getBorderTiles()
Returns the number of border tiles which are placed outside of the visible map area. |
number
|
getDoubleClickAction()
Returns the map action which is bound to double clicks. |
String
|
getLanguage()
Returns the ISO 639-1 code of the language used by the map and related classes. |
number
|
getLeftMouseAction()
Returns the map action which is bound to the left mouse button. |
IWMapType
|
getMapTypeByName(name)
Returns a map type by its name. |
IWMapType[]
|
getMapTypes()
Returns an array with all map types available for this map. |
|
getMaxWheelStep()
Returns the maximum zoom layers the mouse wheel can zoom at once. |
number
|
getMouseWheelAction()
Returns the map action which is bound to the mouse wheel. |
number
|
getPlusMinusKeyAction()
Returns the map action which is bound to the plus and minus keys. |
number
|
getRightMouseAction()
Returns the map action which is bound to the right mouse button. |
IWSize
|
getSize()
Returns the current size of the map in pixel. |
Object
|
getSizeInUnit()
Returns the current size of the map. |
|
resizeToContainer(container)
undocumented |
void
|
setApplicationCopyright(applicationCopyright)
Sets a copyright notice which is appended to the copyright of the currently used map type. |
void
|
setArrowKeyAction(action)
Sets the action for the arrow keys. disable this feature by setting the value of this attribute to IWMapOptions.CONTROL_NONE. |
|
setAutoResize(autoResize, container)
If auto resize is turned on, the map is fit to the window or container every time the window is resized. If parameter container is defined, the map is fit to this container. If parameter container is not defined, the map is fit to the window. |
void
|
setBorderTiles(tiles)
Sets the number of border tiles which are placed outside of the visible map area. |
void
|
setDoubleClickAction(action)
Sets the action for a double click on the right mouse button. IWMapOptions.CONTROL_ZOOM. You can disable this feature by setting the value of this attribute to IWMapOptions.CONTROL_NONE. |
void
|
setLanguage(language)
Sets the language used by the map and related classes. The default value is english (en). IWLanguageChangeEvent .
|
void
|
setLeftMouseAction(action)
Sets the action for the left mouse button. Other possible values are IWMapOptions.CONTROL_NONE and IWMapOptions.CONTROL_ZOOM. |
void
|
setMapTypes(types)
Sets the available map types of a map. Register an onmaptypeschange event listener to receive the IWMapTypesChangeEvent.
|
|
setMaxWheelStep(step)
Limits the wheel zoom to zoom only step zoom layers. limit that means step = Number.MAX_VALUE. step = 2 is a good limit. |
void
|
setMouseWheelAction(action)
Sets the action for the mouse wheel. want to disable this feature, then you have to set this attribute to IWMapOptions.CONTROL_NONE. |
|
setOptionsForStaticMap()
Sets all options to IWMapOptions.CONTROL_NONE |
void
|
setPlusMinusKeyAction(action)
Sets the action for the plus and minus key. You can disable this feature by setting the value of this attribute to IWMapOptions.CONTROL_NONE. |
void
|
setRightMouseAction(action)
Sets the action for the right mouse button. Other possible values are IWMapOptions.CONTROL_NONE and IWMapOptions.CONTROL_MOVE. |
void
|
setSize(size)
Resizes the map to the specified size. |
Constructor Detail |
IWMapOptions(map)
IWMap map
- the map
Method Detail |
IWMapOptions clone()
IWMapOptions
String getApplicationCopyright()
String
number getArrowKeyAction()
number
number getBorderTiles()
number
the number of border tiles.
number getDoubleClickAction()
number
String getLanguage()
String
number getLeftMouseAction()
number
IWMapType getMapTypeByName(name)
name
IWMapType
IWMapType[] getMapTypes()
IWMapType[]
getMaxWheelStep()
an integer
number getMouseWheelAction()
number
number getPlusMinusKeyAction()
number
number getRightMouseAction()
number
IWSize getSize()
IWSize
the map size in pixel
Object getSizeInUnit()
Object
Object.size: IWSize, Object.unit: String
resizeToContainer(container)
container
void setApplicationCopyright(applicationCopyright)
String applicationCopyright
- the copyright string
void
void setArrowKeyAction(action)
number action
- the new map action
void
setAutoResize(autoResize, container)
autoResize
container
void setBorderTiles(tiles)
number tiles
- the number of border tiles.
void
void setDoubleClickAction(action)
number action
- the new map action
void
void setLanguage(language)
onlanguagechange
event listener to receive the
IWLanguageChangeEvent
.
String language
- the ISO 639-1 code of the language, e.g. en, de, fr
void
void setLeftMouseAction(action)
number action
- the new map action
void
void setMapTypes(types)
onmaptypeschange
event listener to receive the IWMapTypesChangeEvent.
IWMapType[] types
- an array with all desired map types
void
setMaxWheelStep(step)
step
void setMouseWheelAction(action)
number action
- the new map action
void
setOptionsForStaticMap()
void setPlusMinusKeyAction(action)
number action
- the new map action
void
void setRightMouseAction(action)
number action
- the new map action
void
void setSize(size)
IWSize size
- the new size of the map
void