Class: LogoControl

mapboxgl.supermap.LogoControl

The logo control class.It default not to display.

new mapboxgl.supermap.LogoControl(options)

Logo.js, line 9
Name Type Description
options Object

logo options.

Name Type Default Description
imageUrl string optional

URL of the logo image.

width string optional

Width of the logo image.

height string optional

Height of the logo image.

link string optional

The jump link of the logo image.

alt string 'SuperMap iClient' optional

Text displayed when the logo image invalid.

Example
(start code)
 map.addControl(new mapboxgl.supermap.LogoControl(),'bottom-right');
(end)

Methods

onAdd(){HTMLElement}

Logo.js, line 41

Add the logo control.

Returns:
Type Description
HTMLElement Return to the div that creates the logo.