Class: Attribution

ol. Attribution

experimental new ol.Attribution(options)

Create a new attribution to be associated with a layer source.

Example:

source: new ol.source.OSM({
  attributions: [
  new ol.Attribution({
    html: 'All maps © ' +
        '<a href="http://www.opencyclemap.org/">OpenCycleMap</a>'
  }),
  ol.source.OSM.DATA_ATTRIBUTION
],
..
Name Type Description
options

Attribution options.

Name Type Description
html string

HTML markup for this attribution.

tileRanges Object.<string, Array.<ol.TileRange>> | undefined

Tile ranges (FOR INTERNAL USE ONLY).