// collect the layer
images.add(((RenderedImageMap)map).getImage());
}
RenderedImageList imageList = new RenderedImageList(images);
return new RenderedImageMap(mapContent, imageList , map.getMimeType());
} else if(numElevations > 1 && isMultivaluedSupported) {
WebMap map = null;
List<RenderedImage> images = new ArrayList<RenderedImage>();
for (Object currentElevation : elevations){
map = executeInternal(mapContent, request, delegate, times, Arrays.asList(currentElevation));
// remove layers to start over again
mapContent.layers().clear();
// collect the layer
images.add(((RenderedImageMap)map).getImage());
}
RenderedImageList imageList = new RenderedImageList(images);
return new RenderedImageMap(mapContent, imageList , map.getMimeType());
} else {
return executeInternal(mapContent, request, delegate, times, elevations);
}
}