map.setRasterResolution(rasterDpi);
List<PrintComponentInfo> layers = new ArrayList<PrintComponentInfo>();
// use the normal way for raster layers (TODO: add support for dpi to rasterized part)
for (Layer layer : mapModel.getLayers()) {
if (layer instanceof RasterLayer && layer.isShowing()) {
RasterLayerComponentInfo info = new RasterLayerComponentInfo();
RasterLayer rasterLayer = (RasterLayer) layer;
info.setLayerId(rasterLayer.getServerLayerId());
info.setStyle(rasterLayer.getLayerInfo().getStyle());
layers.add(info);
}
}
// use the rasterized layers way for vector layers
for (ClientLayerInfo layerInfo : mapModel.getMapInfo().getLayers()) {