Set Highlight to Light yellow4

This commit is contained in:
Francesco Mangiacrapa 2023-02-03 12:28:26 +01:00
parent 88c986a478
commit 1a6c9b074d
1 changed files with 2 additions and 7 deletions

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);