Skip to content

Commit

Permalink
use config params from default context as default for new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Jan 3, 2024
1 parent 979e41b commit 8e536f3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ public ContextParams get(String context) {
if (!params.containsKey(context)) {
ContextParams p = new ContextParams();
p.context = context;
if (!context.equals("")) {
if (!context.isEmpty()) {
// Copy default params from the global config
p.sampleSize = defaultParams().sampleSize;
p.shp = defaultParams().shp;
p.mapCenter = defaultParams().mapCenter;
p.mapZoomLevel = defaultParams().mapZoomLevel;
}
addParameterSet(p);
return p;
Expand Down

0 comments on commit 8e536f3

Please sign in to comment.