Constructor
new Attribution(options, store)
Create an attribution control
Parameters:
| Name | Type | Description |
|---|---|---|
options |
object | Scale control options |
store |
object | NSPIT store |
Methods
addAttribution(uuid, data)
Add attribution information about a layer
Parameters:
| Name | Type | Description |
|---|---|---|
uuid |
number | Layer UUID |
data |
string | Attribution text |
addBasemapAttribution(uuid, data)
Add attribution information about the basemap
Parameters:
| Name | Type | Description |
|---|---|---|
uuid |
number | Layer UUID |
data |
string | Attribution text |
addOverviewMapAttribution(uuid, data)
Add attribution information about the layer of overview map
Parameters:
| Name | Type | Description |
|---|---|---|
uuid |
number | Layer UUID |
data |
string | Attribution text |
removeAttribution(uuid)
Remove attribution information about a layer
Parameters:
| Name | Type | Description |
|---|---|---|
uuid |
number | Layer UUID |
removeBasemapAttribution(uuid)
Remove attribution information about the basemap
Parameters:
| Name | Type | Description |
|---|---|---|
uuid |
number | Layer UUID |