Add group to the map.
Add group to the map.
Add group to the map.
Change the state of the specified button.
string button identifier
string of new state
Change the state of the specified button.
string button identifier
string of new state
Change the state of the specified button.
string button identifier
string of new state
Disable a button in the button group.
string identifier of button to disable
Disable a button in the button group.
string identifier of button to disable
Disable a button in the button group.
string identifier of button to disable
Removes this button group from the map.
Removes this button group from the map.
Removes this button group from the map.
Enable a button in the button group.
string identifier of button to enable
Enable a button in the button group.
string identifier of button to enable
Enable a button in the button group.
string identifier of button to enable
Removes this button group and recreates it on the map.
Removes this button group and recreates it on the map.
Removes this button group and recreates it on the map.
The LeafletMapButtonGroup disposable class is used to specify LeafletMapButtonOptions and location of button Groups.
var editFunc = () => { };
var cancelFunc = () => { };
var notEditing = { title: 'Edit', icon: 'fa-edit', stateName: 'notEditing', onClick: editFunc };
var editing = { title: 'Cancel Edit', icon: 'fa-undo', stateName: 'Editing', onClick: cancelFunc };
var editButton = { position: 'topright', id: 'Edit', type: 'replace', leafletClasses: true, states: [ notEditing, editing ] };
var groupOptions = { id: 'EditBar', position: 'topright', buttonOptions: [editButton] };
var buttonGroup = new LeafletMapButtonGroup(groupOptions);