Skip to content

Commit

Permalink
AUS-4270
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvpeters committed Nov 7, 2024
1 parent 67a277b commit 024f91b
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ public ModelMap toView(KnownLayer k) {
obj.put("serverType", k.getServerType());
}

if (k.getApikey() != null) {
obj.put("apikey", k.getApikey());
}

if (k.getMaps() != null) {
obj.put("maps", k.getMaps());
}

return obj;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ public class KnownLayer implements Serializable {
/** VMF - geoJson polygon */
private JSONArray polygon;

/** VMF - maps */
private String maps;

/** VMF - apikey */
private String apikey;

/** geoJson bbox */
private JSONArray bbox;

Expand Down Expand Up @@ -537,6 +543,38 @@ public JSONArray getPolygon() {
return polygon;
}

/**
* Set the VMF - maps
*
* @param maps
*/
public void setMaps(String maps) {
this.maps = maps;
}

/**
* @return the VMF - maps
*/
public String getMaps() {
return maps;
}

/**
* Set the VMF - apikey
*
* @param endPoint
*/
public void setApikey(String apikey) {
this.apikey = apikey;
}

/**
* @return the VMF - apikey
*/
public String getApikey() {
return apikey;
}

/**
* @return the initial - bbox
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,21 @@ public class VMFSelector implements KnownLayerSelector {
* GeoJson polygon used to cookie cut area of interest
*/
private JSONArray polygonGeoJson;

/** The apikey - https://api-docs.native-land.ca/get-and-use-your-api-key */
private String apikey;
/** The maps - There are 3 categories available: territories, languages, and treaties. */
private String maps;

/**
* @param serviceEndpoint
* The serviceEndpoint that identifies which VMF this KnownLayer is identifying
*/
public VMFSelector(String layerName, String serviceEndpoint, JSONArray polygonGeoJson) throws MalformedURLException {
public VMFSelector(String layerName, String serviceEndpoint, JSONArray polygonGeoJson, String apikey, String maps) throws MalformedURLException {
this.layerName = layerName;
this.serviceEndpoint = new URL(serviceEndpoint);
this.polygonGeoJson = polygonGeoJson;
this.apikey = apikey;
this.maps = maps;
}

/**
Expand Down

0 comments on commit 024f91b

Please sign in to comment.