Members
-
addresses :array
-
The addresses objects in the optimized order
Type:
- array
-
code :Number
-
The code of the response. Populated during errors, otherwise empty
Type:
- Number
-
company :string
-
The company for which this login request was successful
Type:
- string
-
devices :array
-
The list of devices belonging to this order id
Type:
- array
-
devices :array
-
The list of devices belonging to this order id
Type:
- array
-
devices :array
-
The list of devices belonging to this order id
Type:
- array
-
fileId :Number
-
The id of the requested file
Type:
- Number
-
fileId :Number
-
The Database ID for the file that was just created
Type:
- Number
-
files :Array.<Object>
-
The list of files as an array of objects
Type:
- Array.<Object>
-
flags :string
-
The flags returned by the server for this user. One example flag is "ADMIN" for users that have admin rights over the application
Type:
- string
-
IWSelectionMode
-
enum class for the mode how a new selection should integrate into current selection.
-
message
-
The detailed message that comes along with a response from the server
-
message
-
The detailed message that comes along with a response from the server
-
message
-
The detailed message that comes along with a response from the server
-
olr :String
-
The OLR code of the matched coordinates
Type:
- String
-
order :array
-
An array with the ids in the new order. Eg: [2, 3, 1, 4]
Type:
- array
-
orderId :number
-
The order these devices belong to
Type:
- number
-
orderId :number
-
The order these permissions belong to
Type:
- number
-
orders :array
-
The orders list
Type:
- array
-
payload :any
-
A payload to be sent through with the event so the user identifies the request
Type:
- any
-
payload :any
-
A payload to be sent through with the event so the user identifies the request
Type:
- any
-
payload :any
-
A payload to be sent through with the event so the user identifies the request
Type:
- any
-
permissions :array
-
The list of permissions belonging to this order id
Type:
- array
-
polyline :Array.<IWCoordinate>
-
The actual matched polyline (the matched polyline is based on actual topography)
Type:
- Array.<IWCoordinate>
-
responseHTTPCode :number
-
The HTTP code of the login request to the server
Type:
- number
-
responseHTTPCode :number
-
The HTTP code of the login request to the server
Type:
- number
-
responseHTTPCode :number
-
The HTTP code of the login request to the server
Type:
- number
-
result :object
-
The result of the action
Type:
- object
-
result :object
-
The result of the action
Type:
- object
-
results :null|Array
-
The results from the server
Type:
- null | Array
-
route :array
-
The GEOJson geometry of the route the device is currently driving on. It is null if the device isn't following any routes.
Type:
- array
-
segmentId :Number
-
The Database ID for the segment that was just added
Type:
- Number
-
segments :Array.<Object>
-
The segments contained in the requested file
Type:
- Array.<Object>
-
segments :Array.<Object>
-
The segments contained in the requested file
Type:
- Array.<Object>
-
sessionId :string
-
The session id, if the login request has been successfully completed. This id will be used to interact with all the other services
Type:
- string
-
status :string
-
The status of the request
Type:
- string
-
status :string
-
The status of the request
Type:
- string
-
status :string
-
The status of the request
Type:
- string
-
token :string
-
The login token, if the login request has been successfully completed. This token will be used to interact with all the other services
Type:
- string
-
username :string
-
The username for which this login request was successful
Type:
- string
Methods
-
IWManeuversEvent()
-
Creates a new IWManeuversEvent abstract event.
-
IWMaptripRemoteEvent()
-
Creates a new IWMaptripRemote abstract event.
-
IWOlrEvent()
-
Creates a new IWOlr abstract event.
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String
Events
-
onaddlayer
-
The addlayer event is fired when a layer is added to the map.
The event has a single property named layer (containing the IWLayerInterface object).
Register an event listener with IWEventManager.addListener(yourMap, 'onaddlayer', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
oncalculateroutestart
-
The oncalculateroutestart event is fired when the route calculation has started.
Register an event listener with IWEventManager.addListener(IWRoutingManager, 'oncalculateroutestart', yourHandlerMethod()); to receive this event.
Returns:
- Type
- void
-
onCenter
-
The onCenter event is fired after the map has been centered.
Register an event listener with IWEventManager.addListener(yourMapObject, 'oncenter', yourHandlerMethod(event)); to receive the IWMapCenterEvent.
Parameters:
Name Type Description event
IWMapCenterEvent the map centered event Returns:
- Type
- void
-
onclick
-
The onclick event is fired when the mouse button is clicked.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onclick', yourHandlerMethod(event)); to receive the IWMouseEvent.
Parameters:
Name Type Description event
IWMouseEvent the mouse event Returns:
- Type
- void
-
onCloseEnd
-
The onCloseEnd event is fired before the window control is hide.
Register an event listener with IWEventManager.addListener(theWindowControl, 'oncloseend', yourHandlerMethod()); to receive the event.
Returns:
- Type
- void
-
onCloseStart
-
The onCloseStart event is fired before the window control is hide.
Register an event listener with IWEventManager.addListener(theWindowControl, 'onclosestart', yourHandlerMethod()); to receive the event.
Returns:
- Type
- void
-
onclosestart
-
The onclosestart event is fired before the slide-in menu is closed.
Register an event listener with IWEventManager.addListener(theSlideInMenu, 'onclosestart', yourHandlerMethod(event)); to receive the event.
Returns:
- Type
- void
-
onconfirmpage
-
The onconfirmpage event is fired when the selection window of the geocoding results is shown
Register an event listener with IWEventManager.addListener(theRoutingControl, 'onconfirmpage', yourHandlerMethod(event)); to receive the event.
Parameters:
Name Type Description event
Object event Returns:
- Type
- void
-
onconfirmpage
-
The onconfirmpage event is fired when the selection window of the geocoding results is shown
Register an event listener with IWEventManager.addListener(theRoutingControl, 'onconfirmpage', yourHandlerMethod(event)); to receive the event.
Parameters:
Name Type Description event
Object event Returns:
- Type
- void
-
onCopyrightChange
-
The onCopyrightChange event is fired after the copyright text has been changed.
Register an event listener with
IWEventManager.addListener(yourMapObject, 'oncopyrightchange', yourHandlerMethod(event));
to receive theIWCoyprightChangedEvent
.Parameters:
Name Type Description event
IWCopyrightChangeEvent the event Returns:
- Type
- void
-
onDataReceive
-
The onDataReceive event is fired when data is received.
Register an event listener with IWEventManager.addListener(map.getLayerInfoManager(), 'ondatareceive', yourHandlerMethod(event)); to receive the event.
Parameters:
Name Type Description event
IWLayerInfoEvent the info event Returns:
- Type
- void
-
onDataReceive
-
The onDataReceive event is fired when data is received.
Register an event listener with IWEventManager.addListener(myReqLayer, 'ondatareceive', yourHandlerMethod(event)); to receive the event.
Parameters:
Name Type Description event
IWLayerInfoEvent the info event Returns:
- Type
- void
-
ondblclick
-
The ondblclick event is fired when the user double clicks with the mouse.
Register an event listener with IWEventManager.addListener(yourMapObject, 'ondblclick', yourHandlerMethod(event)); to receive the IWMouseEvent.
Parameters:
Name Type Description event
IWMouseEvent the mouse event Returns:
- Type
- void
-
ondestinationset
-
The ondestinationset event is fired when a new destination address is set.
Register an event listener with IWEventManager.addListener(IWRoutingManager, 'ondestinationset', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onDistanceChange
-
The onDistanceChange event is fired after the distance has been changed.
Register an event listener with IWEventManager.addListener(theMeasuringSegment, 'ondistancechange', yourHandlerMethod(event)); to receive the event.
Returns:
- Type
- void
-
onDrag
-
The onDrag event is fired when the object is dragged.
Register an event listener with IWEventManager.addListener(draggableObject, 'ondrag', yourHandlerMethod(event)); to recieve the event.
Parameters:
Name Type Description event
IWMouseEvent the on drag event Returns:
- Type
- void
-
onDragEnd
-
The onDragEnd event is fired after the object is dragged.
Register an event listener with IWEventManager.addListener(draggableObject, 'ondragend', yourHandlerMethod(event)); to recieve the event.
Parameters:
Name Type Description event
IWMouseEvent the event Returns:
- Type
- void
-
onDragStart
-
The onDragStart event is fired before the object is dragged.
Register an event listener with IWEventManager.addListener(draggableObject, 'ondragstart', yourHandlerMethod(event)); to recieve the IWMouseEvent.
Parameters:
Name Type Description event
IWMouseEvent the event Returns:
- Type
- void
-
onerror
-
The error event is fired when a geolocation attempt resulted in an error.
The event object has one property: code is a constant describing the error as defined in https://developer.mozilla.org/en-US/docs/Web/API/PositionError.
Register an event listener with IWEventManager.addListener(IWGeoLocationUtils, 'onerror', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onFormatNode
-
The
onFormatNode
event is fired before a node is appended to the tree.Register an event listener with
IWEventManager.addListener(yourTreeview, 'onformatnode', yourHandlerMethod(event));
to receive theIWFormatNodeEvent
.Parameters:
Name Type Description event
IWFormatNodeEvent the format node event Returns:
- Type
- void
-
ongeocode
-
The geocode event is fired when the address is geocoded.
Register an event listener with IWEventManager.addListener(theGeocoderClient, 'ongeocode', yourHandlerMethod(event)); to receive the event.
Parameters:
Name Type Description event
IWGeocodingEvent the geocoding event Returns:
- Type
- void
-
oninitialize
-
The initialize event is fired when the map has been loaded the first time.
Register an event listener with IWEventManager.addListener(yourMapObject, 'oninitialize', yourHandlerMethod(event)); to receive the event.
Parameters:
Name Type Description event
object the map initialized event Returns:
- Type
- void
-
oninitialize
-
The oninitialize event is triggered when the control is initialized.
Register an event listener with IWEventManager.addListener(theRoutingControl, 'oninitialize', yourHandlerMethod(event)); to receive the event.
Returns:
- Type
- void
-
oninitialize
-
The oninitialize event is triggered when the control is initialized.
Register an event listener with IWEventManager.addListener(theRoutingControl, 'oninitialize', yourHandlerMethod(event)); to receive the event.
Returns:
- Type
- void
-
oninputchecked
-
The oninputchecked event is fired whenever the input addresses for start, destination and interstations have been checked.
Register an event listener with IWEventManager.addListener(IWRoutingManager, 'oninputchecked', yourHandlerMethod(event)); to receive this event.
Event properties:
String addresses
- an object with lists of addresses for start, destionation and every interstation
Parameters:
Name Type Description event
Object an object with properties as described above Returns:
- Type
- void
-
oninterstationset
-
The oninterstationset event is fired when one or more interstations are set.
Register an event listener with IWEventManager.addListener(IWRoutingManager, 'oninterstationset', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onkeydown
-
The onkeydown event is fired when a key is pressed down.
Register an event listener with IWEventManager.addListener(yourKeyboardAdapter, 'onkeydown', yourHandlerMethod(event)); to receive this event.
Parameters:
Type Description IWKeyboardEvent Returns:
- Type
- void
-
onkeypress
-
The onkeypress event is fired when a key is pressed.
Register an event listener with IWEventManager.addListener(yourKeyboardAdapter, 'onkeypress', yourHandlerMethod(event)); to receive this event.
Parameters:
Type Description IWKeyboardEvent Returns:
- Type
- void
-
onkeyup
-
The onkeyup event is fired when a key is released.
Register an event listener with IWEventManager.addListener(yourKeyboardAdapter, 'onkeyup', yourHandlerMethod(event)); to receive this event.
Parameters:
Type Description IWKeyboardEvent Returns:
- Type
- void
-
onLanguageChange
-
The onLanguageChange event is fired after the language has been changed.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onlanguagechange', yourHandlerMethod(event)); to receive the IWLanguageChangeEvent.
Parameters:
Name Type Description event
IWLanguageChangeEvent the event Returns:
- Type
- void
-
onLanguagePackError
-
The onlanguagepackerror event is fired if the requested language pack failed to be loaded.
Register an event listener with IWEventManager.addListener(yourMultiLanguageSupportObject, 'onlanguagepackerror', yourHandlerMethod(event)); to receive the IWMultiLanguageSupportEvent.
Parameters:
Name Type Description event
Object status code (event.status) and status text (event.statusText) Returns:
- Type
- void
-
onLanguagePackLoad
-
The onlanguagepackload event is fired after the requested language pack has been loaded.
Register an event listener with IWEventManager.addListener(yourMultiLanguageSupportObject, 'onlanguagepackload', yourHandlerMethod(event)); to receive the IWMultiLanguageSupportEvent.
Parameters:
Name Type Description event
IWMultiLanguageSupportEvent the language support event Returns:
- Type
- void
-
onlocationfound
-
The locationfound event is fired when a location containing an address and a coordinate is available.
The event object has these properties:
Property Description Type coordinate The location IWCoordinate accuracy The accuracy of the coordinate (in meters) number distance The distance of the location and the found address (in meters), or 0 if no address was found number address The nearest address to the location IWAddress Register an event listener with IWEventManager.addListener(IWGeoLocationUtils, 'onlocationfound', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onlocationfound
-
The onlocationfound event is fired when a location for a user input was found.
Register an event listener with IWEventManager.addListener(yourControl, 'onlocationfound', yourHandlerMethod(event)); to receive the onlocationfound.
Event properties:
The event always contains a coordinate and an accuracy. The result depends on the type of input, i.e. the input handler used to determine the location. For the default handlers these values are returned:- Locate button clicked: coordinate (the location), accuracy (accuracy of the location), address (the next address to this location), distance (between the location and the address)
- Address string entered: coordinate, accuracy (always 0), distance (always 0), address (the geocoded input)
- Coordinate entered: coordinate, accuracy (always 0)
Returns:
- Type
- void
-
onMapControlChange
-
The onMapControlChange event is fired after the map control has been changed.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onmapcontrolchange', yourHandlerMethod(event)); to receive the IWMapControlChangeEvent.
Parameters:
Name Type Description event
IWMapControlChangeEvent the event Returns:
- Type
- void
-
onMapTypeAvailabilityChange
-
The onMapTypeAvailabilityChange event is fired after the availability of a map type has been changed.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onmaptypeavailabilitychange', yourHandlerMethod(event)); to receive the IWMapTypesChangeEvent.
Parameters:
Name Type Description event
IWMapTypeAvailabilityChangeEvent the event Returns:
- Type
- void
-
onMapTypeChange
-
The onMapTypeChange event is fired after the map type has been changed.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onmaptypechange', yourHandlerMethod(event)); to receive the IWMapTypeChangeEvent.
Parameters:
Name Type Description event
IWMapTypeChangeEvent the event Returns:
- Type
- void
-
onMapTypeChangeStart
-
The onMapTypeChangeStart event is fired before the map type changed.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onmaptypechangestart', yourHandlerMethod(event)); to receive the IWMapTypeChangeEvent.
Parameters:
Name Type Description event
IWMapTypeChangeEvent the event Returns:
- Type
- void
-
onMapTypesChange
-
The onMapTypesChange event is fired after the map types have been changed.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onmaptypeschange', yourHandlerMethod(event)); to receive the IWMapTypesChangeEvent.
Parameters:
Name Type Description event
IWMapTypesChangeEvent the event Returns:
- Type
- void
-
onmoduleload
-
The onmoduleload event is fired when a module is loaded.
Event properties: name: the name of the module
Register an event listener with IWEventManager.addListener(IWLoader, 'onmoduleload', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onMouseDown
-
The onMouseDown event is fired when the mouse button is pressed.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onmousedown', yourHandlerMethod(event)); to receive the IWMouseEvent.
Parameters:
Name Type Description event
IWMouseEvent the mouse event Returns:
- Type
- void
-
onMouseStop
-
The onMouseStop event is fired when the mouse has been stopped.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onmousestop', yourHandlerMethod(event)); to receive the IWMouseEvent.
Parameters:
Name Type Description event
IWMouseEvent the mouse event Returns:
- Type
- void
-
onmouseup
-
The onmouseup event is fired when the mouse button is released.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onmouseup', yourHandlerMethod(event)); to receive the IWMouseEvent.
Parameters:
Name Type Description event
IWMouseEvent the mouse event Returns:
- Type
- void
-
onmousewheel
-
The onmousewheel event is fired when the mouse wheel is used in the specified container.
Register an event listener with IWEventManager.addListener(yourMouseWheelAdapter, 'onmousewheel', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onMove
-
The onMove event is continuously fired while the map is moved around.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onmove', yourHandlerMethod(event)); to receive the IWMoveEvent.
Parameters:
Name Type Description event
the move event Returns:
- Type
- void
-
onMoveEnd
-
The onMoveEnd event is fired when the map has been moved.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onmoveend', yourHandlerMethod(event)); to receive the IWMoveEvent.
Parameters:
Name Type Description event
the move event Returns:
- Type
- void
-
onMoveStart
-
The onMoveStart event is fired before the map is moved.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onmovestart', yourHandlerMethod(event)); to receive the event object.
Parameters:
Name Type Description event
object the move event Returns:
- Type
- void
-
onNodeClick
-
The
onNodeClick
event is fired after a node has been clicked.Register an event listener with
IWEventManager.addListener(yourTreeview, 'onnodeclick', yourHandlerMethod(event));
to receive theIWTreeNodeClickedEvent
.Parameters:
Name Type Description event
IWTreeNodeClickedEvent the node click event Returns:
- Type
- void
-
onOpenEnd
-
The onOpenEnd is fired after the window control is shown.
Register an event listener with IWEventManager.addListener(theWindowControl, 'onopenend', yourHandlerMethod()); to receive the event.
Returns:
- Type
- void
-
onOpenStart
-
The onOpenStart event is fired before the window control is shown.
Register an event listener with IWEventManager.addListener(theWindowControl, 'onopenstart', yourHandlerMethod()); to receive the event.
Returns:
- Type
- void
-
onopenstart
-
The onopenstart event is fired before the slide-in menu is opened.
Register an event listener with IWEventManager.addListener(theSlideInMenu, 'onopenstart', yourHandlerMethod(event)); to receive the event.
Returns:
- Type
- void
-
onoptionsset
-
The onoptionsset event is fired when new route options are set.
Register an event listener with IWEventManager.addListener(IWRoutingManager, 'onoptionsset', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onorderchange
-
The onorderchange event is fired when the list is reordered by the user.
Register an event listener with IWEventManager.addListener(yourSortableList, 'onorderchange', yourHandlerMethod(event)); to receive this event.
Properties: items an array of list items in the new order
Parameters:
Name Type Description event
object an object containing properties as described above Returns:
- Type
- void
-
onoverlayinvisible
-
The onoverlayinvisible event is fired when the overlays are not rendered because of e.g. an optical zoom.
Register an event listener with IWEventManager.addListener(yourMap, 'onoverlayinvisible', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onoverlayvisible
-
The onoverlayvisible event is fired when the overlays are rendered visible because there is a valid projection and no optical zoom in progress.
Register an event listener with IWEventManager.addListener(yourMap, 'onoverlayvisible', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onpoiinitialize
-
The poiinitialize event is fired when a POI catalogue is initialized. You can use this to initialize a POI selection control etc.
Register an event listener with IWEventManager.addListener(IWPoiUtils, 'onpoiinitialize', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onPositionChange
-
The onPositionChange event is fired after the coordinate of the overlay object has been changed.
Register an event listener with IWEventManager.addListener(overlayObject, 'onpositionchange', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onpositionchange
-
The positionchange event is fired when a new position is available.
The event object has two properties: coordinate is an IWCoordinate and accuracy the radius in meter.
Register an event listener with IWEventManager.addListener(IWGeoLocationUtils, 'onpositionchange', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onprojection
-
Is fired when the given coordinate is project to the other projection.
Register an event listener with IWEventManager.addListener(yourProjectionClient, 'onprojection', yourHandlerMethod(event)); to receive this events.
Parameters:
Name Type Description event
IWProjection Returns:
- Type
- void
-
onProjectionInitialize
-
The onProjectionInitialize event is fired after the projection for the current map type has been initialized.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onprojectioninitialize', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onProjectionInvalid
-
The onProjectionInvalid event is fired before the projection for the current map type is loaded.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onprojectioninvalid', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onredraw
-
The onredraw event is triggered on GUI changes. This happens when a collapsed section is shown, an interstation is added or removed, the driving directions are displayed and so on. The event has a property
action
with the cause of the event.Register an event listener with IWEventManager.addListener(theRoutingControl, 'onredraw', yourHandlerMethod(event)); to receive the event.
Parameters:
Name Type Description event
Object Returns:
- Type
- void
-
onredraw
-
The onredraw event is triggered on GUI changes. This happens when a collapsed section is shown, an interstation is added or removed, the driving directions are displayed and so on. The event has a property
action
with the cause of the event.Register an event listener with IWEventManager.addListener(theRoutingControl, 'onredraw', yourHandlerMethod(event)); to receive the event.
Parameters:
Name Type Description event
Object Returns:
- Type
- void
-
onRedrawEnd
-
The onRedrawEnd event is fired after the overlay has been redrawed.
Register an event listener with IWEventManager.addListener(overlayObject, 'onredrawend', yourHandlerMethod()); to receive this event.
Notice that no event object will be passed through the handler method.
Returns:
- Type
- void
-
onRedrawStart
-
The onRedrawStart event is fired before the overlay is redrawed.
Register an event listener with IWEventManager.addListener(overlayObject, 'onredrawstart', yourHandlerMethod()); to receive this event.
Notice that no event object will be passed through the handler method.
Returns:
- Type
- void
-
onRegister
-
The onRegister event is fired when an event is registered.
Event is used internal, use with caution!
Parameters:
Name Type Description event
IWRequestLayerEvent the request layer event Returns:
- Type
- void
-
onremove
-
The onremove is fired when a layer is removed from map.
Register an event listener with IWEventManager.addListener(myLayer, 'onremove', yourHandlerMethod()); to receive the event.
Returns:
- Type
- void
-
onremovelayer
-
The removelayer event is fired when a layer is removed from the map.
The event has a single property named layer (containing the IWLayerInterface object).
Register an event listener with IWEventManager.addListener(yourMap, 'onremovelayer', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onreset
-
The onreset event is fired when the reset button is pressed.
Register an event listener with IWEventManager.addListener(theMeasuringInfoWindowControl, 'onreset', yourHandlerMethod()); to receive the event.
Returns:
- Type
- void
-
onResize
-
The onResize event is fired after the map has been resized.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onresize', yourHandlerMethod(event)); to receive this event.
Parameters:
Name Type Description event
IWResizeEvent the resize event Returns:
- Type
- void
-
onreversegeocode
-
The reversegeocode event is fired when the coordinate is matched to addresses.
Register an event listener with IWEventManager.addListener(theRouterClient, 'onreversegeocode', yourHandlerMethod(event)); to receive the event.
Parameters:
Name Type Description event
IWReverseGeocodingEvent the reverse geocoding event Returns:
- Type
- void
-
onRoute
-
The onRoute event is fired when the route has been calculated.
Register an event listener with IWEventManager.addListener(theRouterClient, 'onroute', yourHandlerMethod(event)); to receive the event.
Parameters:
Name Type Description event
object the routing event Returns:
- Type
- void
-
onroute
-
The onroute event is fired when a route has been calculated.
Register an event listener with IWEventManager.addListener(IWRoutingManager, 'onroute', yourHandlerMethod(event)); to receive this event.
Event properties:
boolean success
- true if a route was calculated, false otherwise
IWBounds bounds
- the bounds of the route geometry
IWRoute[] routes
- the suggested route and the alternatives
IWRoute route
- just the suggested route (for backward compatibility)
object json
- the parsed JSON response
string status
- a status text
Parameters:
Name Type Description event
Object an object with properties as described above Returns:
- Type
- void
-
onrouteclear
-
The onrouteclear event is fired when the route is cleared. The difference to onroutehide is that start, destination and interstations not reset in this case ("delete route").
Register an event listener with IWEventManager.addListener(IWRoutingManager, 'onrouteclear', yourHandlerMethod()); to receive this event.
Returns:
- Type
- void
-
onroutedragend
-
The onroutedragend event is fired when a user has finished dragging a route.
Register an event listener with IWEventManager.addListener(IWRoutingManager, 'onroutedragend', yourHandlerMethod()); to receive this event.
Returns:
- Type
- void
-
onroutedragstart
-
The onroutedragstart event is fired when a user starts to drag a route.
Register an event listener with IWEventManager.addListener(IWRoutingManager, 'onroutedragstart', yourHandlerMethod()); to receive this event.
Returns:
- Type
- void
-
onroutehide
-
The onroutehide event is fired when the route is hidden. The difference to onrouteclear is that start, destination and interstations are not reset in this case ("edit route").
Register an event listener with IWEventManager.addListener(IWRoutingManager, 'onroutehide', yourHandlerMethod()); to receive this event.
Returns:
- Type
- void
-
onroutehighlight
-
The onroutehighlight event is fired when the alternative routes are re-drawn to highlight an alternative.
Register an event listener with IWEventManager.addListener(IWRoutingManager, 'onroutehighlight', yourHandlerMethod()); to receive this event.
Returns:
- Type
- void
-
onstartset
-
The onstartset event is fired when a new start address is set.
Register an event listener with IWEventManager.addListener(IWRoutingManager, 'onstartset', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onStateChange
-
The onStateChange event is fired if the marking of the node has changed.
Register an event listener with IWEventManager.addListener(node, 'onstatechange', yourHandlerMethod()); to receive the event.
Returns:
- Type
- void
-
onUnregister
-
The onUnregister event is fired when an event is unregistered.
Event is used internal, use with caution!
Parameters:
Name Type Description event
IWRequestLayerEvent the request layer event Returns:
- Type
- void
-
onupdate
-
The update event is fired when properties like URL or hotspot of an icon change.
Register an event listener with IWEventManager.addListener(yourIcon, 'onupdate', yourHandlerMethod(event)); to receive this event.
Returns:
- Type
- void
-
onZoom
-
The onZoom event is fired after the new zoomlevel has been calculated.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onzoom', yourHandlerMethod(event)); to receive the IWZoomEvent.
Parameters:
Name Type Description event
IWZoomEvent the zoom event Returns:
- Type
- void
-
onZoomEnd
-
The onZoomEnd event is fired after the map has been zoomed.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onzoomend', yourHandlerMethod(event)); to receive the IWZoomEvent.
Parameters:
Name Type Description event
IWZoomEvent the zoom event Returns:
- Type
- void
-
onZoomStart
-
The onZoomStart event is fired before the map is zoomed.
Register an event listener with IWEventManager.addListener(yourMapObject, 'onzoomstart', yourHandlerMethod(event)); to receive the IWZoomEvent.
Returns:
- Type
- void