/plugins/login
- Source
Methods
(inner) login(plugin, mapview) → {void}
The login plugin adds a login/logout button to the map view if the login feature is enabled by the presence of the data-login attribute in the document head.
The button will link to either the login or logout endpoint depending on the user authentication state.
Parameters:
| Name | Type | Description |
|---|---|---|
plugin | Object | The plugin configuration object. |
mapview | Object | The mapview object. |
- Source
Returns:
- Type:
- void