ui/locations/entries/key
The key entry module exports a default [location] entry method to process infoj type:key
entries.
Methods
(inner) key(entry) → {HTMLElement}
mapp.ui.locations.entries.key(entry)
The entry method returns a button HTML element which will toggle the location.layer display.
The button classList reflects whether the layer is displayed or not.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
entry | Object | Properties
|
Returns:
The button key element, with an onclick event to toggle the visibility of the layer.
- Type:
- HTMLElement
Example
```json
{
"type":"key"
}
```