Skip to content
Permalink
Browse files

Enforce the current layer use for is_selected function

  • Loading branch information
DelazJ committed Nov 19, 2020
1 parent 9bf2e90 commit 348bc8b8fcb1dfd189d5ba4bf7be32d027199b5d
Showing with 3 additions and 3 deletions.
  1. +3 −3 resources/function_help/json/is_selected
@@ -14,9 +14,9 @@
"variant": "One 'feature' parameter",
"variant_description": "If called with a 'feature' parameter only, the function returns true if the specified feature from the current layer is selected.",
"arguments": [ { "arg": "feature", "description": "The feature which should be checked for selection." } ],
"examples": [ { "expression": "is_selected(@atlas_feature)", "returns": "True if the current atlas feature is selected." },
{ "expression": "is_selected(get_feature('streets', 'name', 'Main St.')))", "returns": "True if the unique named \"Main St.\" feature on the active \"streets\" layer is selected." },
{ "expression": "is_selected(get_feature_by_id('streets', 1))", "returns": "True if the feature with the id 1 on the active \"streets\" layer is selected." }
"examples": [ { "expression": "is_selected(@atlas_feature)", "returns": "True if a selected feature on the current layer is the active atlas feature." },
{ "expression": "is_selected(get_feature(@layer, 'name', 'Main St.')))", "returns": "True if the unique named \"Main St.\" feature on the current layer is selected." },
{ "expression": "is_selected(get_feature_by_id(@layer, 1))", "returns": "True if the feature with the id 1 on the current layer is selected." }
]
},
{

0 comments on commit 348bc8b

Please sign in to comment.
You can’t perform that action at this time.