Reference Source
public class | source

SimpleSidebar

Show a page that slides from the left or right of the map(without tab page)

See:

Constructor Summary

Public Constructor
public

constructor(options: Object)

Sidebar constructor

Member Summary

Public Members
public

options: *

Method Summary

Public Methods
public

hide(): Null

Hide sidebar

public

async initAsync(callback: function(): null): Promise<boolean>

Asynchronous initialization, it will run a method called sidebar_init if the method has been defined.

public

show(): Null

Show sidebar

Public Constructors

public constructor(options: Object) source

Sidebar constructor

Params:

NameTypeAttributeDescription
options Object

Config params

options.id String

The sidebar id (defined in html)

options.fileName String

The sidebar file name.

options.closeButton Boolean

If true, sidebar will have a close button.

options.position String

Slides from the left or right

options.type String

Sidebar size. value must be one of ['s', 'm', 'l'].

Public Members

public options: * source

Public Methods

public hide(): Null source

Hide sidebar

Return:

Null

public async initAsync(callback: function(): null): Promise<boolean> source

Asynchronous initialization, it will run a method called sidebar_init if the method has been defined.

Params:

NameTypeAttributeDescription
callback function(): null

Callback function will run after initialization

Return:

Promise<boolean>

public show(): Null source

Show sidebar

Return:

Null