OpenLayers.Control.Attribution

The attribution control adds attribution from layers to the map display.  It uses ‘attribution’ property of each layer.

Inherits from

Summary
OpenLayers.Control.AttributionThe attribution control adds attribution from layers to the map display.
Properties
separator{String} String used to separate layers.
template{String} Template for the global attribution markup.
layerTemplate{String} Template for the layer specific attribution.
Constructor
OpenLayers.Control.Attribution

Properties

separator

{String} String used to separate layers.

template

{String} Template for the global attribution markup.  This has to include the substring “${layers}”, which will be replaced by the layer specific attributions, separated by separator.  The default is “${layers}”.

layerTemplate

{String} Template for the layer specific attribution.  This has to include the substrings “${href}” and “${title}”, which will be replaced by the layer specific attribution object properties.  The default is ‘<a href=”${href}” target=”_blank”>${title}</a>’.

Constructor

OpenLayers.Control.Attribution

Parameters

options{Object} Options for control.
Controls affect the display or behavior of the map.
{String} String used to separate layers.
Close