layerTransparencyUnderlay.setImageType(ImageStyle.NORMAL);
// ----------------------------------------------------------
if (vectorLayer != null) {
Canvas sampleMap = new Canvas();
sampleMap.setAutoHeight();
sampleMap.setAutoWidth();
// sampleMap.setSize("89px", "89px");
sampleMap.addChild(layerImg);
sampleMap.addChild(layerLabelOverlay);
labels = new CheckboxItem();
initLabels();
DynamicForm form = new DynamicForm();
form.setTitleOrientation(TitleOrientation.TOP);
form.setHeight(40);
form.setFields(labels);
layout.addMember(sampleMap);
layout.addMember(form);
} else {
Canvas sampleMap = new Canvas();
sampleMap.setAutoHeight();
sampleMap.setAutoWidth();
// sampleMap.setSize("89px", "89px");
layerImg.setUseOpacityFilter(true);
sampleMap.addChild(layerTransparencyUnderlay);
sampleMap.addChild(layerImg);
transparencySlider = new Slider(messages.layerActionsOpacity());
String raw = rasterLayer.getLayerInfo().getStyle();
double opacity = 1d;
if (raw != null && !"".equals(raw)) {