Documentation
Reference
2.1.55 (current version)
collection
interactivityModel
Interfaces

ICopyrightsProvider

Extends IEventEmitter.

Copyright information provider.

Constructor | Fields | Events | Methods

Constructor

ICopyrightsProvider()

Fields

NameTypeDescription
eventsIEventManager

Event manager.

Inherited from IEventEmitter.

Events

NameDescription
copyrightschange

Event for changes to copyright information.

Methods

NameReturnsDescription
getCopyrights(coords, zoom)

vow.Promise

Requests information about copyrights at the specified point with the specified zoom.

remove()

Removes copyright information that was added via this object.

setCopyrights(copyrights)

Sets a new value for the copyright information that was added via this object.

Events details

copyrightschange

Event for changes to copyright information.

Methods details

getCopyrights

{vow.Promise} getCopyrights(coords, zoom)

Requests information about copyrights at the specified point with the specified zoom.

Returns Promise that will be resolved and will pass as a result an array of strings or DOM elements with information about copyrights.

Parameters:

ParameterDefault valueDescription
coords*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Number[]

The point on the map that copyright information is being requested for.

zoom*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Number

The zoom level that copyright information is being requested for.

* Mandatory parameter/option.

remove

{} remove()

Removes copyright information that was added via this object.

setCopyrights

{} setCopyrights(copyrights)

Sets a new value for the copyright information that was added via this object.

Parameters:

ParameterDefault valueDescription
copyrights*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: String[][][]|HTMLElement[][]|String[]|HTMLElement[]

Copyright information.

* Mandatory parameter/option.