admin-layerselector
Admin tools for managing maplayer configurations
Description
The bundle offers admin a listing for all the maplayers available in Oskari. The maplayers are grouped by topic or organization by selecting a tab in the upper part of the flyout. For each maplayer there is an icon presenting layer type (wms/wfs/base/wmts/vector)and an i-icon if the layer has a "dataurl" property. The admin can add new organizations and remove them. It is also possible to add new maplayers and remove old ones. Support for adding group and base layers and sublayers to them was added in Oskari version 1.13.
TODO
- Add Inspire Themes (needs backend work)
- Modal dialog when user is removing organization or layer
- Backend should return json if user is removing organization
- Backend should return error if user is removing organization which contains layer
- Map layer service should do something when layer is updated
- Backend should be configured to handle admin bundles based on user role
- Filter mechanism is not ready yet
- Add Organization & add Inspire theme needs some further work on layerSelector2 bundle
Screenshot
Bundle configuration
Frontend has no configuration, but the bundle is usually configured to be shown only to admin users. Configuration is done in oskari-server using oskari-ext.properties.
Events the bundle listens to
Event | How does the bundle react |
---|---|
MapLayerEvent | Updates the UI with data from MapLayerService - if operation is 'add' (adds the maplayer), 'remove' (removes the maplayer) or 'update' (updates layers name) |
Dependencies
Dependency | Linked from | Purpose |
---|---|---|
jQuery | Linked in portal theme | Used to create the component UI from begin to end |
Oskari divmanazer | Expects to be present in application setup | Oskari's Div handler bundle |
Backend API | N/A | Get all Maplayers from backend |
Oskari layerselector2 | N/A | User can select maplayers when needed |