new mapboxgl.supermap.LogoControl(options)
mapboxgl/control/Logo.js, line 5
Name | Type | Description |
---|---|---|
options |
Object |
logo控件配置项 imageUrl - {string} logo图片地址 width - {string} logo图片宽 height - {string} logo图片高 link - {string} 跳转链接 alt - {string} logo图片失效时显示文本 |
Example
(start code)
map.addControl(new mapboxgl.supermap.LogoControl(),'bottom-right');
(end)
Methods
-
onAdd(){div}
mapboxgl/control/Logo.js, line 37 -
添加一个logo
Returns:
Type Description div 返回创建的logo元素