Constructor
new TwoStepSelector()
Custom Leaflet control which will display two select boxes. Selecting an item in the first box will populate the second. Selecting an item in the second box will update the map.
Options:idUnique id for the controlpositionThe location on the map (using leaflet's standard control positions). Default: toplefttitleThe tooltip for the button. Default: 'Select...'firstStepItemsarray of items (key/value) to be displayed in the first selector (alternatively, use firstStepItemLookup)firstStepItemLookupFunction callback to retrieve the list of items to be displayed in the first selector. Takes a single parameter: a callback function that must be called with the array of key/value pairs to populate the first selector.firstStepTitleTooltip for the first select boxfirstStepPlaceholderPlaceholder text for the first (null) item in the first selector. Default: 'Select one...'secondStepItemLookupFunction callback to populate the second selector when the first selector is set. Takes 2 parameters: the key of the selected value from the first selector, and a callback function that must be called with the array of key/value pairs to populate the second selector.secondStepPlaceholderPlaceholder text for the first (null) item in the second selector. Default: 'Select one...'secondStepTitleTooltip for the second select boxselectionActionFunction callback to invoke when the second selector is setfirstStepValueThe initial value for the first selectoriconClassThe CSS class(es) for the button icon. Default: 'fa fa-globe'