Skip to content

Commit

Permalink
Merge pull request #2501 from DenverCoder544/featuredata_selected_in_…
Browse files Browse the repository at this point in the history
…publisher_by_default

featuredata enabled by default in publisher
  • Loading branch information
ZakarFin authored Nov 9, 2023
2 parents 1ad8e5f + 42cd0ec commit 0052ed3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bundles/framework/publisher2/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ Oskari.clazz.define('Oskari.mapframework.bundle.publisher2.PublisherBundleInstan
* @return {Object}
*/
getDefaultData: function () {
var config = {
const config = {
mapfull: {
conf: {
plugins: [
Expand All @@ -342,7 +342,10 @@ Oskari.clazz.define('Oskari.mapframework.bundle.publisher2.PublisherBundleInstan
]
}
},
'featuredata2': {
featuredata: {
conf: {}
},
featuredata2: {
conf: {}
}
};
Expand All @@ -352,7 +355,7 @@ Oskari.clazz.define('Oskari.mapframework.bundle.publisher2.PublisherBundleInstan
);
}
// setup current mapstate so layers are not removed
var state = this.getSandbox().getCurrentState();
const state = this.getSandbox().getCurrentState();
// merge state to initial config
return { configuration: jQuery.extend(true, config, state) };
},
Expand Down

0 comments on commit 0052ed3

Please sign in to comment.