IHotspotObjectSource

Extends ICustomizable.

Source of objects for the hotspot layers.

Constructor | Fields | Events | Methods

Constructor

IHotspotObjectSource()

Fields

Name

Type

Description

events

IEventManager

Event manager.

Inherited from IEventEmitter.

options

IOptionManager

Options manager.

Inherited from ICustomizable.

Events

Name

Description

optionschange

Change to the object options.

Inherited from ICustomizable.

Methods

Name

Description

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:

Parameter

Default value

Description

layer*

—

Type: hotspot.Layer

Hotspot layer.

tileNumber*

—

Type: Number[]

Tile coordinates.

zoom*

—

Type: Number

Zoom level.

callback*

—

Type: Function

Handler function.

* Mandatory parameter/option.