Documentation
Reference
2.1.50 (current version)
collection
interactivityModel
Interfaces

IHotspotObjectSource

Extends ICustomizable.

Source of objects for the hotspot layers.

Constructor | Fields | Events | Methods

Constructor

IHotspotObjectSource()

Fields

NameTypeDescription
eventsIEventManager

Event manager.

Inherited from IEventEmitter.

optionsIOptionManager

Options manager.

Inherited from ICustomizable.

Events

NameDescription
optionschange

Change to the object options.

Inherited from ICustomizable.

Methods

NameDescription
cancelLastRequest()

Cancels the last request for data.

requestObjects(layer, tileNumber, zoom, callback)

Builds an array of IHotspotLayerObject objects corresponding to a particular layer, tile, and map zoom level, and passes it to the callback function.

Methods details

cancelLastRequest

{} cancelLastRequest()

Cancels the last request for data.

requestObjects

{} requestObjects(layer, tileNumber, zoom, callback)

Builds an array of IHotspotLayerObject objects corresponding to a particular layer, tile, and map zoom level, and passes it to the callback function.

Parameters:

ParameterDefault valueDescription
layer*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: hotspot.Layer

Hotspot layer.

tileNumber*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Number[]

Tile coordinates.

zoom*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Number

Zoom level.

callback*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Function

Handler function.

* Mandatory parameter/option.