JMap.Layer.DynamicFilter.canAttributeTypeAcceptMultipleValuesOperators
Returns true if the attribute type accept multiple value operator ("EQUALS" or "NOT_EQUALS" for example).
This function is safe, it throws nothing.
The attribute type
JMap.Layer.DynamicFilter.canAttributeTypeAcceptTwoValuesOperators
Returns true if the attribute type accept two value operator ("IS_IN_RANGE").
This function is safe, it throws nothing.
The attribute type
JMap.Layer.DynamicFilter.createCondition
Add a new condition for a JMap Layer dynamic filter.
Returns the new conditon id, and set the id in the object passed in parameter
The dynamic filter condition to create
JMap.Layer.DynamicFilter.existSimilarCondition
Returns true if the condition already exist for the layer.
It doesn't check the id of the condition, only the values.
The condition to verify
tell if the check is for a creation or an update
JMap.Layer.DynamicFilter.getAllLastOperatorUnits
Returns list of all "LAST" operator available units:
JMap.Layer.DynamicFilter.getAllMultipleValuesOperators
Returns the list of all operators that require an array values.
Warning: EQUALS, NOT_EQUALS are operators that takes an array of values, they act like "IN" or "NOT IN".
JMap.Layer.DynamicFilter.getAllOperators
Returns the list of all availables operators
JMap.Layer.DynamicFilter.getAllTwoValuesOperators
Returns the list of all operators that require two values (ex: IS_IN_RANGE, IS_NOT_IN_RANGE)
JMap.Layer.DynamicFilter.getByLayerId
Returns the dynamic filter of a given layer id
The JMap layer id
JMap.Layer.DynamicFilter.getConditionError
Returns a string error (human readable) if the condition is not correct.
If correct returns undefined.
It doesn't check the id of the condition.
The condition to verify
JMap.Layer.DynamicFilter.getConditionValueError
Returns an error if value is not correct.
This function is safe, it throws nothing.
The operator to check
The attribute type
the value, an array of value for IS_IN_RANGE operator
JMap.Layer.DynamicFilter.getIsBetweenValuesError
Returns true if the attribute type accept two value operator ("IS_IN_RANGE").
This function is safe, it throws nothing.
The attribute type
JMap.Layer.DynamicFilter.getNowValue
Returns the now value, used for date.
JMap.Layer.DynamicFilter.getOperatorsForAttributeType
Returns list of all operators available for a given attribute type.
JMap.Layer.DynamicFilter.isActive
Returns true if the layer has a dynamic filter, and its filter is active.
Doesn't throw if the given layer doesn't support dynamic filter.
The JMap layer id
JMap.Layer.DynamicFilter.isAvailable
Returns true if the layer support dynamic filter.
For example raster layers don't support dynamic filter.
The JMap layer id
JMap.Layer.DynamicFilter.isConditionValid
Returns a string error (human readable) if the condition is not correct.
If correct returns undefined.
It doesn't check the id of the condition.
The condition to verify
JMap.Layer.DynamicFilter.isConditionValueValid
Returns true if the condition value is valid.
This function is safe, it throws nothing.
The operator to check
The attribute type
JMap.Layer.DynamicFilter.isMultipleValuesOperator
Returns true if the operator requires a value that is an array.
This function is safe, it throws nothing.
The operator to check
JMap.Layer.DynamicFilter.isNoValueOperator
Returns true if the operator doesn't require any value.
This function is safe, it throws nothing.
The operator to check
JMap.Layer.DynamicFilter.isTwoValuesOperator
Returns true if the operator require two values.
This function is safe, it throws nothing.
The operator to check
JMap.Layer.DynamicFilter.removeConditions
Remove conditions for a given layer id and condition ids.
JMap.Layer.DynamicFilter.set
Set multiple layer's dynamic filters at once.
If some conditions where already set, will destroy them and replace it with the new given conditions.
the parameters
JMap.Layer.DynamicFilter.setIsActive
Activate or deactivate a dynamic layer filter for a given JMap layer id
The JMap layer id
The new status of the filter
JMap.Layer.DynamicFilter.updateCondition
Update an existing condition, for a JMap Layer dynamic filter.
The dynamic filter condition to update
JMap.Layer.DynamicFilter
Methods used to manage dynamic filters for a layer.