Exports the default userLocale element method as mapp.ui.elements.userLocale().
- Source
Methods
(inner) listLocales()
The listlocales method requests an array of userlocales keys and names from the userLocale.list utility method and renders a list of links for these userLocale. The list includes a delete button for each userLocale, which when clicked will remove the userLocale from the mapview and update the list of userlocales.
(inner) removeLocale(params, mapview, locale_name)
The removeLocale method removes the userlocale from the mapview and calls the listLocales method to update the list of userlocales.
Name | Type | Description |
---|---|---|
params | Object | The userLocale config from the locale. |
mapview | Object | The mapview object. |
locale_name | string | The name of the userlocale to be removed. |
(inner) saveLocale()
The saveLocale method saves the userlocale to the mapview and calls the listLocales method to update the list of userlocales.
(inner) userLocale(params, mapview) → {HTMLElement}
Returns a panel with an input field to define the userlocale name and buttons to either put (create or overwrite) a stored userlocale or delete a stored userlocale. The panel will be disabled during the transaction to save or remove a user locale.
Name | Type | Description |
---|---|---|
params | Object | The userLocale config from the locale. |
mapview | Object | The mapview object. |
- Source
The panel element containing the userLocale interface.
- Type:
- HTMLElement