Skip to content

AttributionControl

AttributionControl

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

继承Control
实现IControl

Examples

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

constructor

构造函数

参数

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