JMap.Map.Filter.applyAttributeValueBetween
Render only layer's features that has attributeId having value between start and end attributes, including equals values.
Only one attribute filter can be set for a specific layer and attributeId at the same time.
The JMap layer id
The JMap attribute id
The max value
The filter id. By example for layer 4 and attribute 'on_off' => "attribute-4-on_off"
JMap.Map.Filter.applyAttributeValueEqualTo
Render only layer's features that has attributeId having value equals to attributeValue
Only one attribute filter can be set for a specific layer and attributeId at the same time.
The JMap layer id
The JMap attribute id
The attribute value
The filter id. By example for layer 4 and attribute 'on_off' => "attribute-4-on_off"
JMap.Map.Filter.applyAttributeValueGreaterOrEqualsTo
Render only layer's features that has attributeId having value greater or equals to attributeValue.
Only one attribute filter can be set for a specific layer and attributeId at the same time.
The JMap layer id
The JMap attribute id
The attribute value
The filter id. By example for layer 4 and attribute 'on_off' => "attribute-4-on_off"
JMap.Map.Filter.applyAttributeValueGreaterThan
Render only layer's features that has attributeId having value strictly greater to attributeValue.
Only one attribute filter can be set for a specific layer and attributeId at the same time.
The JMap layer id
The JMap attribute id
The attribute value
The filter id. By example for layer 4 and attribute 'on_off' => "attribute-4-on_off"
JMap.Map.Filter.applyAttributeValueIn
Render only layer's features that has attributeId having value matching any values in attributeValues.
Only one attribute filter can be set for a specific layer and attributeId at the same time.
The JMap layer id
The JMap attribute id
The attribute values to match
The filter id. By example for layer 4 and attribute 'on_off' => "attribute-4-on_off"
JMap.Map.Filter.applyAttributeValueLowerOrEqualsTo
Render only layer's features that has attributeId having value lower or equals to attributeValue.
Only one attribute filter can be set for a specific layer and attributeId at the same time.
The JMap layer id
The JMap attribute id
The attribute value
The filter id. By example for layer 4 and attribute 'on_off' => "attribute-4-on_off"
JMap.Map.Filter.applyAttributeValueLowerThan
Render only layer's features that has attributeId having value strictly lower to attributeValue.
Only one attribute filter can be set for a specific layer and attributeId at the same time.
The JMap layer id
The JMap attribute id
The attribute value
The filter id. By example for layer 4 and attribute 'on_off' => "attribute-4-on_off"
JMap.Map.Filter.applyAttributeValueNotEqualTo
Render only layer's features that has attributeId not having value equals to attributeValue
Only one attribute filter can be set for a specific layer and attributeId at the same time.
The JMap layer id
The JMap attribute id
The attribute value
The filter id. By example for layer 4 and attribute 'on_off' => "attribute-4-on_off"
JMap.Map.Filter.applyAttributeValueNotIn
Render only layer's features that has attributeId having value not matching any values in attributeValues.
Only one attribute filter can be set for a specific layer and attributeId at the same time.
The JMap layer id
The JMap attribute id
The attribute values to match
The filter id. By example for layer 4 and attribute 'on_off' => "attribute-4-on_off"
JMap.Map.Filter.applyHasAttribute
Render only layer's features that has the attribute defined in their properties. If the feature attribute is defined but its value is undefined, the feature will be rendered.
Only one attribute filter can be set for a specific layer and attributeId at the same time.
The JMap layer id
The JMap attribute id
The filter id. By example for layer 4 and attribute 'on_off' => "attribute-4-on_off"
JMap.Map.Filter.applyHasNotAttribute
Render only layer's features that hasn't the attribute defined in their properties. If the property is defined but value is undefined, the feature will not be rendered.
Only one attribute filter can be set for a specific layer and attributeId at the same time.
The JMap layer id
The JMap attribute id
The filter id. By example for layer 4 and attribute 'on_off' => "attribute-4-on_off"
JMap.Map.Filter.applySpatial
Render only layer's features that intersect the filterGeometry area.
Only one spatial filter can be set for a specific layer at the same time.
The JMap layer id
The geometry that is the area to search. Can be a circle or a polygon.
The filter id. By example for layer 4 => "spatial-4"
JMap.Map.Filter.removeAllFilters
Remove all spatial and attributes filters for layer.
The JMap layer id
JMap.Map.Filter.removeByFilterId
Remove the filter on the map following the filter id passed in parameter.
The filter id. The one you get when you call a filter method that starts with apply.
JMap.Map.Filter
JMap offer the ability to filter the features that are rendered on the map.
We can apply filter on attributes values, or a spatial filter.