IHotspotLayerObject

Extends ICustomizable, IDomEventEmitter.

Interface for the hotspot layer object.

Note

A figure describing the hotspot should be set in global pixel coordinates.

Constructor | Fields | Events | Methods

Constructor

IHotspotLayerObject()

Fields

Name

Type

Description

events

IEventManager

Event manager.

Inherited from IDomEventEmitter.

options

IOptionManager

Options manager.

Inherited from ICustomizable.

Events

Name

Description

click

Single left-click on the object. When using, keep in mind that mouse events are emulated when a touch screen is used. Instance of the MapEvent class. More information is available in domEvent.manager.

Inherited from IDomEventEmitter.

contextmenu

Calls the element's context menu. When using, keep in mind that mouse events are emulated when a touch screen is used. Instance of the MapEvent class. More information is available in domEvent.manager.

Inherited from IDomEventEmitter.

dblclick

Double left-click on the object. When using, keep in mind that mouse events are emulated when a touch screen is used. Instance of the MapEvent class. More information is available in domEvent.manager.

Inherited from IDomEventEmitter.

mousedown

Pressing the mouse button over the object. When using, keep in mind that mouse events are emulated when a touch screen is used. Instance of the MapEvent class. More information is available in domEvent.manager.

Inherited from IDomEventEmitter.

mouseenter

Pointing the cursor at the object. When using, keep in mind that mouse events are emulated when a touch screen is used. Instance of the MapEvent class. More information is available in domEvent.manager.

Inherited from IDomEventEmitter.

mouseleave

Moving the cursor off of the object. When using, keep in mind that mouse events are emulated when a touch screen is used. Instance of the MapEvent class. More information is available in domEvent.manager.

Inherited from IDomEventEmitter.

mousemove

Moving the cursor over the object. When using, keep in mind that mouse events are emulated when a touch screen is used. Instance of the MapEvent class. More information is available in domEvent.manager.

Inherited from IDomEventEmitter.

mouseup

Letting go of the mouse button over an object. When using, keep in mind that mouse events are emulated when a touch screen is used. Instance of the MapEvent class. More information is available in domEvent.manager.

Inherited from IDomEventEmitter.

multitouchend

End of multitouch. This event is only available on devices that support multitouch. Returns an implementation of the IMultiTouchEvent interface.

Inherited from IDomEventEmitter.

multitouchmove

Repeating event during multitouch. This event is only available on devices that support multitouch. Returns an implementation of the IMultiTouchEvent interface with information about touches. Defines the touches property, which contains a list of touches. Every touch is described by an object that contains the following fields:

  • clientX - X coordinate of the touch relative to the viewable area of the browser.
  • clientY - Y coordinate of the touch relative to the viewable area of the browser.
  • pageX - X coordinate of the touch relative to the beginning of the document.
  • pageY - Y coordinate of the touch relative to the beginning of the document.

Inherited from IDomEventEmitter.

multitouchstart

Start of multitouch. This event is only available on devices that support multitouch. Returns an implementation of the IMultiTouchEvent interface with information about touches. Defines the touches property, which contains a list of touches. Every touch is described by an object that contains the following fields:

  • clientX - X coordinate of the touch relative to the viewable area of the browser.
  • clientY - Y coordinate of the touch relative to the viewable area of the browser.
  • pageX - X coordinate of the touch relative to the beginning of the document.
  • pageY - Y coordinate of the touch relative to the beginning of the document.

Inherited from IDomEventEmitter.

optionschange

Change to the object options.

Inherited from ICustomizable.

shapechange

Change to the shape that defines a hotspot. Instance of the Event class.

wheel

Mouse wheel scrolling. When using, keep in mind that mouse events are emulated when a touch screen is used. Instance of the MapEvent class. More information is available in domEvent.manager.

Inherited from IDomEventEmitter.

Methods

Name

Returns

Description

getGeometry()

Object

Returns the actual geometry of an object.

getHotspot()

IHotspot

Returns object describing a hotspot.

getId()

Number

Returns object ID.

getProperties()

Object

Returns object data.

setGeometry(geometry)

Defines the actual geometry of the object.

setId(id)

Sets the object ID.

setProperties(properties)

Sets the object's data.

Events details

shapechange

Change to the shape that defines a hotspot. Instance of the Event class.

Methods details

getGeometry

{Object} getGeometry()

Returns the actual geometry of an object.

getHotspot

{IHotspot} getHotspot()

Returns object describing a hotspot.

getId

{Number} getId()

Returns object ID.

getProperties

{Object} getProperties()

Returns object data.

setGeometry

{} setGeometry(geometry)

Defines the actual geometry of the object.

Parameters:

Parameter

Default value

Description

geometry*

—

Type: Object

The actual geometry of an object.

* Mandatory parameter/option.

setId

{} setId(id)

Sets the object ID.

Parameters:

Parameter

Default value

Description

id*

—

Type: Number

Object ID.

* Mandatory parameter/option.

setProperties

{} setProperties(properties)

Sets the object's data.

Parameters:

Parameter

Default value

Description

properties*

—

Type: Object

Object data.

* Mandatory parameter/option.