/plugins/login

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:
NameTypeDescription
pluginObject

The plugin configuration object.

mapviewObject

The mapview object.

Returns:
Type: 
void