Skip to content
Permalink
Browse files

Swap display_expression parameters

  • Loading branch information
DelazJ committed Jul 12, 2020
1 parent 2e2acf9 commit 9cf31e96ee7d7de38ecf7f55d2ad2119cf6a1dad
Showing with 7 additions and 7 deletions.
  1. +7 −7 resources/function_help/json/display_expression
@@ -4,18 +4,18 @@
"groups": ["Record and Attributes"],
"description": "Returns the display expression for a given feature in a layer. If called with no parameters, it evaluates the current feature. The expression is evaluated by default.",
"arguments": [
{
"arg": "feature",
"optional": true,
"default": "current feature",
"description": "The feature which should be evaluated."
},
{
"arg": "layer",
"optional": true,
"default": "current layer",
"description": "The layer (or its id or name)."
},
{
"arg": "feature",
"optional": true,
"default": "current feature",
"description": "The feature which should be evaluated."
},
{
"arg": "evaluate",
"description": "If the expression must be evaluated. If false, the expression will be returned as a string literal only (which could potentially be later evaluated using the 'eval' function).",
@@ -29,7 +29,7 @@
"returns": "The display expression of the current feature."
},
{
"expression": "display_expression(get_feature_by_id('streets', 1), 'streets')",
"expression": "display_expression('streets', get_feature_by_id('streets', 1))",
"returns": "The display expression of the feature with the ID 1 on the layer 'streets'."
},
{

0 comments on commit 9cf31e9

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