Maps SDK for Web
tt.MessageBox
Message box is used to show a message over the map.
Constructor
tt.MessageBox([options])
Example
var html = '<h1>Message</h1>';
var messageBox = new MessageBox({html: html});
map.addControl(messageBox);
Parameters
Name | Description |
---|---|
options
Object default:None |
|
options.closeable
Boolean default:true |
Show the close button. |
options.closeAfter
Number default:0 |
The number of milliseconds after which the control will be automatically
closed. If the value is 0 it will not be closed automatically which is the default behaviour.
|
options.html
HTMLElement default:None |
HTMLElement to be a content of the message box. |
options.content
String default:None |
Text to be a content of the message box. |