new Attribution
Create a new attribution to be associated with a layer source.
Example:
source: new ol.source.OSM({
attributions: [
new ol.Attribution(
'All maps © ' +
'<a href="http://www.opencyclemap.org/">OpenCycleMap</a>'),
ol.source.OSM.DATA_ATTRIBUTION
],
..
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
html |
string | The markup to use for display of the attribution. |
|
tileRanges |
Object.<string, Array.<ol.TileRange>>= |
<optional> |
(Optional) Tile ranges (FOR INTERNAL USE ONLY). |
- Source:
- attribution.js, line 26