util.cursor.Manager
Cursor manager.
Constructor | Fields | Events | Methods
Constructor
util.cursor.Manager(element)
Manager for cursors over a DOM element. Uses direct assignment via style.cursor.
Parameters:
Parameter |
Default value |
Description |
— |
Type: HTMLElement The DOM element that cursors are being set for. |
* Mandatory parameter/option.
Example:
// putting the "arrow" cursor over the map
var cursor = map.cursors.push('arrow');
setTimeout(function () {
// setting a different key for the cursor after 5 seconds
cursor.setKey('grabbing');
setTimeout(function () {
// removing this cursor from the map after 5 more seconds
cursor.remove();
}, 5000);
}, 5000);
Fields
Name |
Type |
Description |
Event manager for the cursor manager. |
Events
Name |
Description |
Change to the cursor. |
Methods
Name |
Returns |
Description |
Sets a new cursor and writes it to the stack of cursors for the object. |
Fields details
events
{event.Manager} events
Event manager for the cursor manager.
Events details
change
Change to the cursor.
Methods details
push
{util.cursor.Accessor} push(key)
Sets a new cursor and writes it to the stack of cursors for the object.
Returns object providing access to the cursor added to the map.
Parameters:
Parameter |
Default value |
Description |
|
— |
Type: String Cursor. Acceptable values:
|
* Mandatory parameter/option.
Mandatory parameter/option.