task_24532 #13

Merged
francesco.mangiacrapa merged 5 commits from task_24532 into master 2023-02-03 15:24:10 +01:00
1 changed files with 2 additions and 7 deletions
Showing only changes of commit 1a6c9b074d - Show all commits

View File

@ -475,7 +475,7 @@ public abstract class OpenLayerMap {
ImageWms imageWMSSource = wmsLayer.getSource();
ImageWmsParams imageWMSParams = imageWMSSource.getParams();
if (cqlFilterExpression == null || cqlFilterExpression.length()>MAX_LENGHT_CQL_FOR_GET_REQUEST) {
if (cqlFilterExpression == null || cqlFilterExpression.length() > MAX_LENGHT_CQL_FOR_GET_REQUEST) {
imageWMSParams.delete("CQL_FILTER");
} else {
imageWMSParams.set("CQL_FILTER", cqlFilterExpression);
@ -483,13 +483,8 @@ public abstract class OpenLayerMap {
imageWMSSource.updateParams(imageWMSParams);
wmsLayer.setSource(imageWMSSource);
wmsLayer.changed();
wmsLayer.changed();
//map.addLayer(wmsLayer);
}
/**
@ -647,7 +642,7 @@ public abstract class OpenLayerMap {
Style style = new Style();
StrokeOptions strokeOptions = new StrokeOptions();
strokeOptions.setColor(new Color(255, 0, 0, 0.8));
strokeOptions.setColor(new Color(255, 255, 51, 0.8));
strokeOptions.setWidth(5);
Stroke stroke = new Stroke(strokeOptions);
stroke.setWidth(2);