Skip to content

Commit

Permalink
AUS-4215
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvpeters committed Sep 25, 2024
1 parent a460182 commit 6f2521f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main/java/org/auscope/portal/server/config/LayerFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,27 @@ KnownLayer annotateLayer(String id) {
}
break;
}
// parse the online resource order parameter array [ onlineResourceName, orderIndex ]
case "onlineResourceOrder": {
ArrayList resourceList = (ArrayList) v1;
JSONArray resourceOrderList = new JSONArray();
resourceList.forEach((resource) -> {
int len = ((ArrayList<Object>) resource).size();
if (len == 2) {
String resourceName = (String) ((ArrayList) resource).get(0);
int resourceOrder = (int) ((ArrayList) resource).get(1);

JSONArray resourceOrderItem = new JSONArray();
resourceOrderItem.put(resourceName);
resourceOrderItem.put(resourceOrder);

resourceOrderList.put(resourceOrderItem);

}
});
layer.setOnlineResourceOrder(resourceOrderList);
break;
}
case "wfs": {
wfs.feature.clear();
wfs.endPoints.clear();
Expand Down
13 changes: 13 additions & 0 deletions src/main/resources/layers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2194,3 +2194,16 @@
selector: "Indigenous Map"
endPoint: "https://native-land.ca/wp-json/nativeland/v1/api/index.php"
polygon_geojson: [[111.64,-17.61],[132.45,-8.23],[146.26,-10.53],[159.37,-24.57],[147.95,-45.25],[110.29,-34.29]]

"regolith-depth-layer":
name: "Soil and Landscape Grid National Soil Attribute Maps - Depth of Regolith"
description: "This is Version 2 of the Depth of Regolith product of the Soil and Landscape Grid of Australia (produced 2015-06-01)."
group: "Regolith"
order: "regolith_01"
supportsCsvDownloads: false
onlineResourceOrder:
- [ "DER_000_999_EV_N_P_AU_NAT_C", 1]
- [ "DER_000_999_95_N_P_AU_NAT_C", 2]
- [ "DER_000_999_05_N_P_AU_NAT_C", 3]
wms:
selector: "DER_000_999_EV_N_P_AU_NAT_C"

0 comments on commit 6f2521f

Please sign in to comment.