Skip to content

Commit

Permalink
add maxZoom to quotients in /axis api (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeping-h authored Dec 12, 2024
1 parent b43c131 commit 080fadb
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ query AxisList {
name
label
emoji
maxZoom
description
copyrights
direction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type Indicator {
name: String
label: String
emoji: String
maxZoom: Int
copyrights: [String]
direction: [[String]]
unit: Unit
Expand Down Expand Up @@ -208,6 +209,7 @@ type Quotient {
name: String
label: String
emoji: String
maxZoom: Int
description: String
copyrights: [String]
direction: [[String]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class BivariateLegendQuotient {
private String name;
private String label;
private String emoji;
private Integer maxZoom;
private String description;
private List<String> copyrights;
private List<List<String>> direction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class Indicator {
private String name;
private String label;
private String emoji;
private Integer maxZoom;
private String description;
private List<String> copyrights;
private List<List<String>> direction; // I have no idea why the FE needs an array of arrays here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ List<BivariateLegendQuotient> axisListQueryQuotientListToBivariateLegendQuotient
@Mapping(target = "name", expression = "java(quotient.name())")
@Mapping(target = "label", expression = "java(quotient.label())")
@Mapping(target = "emoji", expression = "java(quotient.emoji())")
@Mapping(target = "maxZoom", expression = "java(quotient.maxZoom())")
@Mapping(target = "description", expression = "java(quotient.description())")
@Mapping(target = "copyrights", expression = "java(quotient.copyrights())")
@Mapping(target = "direction", expression = "java(quotient.direction())")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ List<BivariateLegendQuotient> bivariateLayerLegendQueryQuotientListToBivariateLe
@Mapping(target = "name", expression = "java(quotient.name())")
@Mapping(target = "label", expression = "java(quotient.label())")
@Mapping(target = "emoji", expression = "java(quotient.emoji())")
@Mapping(target = "maxZoom", ignore = true)
@Mapping(target = "description", expression = "java(quotient.description())")
@Mapping(target = "copyrights", expression = "java(quotient.copyrights())")
@Mapping(target = "direction", expression = "java(quotient.direction())")
Expand Down Expand Up @@ -107,6 +108,7 @@ List<BivariateLegendQuotient> bivariateLayerLegendQueryQuotient1ListToBivariateL
@Mapping(target = "name", expression = "java(quotient1.name())")
@Mapping(target = "label", expression = "java(quotient1.label())")
@Mapping(target = "emoji", expression = "java(quotient1.emoji())")
@Mapping(target = "maxZoom", ignore = true)
@Mapping(target = "description", expression = "java(quotient1.description())")
@Mapping(target = "copyrights", expression = "java(quotient1.copyrights())")
@Mapping(target = "direction", expression = "java(quotient1.direction())")
Expand Down Expand Up @@ -178,6 +180,7 @@ List<BivariateLegendQuotient> bivariateMatrixQueryQuotientListToBivariateLegendQ
@Mapping(target = "name", expression = "java(quotient.name())")
@Mapping(target = "label", expression = "java(quotient.label())")
@Mapping(target = "emoji", expression = "java(quotient.emoji())")
@Mapping(target = "maxZoom", ignore = true)
@Mapping(target = "description", expression = "java(quotient.description())")
@Mapping(target = "copyrights", expression = "java(quotient.copyrights())")
@Mapping(target = "direction", expression = "java(quotient.direction())")
Expand Down

0 comments on commit 080fadb

Please sign in to comment.