Class IWMapOptions

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

IWMapOptions(map)

Method Detail

clone

IWMapOptions clone()

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()

getMaxWheelStep

 getMaxWheelStep()

getMouseWheelAction

number getMouseWheelAction()

getPlusMinusKeyAction

number getPlusMinusKeyAction()

getRightMouseAction

number getRightMouseAction()

getSize

IWSize getSize()

getSizeInUnit

Object getSizeInUnit()

resizeToContainer

resizeToContainer(container)

setApplicationCopyright

void setApplicationCopyright(applicationCopyright)

setArrowKeyAction

void setArrowKeyAction(action)

setAutoResize

setAutoResize(autoResize, container)

setBorderTiles

void setBorderTiles(tiles)

setDoubleClickAction

void setDoubleClickAction(action)

setLanguage

void setLanguage(language)

setLeftMouseAction

void setLeftMouseAction(action)

setMapTypes

void setMapTypes(types)

setMaxWheelStep

setMaxWheelStep(step)

setMouseWheelAction

void setMouseWheelAction(action)

setOptionsForStaticMap

setOptionsForStaticMap()

setPlusMinusKeyAction

void setPlusMinusKeyAction(action)

setRightMouseAction

void setRightMouseAction(action)

setSize

void setSize(size)

Source-Code Copyright 2007-2016 infoware GmbH - Documentation generated on Tue Nov 29 2022 14:20:15 GMT+0100 (MEZ)