Skip to content

AttributionControl ​

AttributionControl ​

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

继承Control
实现IControl

Examples ​

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

constructor ​

构造函数

参数 ​

参数名必选类型描述
options.compact否boolean | undefined是否启用压缩模式,默认为 false
options.customAttribution否string | Array<string> | undefined自定义归属信息,可以是字符串或字符串数组