Commits

fizzi  committed c9d704e

add support for time/elevation in WMSParams

  • Participants
  • Parent commits 968bec8

Comments (0)

Files changed (1)

File gwt-openlayers-client/src/main/java/org/gwtopenmaps/openlayers/client/layer/WMSParams.java

 public class WMSParams extends Params {
     
     private final static String CQL_FILTER = "CQL_FILTER";
+    private final static String TIME = "TIME";
+    private final static String ELEVATION = "ELEVATION";
 
     protected WMSParams(JSObject jsObject) {
         super(jsObject);
         public String getCQLFilter() {
             return getJSObject().getPropertyAsString(CQL_FILTER);
         }
+        
+        public void setTimeFilter(String timeFilter) {
+            getJSObject().setProperty(TIME, timeFilter);
+        }
+
+        public void removeTimeFilter() {
+            getJSObject().unsetProperty(TIME);
+        }
+        
+        public void setElevationFilter(String elevationFilter) {
+            getJSObject().setProperty(ELEVATION, elevationFilter);
+        }
+
+        public void removeElevationFilter() {
+            getJSObject().unsetProperty(ELEVATION);
+        }
 
 	public void setFormat(String styles) {
 		getJSObject().setProperty("FORMAT", styles);