Skip to content

AttributionControl

AttributionControl

属性控件,可自定义地图copyright

继承Control
实现IControl

Examples

javascript
const aCtrol = new AttributionControl({
 customAttribution: "Power by MapFE"
})
map.addControl(aCtrol, "bottom-right")

constructor

构造函数

Parameters

  • options {compact: (boolean | undefined)?, customAttribution: (string | Array<string> | undefined)?}? 可选参数对象。

    • options.compact 是否启用压缩模式,默认为 false。
    • options.customAttribution 自定义归属信息,可以是字符串或字符串数组。