Class: ChangeEvent

H.map.ChangeEvent

new H.map.ChangeEvent (type, newValue, oldValue, modifiers)

This event signalizes map-related changes.

Name Type Description
type string

The type of the event

newValue Object

The view values after the change

oldValue Object

The view values before the change

modifiers H.math.BitMask.<!H.map.ChangeEvent.Type>

A bitmask indicating which values were changed.

Extends

Members

H.map.ChangeEvent.Type static

This enumeration specifies the bits each indicating a change in a specific property of the map.

Properties:
Name Description
SIZE

indicates change in map viewport size

POSITION

indicates change in map look-at data position

HEADING

indicates change in map look-at data heading

TILT

indicates change in map look-at data tilt

INCLINE

indicates change in map look-at data incline

ZOOM

indicates change in map look-at data zoom

BOUNDS

indicates change in map look-at data bounds

AT_TARGET number constant inherited

This property indicates that the event is being evaluated at the target.

BOUNDS number Deprecated : since 3.1.12.0 constant

This modifier indicates a change to the "bounds" property. Use H.map.ChangeEvent.Type instead.

BUBBLING_PHASE number constant inherited

This property identifies the current event phase as the bubbling phase.

CAPTURING_PHASE number constant inherited

This property identifies the current event phase as the capturing phase.

currentTarget * inherited

This property holds an object that receives notification of the event (via an attached listener).

defaultPrevented boolean inherited

This property holds a value indicating if preventDefault() was called on the current event.

eventPhase number inherited

This property indicates which phase of the event flow is being evaluated.

HEADING number Deprecated : since 3.1.12.0 constant

This modifier indicates a change to the "heading" property. Use H.map.ChangeEvent.Type instead.

INCLINE number Deprecated : since 3.1.12.0 constant

This modifier indicates a change to the "incline" property. Use H.map.ChangeEvent.Type instead.

newValue * inherited

This property holds the value of the property after it changed.

oldValue * inherited

This property holds the value of the property before it changed.

POSITION number Deprecated : since 3.1.12.0 constant

This modifier indicates a change to the "position" property. Use H.map.ChangeEvent.Type instead.

SIZE number Deprecated : since 3.1.12.0 constant

This modifier indicates a change to the "size" property. Use H.map.ChangeEvent.Type instead.

target * inherited

This property holds the object which triggered the event.

TILT number Deprecated : since 3.1.12.0 constant

This modifier indicates a change to the "tilt" property. Use H.map.ChangeEvent.Type instead.

type string inherited

This property holds the name of the dispatched event.

ZOOM number Deprecated : since 3.1.12.0 constant

This modifier indicates a change to the "zoom" property. Use H.map.ChangeEvent.Type instead.

Methods

preventDefault () inherited

This method sets a flag that can be used to prevent the default behavior when the even is fired.

stopPropagation () inherited

This method stops the propagation of the event.