Skip to content

Commit

Permalink
[Backport 2022.02.xx] geosolutions-it#8693 Register catalog and backg…
Browse files Browse the repository at this point in the history
…round epics with the map (geosolutions-it#8705) (geosolutions-it#8703) (geosolutions-it#8707)

* geosolutions-it#8693 Register catalog epics app-wide (geosolutions-it#8703)

(cherry picked from commit 12064b7)

* geosolutions-it#8693 Register background selector epics with the map (geosolutions-it#8705)

(cherry picked from commit 4d78924)
  • Loading branch information
alex-fko authored Oct 18, 2022
1 parent 0cf2e05 commit 369c2f7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion web/client/plugins/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ import pluginsCreator from "./map/index";
import withScalesDenominators from "../components/map/enhancers/withScalesDenominators";
import { createFeatureFilter } from '../utils/FilterUtils';
import ErrorPanel from '../components/map/ErrorPanel';
import catalog from "../epics/catalog";
import backgroundSelector from "../epics/backgroundselector";
import API from '../api/catalog';

/**
* The Map plugin allows adding mapping library dependent functionality using support tools.
Expand Down Expand Up @@ -471,7 +474,11 @@ export default createPlugin('Map', {
maptype: mapTypeReducer,
additionallayers: additionalLayersReducer
},
epics: mapEpics,
epics: {
...mapEpics,
...backgroundSelector,
...catalog(API)
},
containers: {
Settings: () => ({
tool: <MapSettings />,
Expand Down

0 comments on commit 369c2f7

Please sign in to comment.