Appearance
AttributionControl
AttributionControl
属性控件,可自定义地图copyright
Examples
javascript
const aCtrol = new DiMap.AttributionControl({
customAttribution: "Power by MapFE"
})
map.addControl(aCtrol, "bottom-right")constructor
构造函数
参数
| 参数名 | 必选 | 类型 | 描述 |
|---|---|---|---|
| options.compact | 否 | boolean | undefined | 是否启用压缩模式,默认为 false |
| options.customAttribution | 否 | string | Array<string> | undefined | 自定义归属信息,可以是字符串或字符串数组 |