diff --git a/web/client/plugins/MousePosition.jsx b/web/client/plugins/MousePosition.jsx index 83b792a9e19..fa887706410 100644 --- a/web/client/plugins/MousePosition.jsx +++ b/web/client/plugins/MousePosition.jsx @@ -146,7 +146,7 @@ export default { MousePositionPlugin: Object.assign(MousePositionPlugin, { MapFooter: { name: 'mousePosition', - position: 2, + position: 3, target: 'right-footer', priority: 1 } diff --git a/web/client/plugins/ScaleBox.jsx b/web/client/plugins/ScaleBox.jsx index f8819640faf..e0600f32cc7 100644 --- a/web/client/plugins/ScaleBox.jsx +++ b/web/client/plugins/ScaleBox.jsx @@ -60,7 +60,7 @@ export default { }, { MapFooter: { name: 'scale', - position: 1, + position: 2, target: 'right-footer', priority: 1 } diff --git a/web/client/plugins/WidgetsTray.jsx b/web/client/plugins/WidgetsTray.jsx index 3aa69261e21..65e1c1e0251 100644 --- a/web/client/plugins/WidgetsTray.jsx +++ b/web/client/plugins/WidgetsTray.jsx @@ -10,6 +10,7 @@ import WidgetsTray from './widgets/WidgetsTray'; import autoDisableWidgets from './widgets/autoDisableWidgets'; import epics from '../epics/widgetsTray'; +import { createPlugin } from '../utils/PluginsUtils'; /** * Plugin that allow to collapse widgets. Shows a small tray where to see the collapsed plugins list. @@ -18,7 +19,15 @@ import epics from '../epics/widgetsTray'; * @prop {boolean|string|array} [toolsOptions.seeHidden] hides the widgets under particular conditions. **Must** be the same of rule of the Widget plugin. @see plugins.Widgets. * @class */ -export default { - WidgetsTrayPlugin: autoDisableWidgets(WidgetsTray), +export default createPlugin("WidgetsTrayPlugin", { + component: autoDisableWidgets(WidgetsTray), + containers: { + MapFooter: { + name: 'widgetsTray', + position: 1, + target: 'right-footer', + priority: 1 + } + }, epics -}; +}); diff --git a/web/client/plugins/widgets/WidgetsTray.jsx b/web/client/plugins/widgets/WidgetsTray.jsx index 470c16dc39a..cbaf8102041 100644 --- a/web/client/plugins/widgets/WidgetsTray.jsx +++ b/web/client/plugins/widgets/WidgetsTray.jsx @@ -96,14 +96,16 @@ class WidgetsTray extends React.Component { render() { return this.props.enabled ? (