public void appyLayerProperties(PropertyMap configuration) {
setScrollBarsShown(configuration.getPropertyBool(PREFERENCE_KEY_IMAGE_SCROLL_BARS_SHOWN, false));
layerCanvas.setAntialiasing(true);
layerCanvas.setNavControlShown(configuration.getPropertyBool(PREFERENCE_KEY_IMAGE_NAV_CONTROL_SHOWN, true));
layerCanvas.setBackground(
configuration.getPropertyColor("image.background.color", DEFAULT_IMAGE_BACKGROUND_COLOR));
layerCanvasMouseHandler.setInvertZooming(configuration.getPropertyBool(PREFERENCE_KEY_INVERT_ZOOMING, false));
ImageLayer imageLayer = getBaseImageLayer();
if (imageLayer != null) {
ProductSceneImage.applyBaseImageLayerStyle(configuration, imageLayer);
}
Layer noDataLayer = getNoDataLayer(false);
if (noDataLayer != null) {
ProductSceneImage.applyNoDataLayerStyle(configuration, noDataLayer);
}
Layer collectionLayer = getVectorDataCollectionLayer(false);
if (collectionLayer != null) {
ProductSceneImage.applyFigureLayerStyle(configuration, collectionLayer);
}
GraticuleLayer graticuleLayer = getGraticuleLayer(false);
if (graticuleLayer != null) {
ProductSceneImage.applyGraticuleLayerStyle(configuration, graticuleLayer);
}
}