Class IWMapOptions

A class representing a set of initialization options for the map.

Author: BRE, JAN

Constructor Summary
IWMapOptions(map)
            Creates a new options object.
 
Method Summary
 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.
 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.
 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.
 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.
 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.
 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

IWMapOptions(map)

Method Detail

getApplicationCopyright

String getApplicationCopyright()

getArrowKeyAction

number getArrowKeyAction()

getBorderTiles

number getBorderTiles()

getDoubleClickAction

number getDoubleClickAction()

getLanguage

String getLanguage()

getLeftMouseAction

number getLeftMouseAction()

getMapTypeByName

IWMapType getMapTypeByName(name)

getMapTypes

IWMapType[] getMapTypes()

getMouseWheelAction

number getMouseWheelAction()

getPlusMinusKeyAction

number getPlusMinusKeyAction()

getRightMouseAction

number getRightMouseAction()

getSize

IWSize getSize()

getSizeInUnit

Object getSizeInUnit()

setApplicationCopyright

void setApplicationCopyright(applicationCopyright)

setArrowKeyAction

void setArrowKeyAction(action)

setBorderTiles

void setBorderTiles(tiles)

setDoubleClickAction

void setDoubleClickAction(action)

setLanguage

void setLanguage(language)

setLeftMouseAction

void setLeftMouseAction(action)

setMapTypes

void setMapTypes(types)

setMouseWheelAction

void setMouseWheelAction(action)

setPlusMinusKeyAction

void setPlusMinusKeyAction(action)

setRightMouseAction

void setRightMouseAction(action)

setSize

void setSize(size)

Source-Code Copyright 2007-2009 infoware GmbH - Documentation generated by JsDoc Toolkit 1.4.1 on Tue Nov 28 2017 09:51:51 GMT+0100 (MEZ)