Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LeafletMapButtonGroupOptions

The LeafletMapButtonGroupOptions interface is used to LeafletMapButtonOptions and location of button Groups.

example



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] };

Hierarchy

  • LeafletMapButtonGroupOptions

Index

Properties

buttonOptions

buttonOptions: LeafletMapButtonOptions[]

Array of individual button options.

id

id: any

The id Property is the group identifier.

position

position: string

The position Property is a string that signifies button group display location. ('topright', 'topleft', 'bottomright', 'bottomleft')