return jsonStyle;
}
private void createMap(Template template, String expectedImageName, AreaOfInterest.AoiDisplay aoiDisplay, String styleRef,
boolean useSVG, Function<PJsonObject, Void> requestUpdater) throws IOException, JSONException, TranscoderException {
PJsonObject requestData = loadJsonRequestData();
final PJsonObject mapAttribute = getMapAttributes(requestData);
mapAttribute.getJSONArray("layers").getJSONObject(0).getInternalObj().put("renderAsSvg", useSVG);
final PJsonObject areaOfInterest = mapAttribute.getJSONObject("areaOfInterest");
areaOfInterest.getInternalObj().put("display", aoiDisplay.name().toLowerCase()); // doesn't have to be lowercase,
// this is to make things more interesting
areaOfInterest.getInternalObj().put("style", styleRef);
if (requestUpdater != null) {
requestUpdater.apply(requestData);
}