@arcgis/coding-components 4.29.0-beta.93 → 4.29.0-beta.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +6 -1
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +9 -2
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +1 -1
- package/dist/arcgis-coding-components/index.esm.js +6 -1
- package/dist/arcgis-coding-components/p-23f55366.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-009eaccf.js → p-2ee92dd4.js} +5 -0
- package/dist/arcgis-coding-components/{p-79707082.js → p-3379c876.js} +6 -1
- package/dist/arcgis-coding-components/{p-1d062d47.js → p-361da3f4.js} +6 -1
- package/dist/arcgis-coding-components/{p-ccafed7f.js → p-6addbe14.js} +5 -0
- package/dist/arcgis-coding-components/{p-590b795b.js → p-704356f7.js} +6 -1
- package/dist/arcgis-coding-components/{p-75ae922a.js → p-b1d0e952.js} +7 -2
- package/dist/arcgis-coding-components/{p-4c959bce.js → p-ca87fa23.js} +15 -10
- package/dist/arcgis-coding-components/{p-ca7059d4.js → p-cc1182ad.js} +6 -1
- package/dist/arcgis-coding-components/{p-cdfe57a1.js → p-d7115f8d.js} +6 -1
- package/dist/arcgis-coding-components/p-f75e9797.js +6 -0
- package/dist/arcgis-coding-components/{p-a1a4f5fc.js → p-f7de632b.js} +6 -1
- package/dist/cjs/{arcade-defaults-7faf4d5f.js → arcade-defaults-ca7e0df9.js} +487 -362
- package/dist/cjs/{arcade-mode-26b8bc7a.js → arcade-mode-804c5ea4.js} +24 -20
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +176 -112
- package/dist/cjs/arcgis-coding-components.cjs.js +6 -1
- package/dist/cjs/{css-eb1c8e5c.js → css-57d8d5ce.js} +5 -0
- package/dist/cjs/{cssMode-90f06d02.js → cssMode-26f96949.js} +7 -2
- package/dist/cjs/{html-1aa8e458.js → html-524d1fa5.js} +7 -2
- package/dist/cjs/{htmlMode-d3283acc.js → htmlMode-cfbfa149.js} +7 -2
- package/dist/cjs/{index-aaf14a3e.js → index-b2077a1b.js} +5 -0
- package/dist/cjs/index.cjs.js +7 -2
- package/dist/cjs/{javascript-7a4d9023.js → javascript-256166f8.js} +8 -3
- package/dist/cjs/{jsonMode-73be73dc.js → jsonMode-07101bba.js} +7 -2
- package/dist/cjs/loader.cjs.js +6 -1
- package/dist/cjs/{tsMode-95a699e0.js → tsMode-4bf06b38.js} +7 -2
- package/dist/cjs/{typescript-588df930.js → typescript-d05f2c7b.js} +7 -2
- package/dist/components/arcade-api.js +11 -6
- package/dist/components/arcade-contribution.js +16 -6
- package/dist/components/arcade-defaults.js +243 -118
- package/dist/components/arcade-mode.js +22 -18
- package/dist/components/arcade-results.js +137 -85
- package/dist/components/arcade-suggestions.js +9 -4
- package/dist/components/arcade-variables.js +10 -5
- package/dist/components/arcgis-arcade-api.js +5 -0
- package/dist/components/arcgis-arcade-editor.js +20 -8
- package/dist/components/arcgis-arcade-results.js +5 -0
- package/dist/components/arcgis-arcade-suggestions.js +5 -0
- package/dist/components/arcgis-arcade-variables.js +5 -0
- package/dist/components/arcgis-code-editor.js +5 -0
- package/dist/components/code-editor.js +9 -4
- package/dist/components/fields.js +5 -0
- package/dist/components/functional-components.js +5 -0
- package/dist/components/index.js +5 -0
- package/dist/components/index2.js +7 -2
- package/dist/components/markdown.js +5 -0
- package/dist/components/utilities.js +7 -2
- package/dist/esm/{arcade-defaults-0bc49d1c.js → arcade-defaults-f929db03.js} +479 -354
- package/dist/esm/{arcade-mode-01365fb8.js → arcade-mode-87d3ea19.js} +24 -20
- package/dist/esm/arcgis-arcade-api_6.entry.js +176 -112
- package/dist/esm/arcgis-coding-components.js +7 -2
- package/dist/esm/{css-aade9167.js → css-eb0f99ca.js} +5 -0
- package/dist/esm/{cssMode-edce5a89.js → cssMode-864388a5.js} +7 -2
- package/dist/esm/{html-00b724af.js → html-6c5b1b7a.js} +7 -2
- package/dist/esm/{htmlMode-ad3459b7.js → htmlMode-8edd9000.js} +7 -2
- package/dist/esm/{index-3732acb8.js → index-06f96b57.js} +5 -0
- package/dist/esm/index.js +7 -2
- package/dist/esm/{javascript-bdd52d83.js → javascript-2f8e7e0f.js} +8 -3
- package/dist/esm/{jsonMode-7b4c07fb.js → jsonMode-7cd18ebd.js} +7 -2
- package/dist/esm/loader.js +7 -2
- package/dist/esm/{tsMode-0bd06180.js → tsMode-23e39ee2.js} +7 -2
- package/dist/esm/{typescript-dfdad07a.js → typescript-c122e586.js} +7 -2
- package/dist/loader/cdn.js +5 -1
- package/dist/loader/index.cjs.js +5 -1
- package/dist/loader/index.es2017.js +5 -1
- package/dist/loader/index.js +5 -1
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +1 -1
- package/dist/types/components/arcade-results/arcade-results.d.ts +0 -5
- package/dist/types/components.d.ts +3 -3
- package/dist/types/utils/arcade-executor.d.ts +12 -4
- package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +6 -4
- package/dist/types/utils/profile/editor-profile.d.ts +10 -5
- package/dist/types/utils/profile/types.d.ts +3 -3
- package/dist/types/utils/profile/utils.d.ts +4 -0
- package/package.json +10 -10
- package/dist/arcgis-coding-components/p-86772125.js +0 -1
- package/dist/arcgis-coding-components/p-ac769046.entry.js +0 -1
|
@@ -145,6 +145,62 @@
|
|
|
145
145
|
}
|
|
146
146
|
]
|
|
147
147
|
},
|
|
148
|
+
{
|
|
149
|
+
"id": "knowledgegraph_functions",
|
|
150
|
+
"title": "Đ_Knowledge graph functions__________________________ớ",
|
|
151
|
+
"items": [
|
|
152
|
+
{
|
|
153
|
+
"type": "function",
|
|
154
|
+
"name": "knowledgegraphbyportalitem",
|
|
155
|
+
"bundle": "knowledge-graph",
|
|
156
|
+
"sinceVersion": "1.26",
|
|
157
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#knowledgegraphbyportalitem",
|
|
158
|
+
"description": "Đ_Returns a knowledge graph from a portal item________________________ớ.",
|
|
159
|
+
"examples": "\n##### Παράδειγμα\n\nĐ_Returns the knowledge graph from the portal item__________________________ớ.\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n);\n```\n\n",
|
|
160
|
+
"completion": {
|
|
161
|
+
"label": "KnowledgeGraphByPortalItem",
|
|
162
|
+
"detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
|
|
163
|
+
"insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
|
|
164
|
+
"insertTextMode": 2,
|
|
165
|
+
"insertTextFormat": 2,
|
|
166
|
+
"kind": 3,
|
|
167
|
+
"documentation": {
|
|
168
|
+
"kind": "markdown",
|
|
169
|
+
"value": "**[Από την έκδοση 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nĐ_Returns a knowledge graph from a portal item________________________ớ.\n\n**Παράμετροι**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - Đ_The Portal from which to query features_____________________ớ.\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Đ_The GUID of the portal item referencing a knowledge graph service. _This value must be a text literal.______________________________________________________ớ\n\n**Τιμή επιστροφής**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"parametersInfo": {
|
|
173
|
+
"min": 2,
|
|
174
|
+
"max": 2
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "function",
|
|
179
|
+
"name": "querygraph",
|
|
180
|
+
"bundle": "knowledge-graph",
|
|
181
|
+
"sinceVersion": "1.26",
|
|
182
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#querygraph",
|
|
183
|
+
"description": "Đ_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________ớ.",
|
|
184
|
+
"examples": "\n##### Παράδειγμα\n\nĐ_Queries the knowledge graph for information about the `Student` entities it contains____________________________________________ớ.\n\n```arcade\nvar results = QueryGraph(\n knowledgeGraph,\n 'MATCH (p:Student)-[e:EnrolledAt]->(s:School)\n WHERE s.name = 'Eastside Elementary'\n RETURN p,e,s.principal,s.numStaff\n LIMIT 1');\n\nreturn Text(results);\n```\n\n",
|
|
185
|
+
"completion": {
|
|
186
|
+
"label": "QueryGraph",
|
|
187
|
+
"detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Dictionary",
|
|
188
|
+
"insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
|
|
189
|
+
"insertTextMode": 2,
|
|
190
|
+
"insertTextFormat": 2,
|
|
191
|
+
"kind": 3,
|
|
192
|
+
"documentation": {
|
|
193
|
+
"kind": "markdown",
|
|
194
|
+
"value": "**[Από την έκδοση 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nĐ_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________ớ.\n\n**Παράμετροι**\n\n- **graph**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph) - Đ_The knowledge graph to query______________________________ớ.\n- **openCypherQuery**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Đ_The openCypher query to be executed against the knowledge graph_________________________________ớ.\n- **queryParameters** (_Optional_): [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - Đ_A dictionary of named query parameters for the openCypher query_________________________________ớ. Đ_The parameter names or keys in the dictionary are case-sensitive__________________________________ớ. Đ_Parameters accepted depend on the external graph store and can be of type: `Array`, `Date`, `Dictionary`, `Geometry`, `Number, Text`___________________________________________________________________ớ\n\n**Τιμή επιστροφής**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"parametersInfo": {
|
|
198
|
+
"min": 2,
|
|
199
|
+
"max": 3
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
148
204
|
{
|
|
149
205
|
"id": "geometry_functions",
|
|
150
206
|
"title": "Γεωμετρικές συναρτήσεις",
|
|
@@ -555,6 +611,57 @@
|
|
|
555
611
|
"max": 2
|
|
556
612
|
}
|
|
557
613
|
},
|
|
614
|
+
[
|
|
615
|
+
{
|
|
616
|
+
"type": "function",
|
|
617
|
+
"name": "defaultvalue",
|
|
618
|
+
"bundle": "core",
|
|
619
|
+
"sinceVersion": "1.26",
|
|
620
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
|
|
621
|
+
"description": "Returns a specified default value if a key in a geometry does not exist or the value at the specified key is `null` or an empty text value.",
|
|
622
|
+
"examples": "\n##### Παραδείγματα\n\nPoint that has a z-value\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is true\n// returns the value of Geometry($feature).z\n```\n\nPoint that does not have a z-value\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is false\n// returns 1000\n```\n\n",
|
|
623
|
+
"completion": {
|
|
624
|
+
"label": "DefaultValue",
|
|
625
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
626
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
627
|
+
"insertTextMode": 2,
|
|
628
|
+
"insertTextFormat": 2,
|
|
629
|
+
"kind": 3,
|
|
630
|
+
"documentation": {
|
|
631
|
+
"kind": "markdown",
|
|
632
|
+
"value": "**[Από την έκδοση 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if a key in a geometry does not exist or the value at the specified key is `null` or an empty text value.\n\n**Παράμετροι**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The input geometry to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the key does not exist or the value at the specified key is `null` or an empty text value.\n\n**Τιμή επιστροφής**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"parametersInfo": {
|
|
636
|
+
"min": 3,
|
|
637
|
+
"max": 3
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"type": "function",
|
|
642
|
+
"name": "defaultvalue",
|
|
643
|
+
"bundle": "core",
|
|
644
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
|
|
645
|
+
"description": "Returns a specified default value if at least one of the keys in a geometry's nested properties does not exist or the value at the specified key is `null` or an empty text value.",
|
|
646
|
+
"examples": "\n##### Παραδείγματα\n\nRing, coordinate, and x value all exist and have a value\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",0,0,\"z\"], 1000)\n// returns 100\n```\n\nRing does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",2,0,\"z\"], 1000)\n// returns 1000\n```\n\nRing and coordinate exist, but m-value does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",0,0,\"m\"], 100)\n// returns 100\n```\n\n",
|
|
647
|
+
"completion": {
|
|
648
|
+
"label": "DefaultValue",
|
|
649
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
650
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
651
|
+
"insertTextMode": 2,
|
|
652
|
+
"insertTextFormat": 2,
|
|
653
|
+
"kind": 3,
|
|
654
|
+
"documentation": {
|
|
655
|
+
"kind": "markdown",
|
|
656
|
+
"value": "Returns a specified default value if at least one of the keys in a geometry's nested properties does not exist or the value at the specified key is `null` or an empty text value.\n\n**Παράμετροι**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The input geometry to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**Τιμή επιστροφής**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key or index if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
"parametersInfo": {
|
|
660
|
+
"min": 3,
|
|
661
|
+
"max": 3
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
],
|
|
558
665
|
{
|
|
559
666
|
"type": "function",
|
|
560
667
|
"name": "densify",
|
|
@@ -705,6 +812,31 @@
|
|
|
705
812
|
"max": 3
|
|
706
813
|
}
|
|
707
814
|
},
|
|
815
|
+
{
|
|
816
|
+
"type": "function",
|
|
817
|
+
"name": "distancetocoordinate",
|
|
818
|
+
"bundle": "geometry",
|
|
819
|
+
"sinceVersion": "1.26",
|
|
820
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
|
|
821
|
+
"description": "Returns a coordinate along an input line based on a given distance. If the distance is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._",
|
|
822
|
+
"examples": "\n##### Παράδειγμα\n\nReturns the coordinate of the input polyline based on the given distance value\n\n```arcade\nvar result = DistanceToCoordinate(Geometry($feature), 1038);\n\nreturn result.coordinate;\n```\n\n",
|
|
823
|
+
"completion": {
|
|
824
|
+
"label": "DistanceToCoordinate",
|
|
825
|
+
"detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
|
|
826
|
+
"insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
|
|
827
|
+
"insertTextMode": 2,
|
|
828
|
+
"insertTextFormat": 2,
|
|
829
|
+
"kind": 3,
|
|
830
|
+
"documentation": {
|
|
831
|
+
"kind": "markdown",
|
|
832
|
+
"value": "**[Από την έκδοση 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a coordinate along an input line based on a given distance. If the distance is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**Παράμετροι**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to find a coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **inputDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The distance used to find the coordinate along `inputLine` from the start of the line.\n\n**Τιμή επιστροφής**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturns a dictionary with the following properties. If the distance is not found along the input line, then the result will be `null`.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The coordinates of a point along `inputLine` based on the given distance value. The `searchPoint` must have `hasZ` equal to `true` for the resulting `coordinate` to include a z value.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the start of the `inputLine` measured along the line to the `coordinate`.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - In the case of a polyline input, the index of the path to which the `coordinate` belongs.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index (relative to the path) of the line segment to which the `coordinate` belongs. If `coordinate` represents a vertex of the input line, then `segmentId` will return the index of the previous vertex. If `coordinate` is the first vertex of `inputLine`, then the value of `segmentId` will be `0`."
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
"parametersInfo": {
|
|
836
|
+
"min": 2,
|
|
837
|
+
"max": 2
|
|
838
|
+
}
|
|
839
|
+
},
|
|
708
840
|
{
|
|
709
841
|
"type": "function",
|
|
710
842
|
"name": "envelopeintersects",
|
|
@@ -878,6 +1010,58 @@
|
|
|
878
1010
|
"max": 1
|
|
879
1011
|
}
|
|
880
1012
|
},
|
|
1013
|
+
[
|
|
1014
|
+
{
|
|
1015
|
+
"type": "function",
|
|
1016
|
+
"name": "hasvalue",
|
|
1017
|
+
"bundle": "core",
|
|
1018
|
+
"sinceVersion": "1.26",
|
|
1019
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
|
|
1020
|
+
"description": "Indicates whether a geometry has a value at a given key or index.",
|
|
1021
|
+
"examples": "\n##### Παραδείγματα\n\nPoint that has a z value\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Point\"){\n return HasValue(Geometry($feature), \"z\")\n // returns true\n}\n```\n\nPolygon with key that does not exist\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Polygon\"){\n return HasValue(Geometry($feature), \"verticalCoordinateSystem\")\n // returns false\n}\n```\n\n",
|
|
1022
|
+
"completion": {
|
|
1023
|
+
"label": "HasValue",
|
|
1024
|
+
"detail": "HasValue(inputGeometry, key) -> Boolean",
|
|
1025
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
|
|
1026
|
+
"insertTextMode": 2,
|
|
1027
|
+
"insertTextFormat": 2,
|
|
1028
|
+
"kind": 3,
|
|
1029
|
+
"documentation": {
|
|
1030
|
+
"kind": "markdown",
|
|
1031
|
+
"value": "**[Από την έκδοση 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether a geometry has a value at a given key or index.\n\n**Παράμετροι**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The geometry to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key or property name to check.\n\n**Τιμή επιστροφής**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
"parametersInfo": {
|
|
1035
|
+
"min": 2,
|
|
1036
|
+
"max": 2
|
|
1037
|
+
}
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"type": "function",
|
|
1041
|
+
"name": "hasvalue",
|
|
1042
|
+
"bundle": "core",
|
|
1043
|
+
"sinceVersion": "1.26",
|
|
1044
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
|
|
1045
|
+
"description": "Checks whether a property or index nested several levels deep in a geometry has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.",
|
|
1046
|
+
"examples": "\n##### Παραδείγματα\n\nRing, coordinate, and x value all exist and have a value\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",0,0,\"x\"])){\n // if() evaluates to true, thus executing the return\n return shape.rings[0][0].x;\n // returns -97.06138\n}\n```\n\nRing does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",2,0,\"x\"])){\n // if() evaluates to false, thus not executing the return\n return shape.rings[2][0].x;\n // polygon only has one ring; there is not a third ring\n}\n```\n\nRing and coordinate exist, but m value does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",0,3,\"m\"])){\n // if() evaluates to false, thus not executing the return\n return shape.rings[0][3].m;\n // there is a coordinate at this location, but it does not have an m value\n}\n```\n\n",
|
|
1047
|
+
"completion": {
|
|
1048
|
+
"label": "HasValue",
|
|
1049
|
+
"detail": "HasValue(inputGeometry, keys) -> Boolean",
|
|
1050
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
|
|
1051
|
+
"insertTextMode": 2,
|
|
1052
|
+
"insertTextFormat": 2,
|
|
1053
|
+
"kind": 3,
|
|
1054
|
+
"documentation": {
|
|
1055
|
+
"kind": "markdown",
|
|
1056
|
+
"value": "**[Από την έκδοση 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether a property or index nested several levels deep in a geometry has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.\n\n**Παράμετροι**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The dictionary or feature to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the structure.\n\n**Τιμή επιστροφής**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
"parametersInfo": {
|
|
1060
|
+
"min": 2,
|
|
1061
|
+
"max": 2
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
],
|
|
881
1065
|
{
|
|
882
1066
|
"type": "function",
|
|
883
1067
|
"name": "intersection",
|
|
@@ -1053,6 +1237,31 @@
|
|
|
1053
1237
|
"max": 2
|
|
1054
1238
|
}
|
|
1055
1239
|
},
|
|
1240
|
+
{
|
|
1241
|
+
"type": "function",
|
|
1242
|
+
"name": "measuretocoordinate",
|
|
1243
|
+
"bundle": "geometry",
|
|
1244
|
+
"sinceVersion": "1.26",
|
|
1245
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
|
|
1246
|
+
"description": "Returns a coordinate along an input line based on a given measure, or m-value. If the measure is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._",
|
|
1247
|
+
"examples": "\n##### Παράδειγμα\n\nReturns the coordinate of the input polyline based on the given measure value\n\n```arcade\nvar result = MeasureToCoordinate(Geometry($feature), 110);\n\nreturn result.coordinate;\n```\n\n",
|
|
1248
|
+
"completion": {
|
|
1249
|
+
"label": "MeasureToCoordinate",
|
|
1250
|
+
"detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
|
|
1251
|
+
"insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
|
|
1252
|
+
"insertTextMode": 2,
|
|
1253
|
+
"insertTextFormat": 2,
|
|
1254
|
+
"kind": 3,
|
|
1255
|
+
"documentation": {
|
|
1256
|
+
"kind": "markdown",
|
|
1257
|
+
"value": "**[Από την έκδοση 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a coordinate along an input line based on a given measure, or m-value. If the measure is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**Παράμετροι**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to find a coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **inputMeasure**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The measure, or m-value, from which to find a coordinate along `inputLine` from the start of the line.\n\n**Τιμή επιστροφής**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturns a dictionary with the following properties. If the measure is not found along the input line, then the result will be `null`.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The coordinates of a point along `inputLine` based on the given measure value. The `searchPoint` must have `hasZ` equal to `true` for the resulting `coordinate` to include a z value.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the start of the `inputLine` measured along the line to the `coordinate`.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - In the case of a polyline input, the index of the path to which the `coordinate` belongs.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index (relative to the path) of the line segment to which the `coordinate` belongs. If `coordinate` represents a vertex of the input line, then `segmentId` will return the index of the previous vertex. If `coordinate` is the first vertex of `inputLine`, then the value of `segmentId` will be `0`."
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
"parametersInfo": {
|
|
1261
|
+
"min": 2,
|
|
1262
|
+
"max": 2
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
1056
1265
|
{
|
|
1057
1266
|
"type": "function",
|
|
1058
1267
|
"name": "multiparttosinglepart",
|
|
@@ -1169,7 +1378,7 @@
|
|
|
1169
1378
|
"kind": 3,
|
|
1170
1379
|
"documentation": {
|
|
1171
1380
|
"kind": "markdown",
|
|
1172
|
-
"value": "**[Από την έκδοση 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nΕπιστρέφει την πλησιέστερη συντεταγμένη (όχι κορυφή) της γεωμετρίας εισόδου στο σημείο αναζήτησης. Το επιστρεφόμενο λεξικό περιλαμβάνει επίσης τη μικρότερη επίπεδη απόσταση από το σημείο αναζήτησης έως την πλησιέστερη συντεταγμένη. Εάν το σημείο αναζήτησης τέμνει τη γεωμετρία εισόδου, τότε το σημείο αναζήτησης επιστρέφεται ως αποτέλεσμα με απόσταση μηδέν.\n\nΟι γεωμετρίες Feature στα προφίλ οπτικοποίησης και προσθήκης ετικετών γενικεύονται ανάλογα με την ανάλυση κλίμακας της προβολής για τη βελτίωση της απόδοσης της σχεδίασης. Οπότε η χρήση της γεωμετρίας ενός feature (π.χ. `$feature`) ως δεδομένα εισόδου σε οποιαδήποτε γεωμετρική συνάρτηση σε αυτά τα περιβάλλοντα θα επιστρέψει διαφορετικά αποτελέσματα σε κάθε επίπεδο κλίμακας. Άλλα προφίλ, όπως τα αναδυόμενα παράθυρα, παρέχουν τη γεωμετρία πλήρους ανάλυσης._\n\n**Παράμετροι**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Η γεωμετρία από την οποία προκύπτει η πλησιέστερη συντεταγμένη.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Το σημείο από το οποίο μπορείτε να βρείτε την πλησιέστερη συντεταγμένη της «inputGeometry».\n\n**Τιμή επιστροφής**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nΕπιστρέφει ένα λεξικό με τις ακόλουθες ιδιότητες\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Η πλησιέστερη συντεταγμένη από το \\\"inputGeometry\\\" στο \\\"searchPoint\\\".\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Η επίπεδη απόσταση από την πλησιέστερη συντεταγμένη στο «Σημείο αναζήτησης». Αυτό αντιπροσωπεύει τη μικρότερη απόσταση μεταξύ του \\\"inputGeometry\\\" και του \\\"searchPoint\\\"."
|
|
1381
|
+
"value": "**[Από την έκδοση 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nΕπιστρέφει την πλησιέστερη συντεταγμένη (όχι κορυφή) της γεωμετρίας εισόδου στο σημείο αναζήτησης. Το επιστρεφόμενο λεξικό περιλαμβάνει επίσης τη μικρότερη επίπεδη απόσταση από το σημείο αναζήτησης έως την πλησιέστερη συντεταγμένη. Εάν το σημείο αναζήτησης τέμνει τη γεωμετρία εισόδου, τότε το σημείο αναζήτησης επιστρέφεται ως αποτέλεσμα με απόσταση μηδέν.\n\nΟι γεωμετρίες Feature στα προφίλ οπτικοποίησης και προσθήκης ετικετών γενικεύονται ανάλογα με την ανάλυση κλίμακας της προβολής για τη βελτίωση της απόδοσης της σχεδίασης. Οπότε η χρήση της γεωμετρίας ενός feature (π.χ. `$feature`) ως δεδομένα εισόδου σε οποιαδήποτε γεωμετρική συνάρτηση σε αυτά τα περιβάλλοντα θα επιστρέψει διαφορετικά αποτελέσματα σε κάθε επίπεδο κλίμακας. Άλλα προφίλ, όπως τα αναδυόμενα παράθυρα, παρέχουν τη γεωμετρία πλήρους ανάλυσης._\n\n**Παράμετροι**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Η γεωμετρία από την οποία προκύπτει η πλησιέστερη συντεταγμένη.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Το σημείο από το οποίο μπορείτε να βρείτε την πλησιέστερη συντεταγμένη της «inputGeometry».\n\n**Τιμή επιστροφής**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nΕπιστρέφει ένα λεξικό με τις ακόλουθες ιδιότητες\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Η πλησιέστερη συντεταγμένη από το \\\"inputGeometry\\\" στο \\\"searchPoint\\\".\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Η επίπεδη απόσταση από την πλησιέστερη συντεταγμένη στο «Σημείο αναζήτησης». Αυτό αντιπροσωπεύει τη μικρότερη απόσταση μεταξύ του \\\"inputGeometry\\\" και του \\\"searchPoint\\\".\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
1173
1382
|
}
|
|
1174
1383
|
},
|
|
1175
1384
|
"parametersInfo": {
|
|
@@ -1194,7 +1403,7 @@
|
|
|
1194
1403
|
"kind": 3,
|
|
1195
1404
|
"documentation": {
|
|
1196
1405
|
"kind": "markdown",
|
|
1197
|
-
"value": "**[Από την έκδοση 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nΕπιστρέφει την πλησιέστερη κορυφή της γεωμετρίας εισόδου στο σημείο αναζήτησης. Το επιστρεφόμενο λεξικό περιλαμβάνει την επίπεδη απόσταση από το σημείο αναζήτησης έως την πλησιέστερη κορυφή.\n\nΟι γεωμετρίες Feature στα προφίλ οπτικοποίησης και προσθήκης ετικετών γενικεύονται ανάλογα με την ανάλυση κλίμακας της προβολής για τη βελτίωση της απόδοσης της σχεδίασης. Οπότε η χρήση της γεωμετρίας ενός feature (π.χ. `$feature`) ως δεδομένα εισόδου σε οποιαδήποτε γεωμετρική συνάρτηση σε αυτά τα περιβάλλοντα θα επιστρέψει διαφορετικά αποτελέσματα σε κάθε επίπεδο κλίμακας. Άλλα προφίλ, όπως τα αναδυόμενα παράθυρα, παρέχουν τη γεωμετρία πλήρους ανάλυσης._\n\n**Παράμετροι**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Η γεωμετρία από την οποία προκύπτει η πλησιέστερη κορυφή.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Το σημείο από το οποίο μπορείτε να βρείτε την πλησιέστερη κορυφή της «inputGeometry».\n\n**Τιμή επιστροφής**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nΕπιστρέφει ένα λεξικό με τις ακόλουθες ιδιότητες\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Η θέση του σημείου που αντιπροσωπεύει την πλησιέστερη κορυφή από το \\\"inputGeometry\\\" στο \\\"searchPoint\\\".\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Η απόσταση επιπέδου από την πλησιέστερη κορυφή της γεωμετρίας εισόδου στο `searchPoint
|
|
1406
|
+
"value": "**[Από την έκδοση 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nΕπιστρέφει την πλησιέστερη κορυφή της γεωμετρίας εισόδου στο σημείο αναζήτησης. Το επιστρεφόμενο λεξικό περιλαμβάνει την επίπεδη απόσταση από το σημείο αναζήτησης έως την πλησιέστερη κορυφή.\n\nΟι γεωμετρίες Feature στα προφίλ οπτικοποίησης και προσθήκης ετικετών γενικεύονται ανάλογα με την ανάλυση κλίμακας της προβολής για τη βελτίωση της απόδοσης της σχεδίασης. Οπότε η χρήση της γεωμετρίας ενός feature (π.χ. `$feature`) ως δεδομένα εισόδου σε οποιαδήποτε γεωμετρική συνάρτηση σε αυτά τα περιβάλλοντα θα επιστρέψει διαφορετικά αποτελέσματα σε κάθε επίπεδο κλίμακας. Άλλα προφίλ, όπως τα αναδυόμενα παράθυρα, παρέχουν τη γεωμετρία πλήρους ανάλυσης._\n\n**Παράμετροι**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Η γεωμετρία από την οποία προκύπτει η πλησιέστερη κορυφή.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Το σημείο από το οποίο μπορείτε να βρείτε την πλησιέστερη κορυφή της «inputGeometry».\n\n**Τιμή επιστροφής**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nΕπιστρέφει ένα λεξικό με τις ακόλουθες ιδιότητες\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Η θέση του σημείου που αντιπροσωπεύει την πλησιέστερη κορυφή από το \\\"inputGeometry\\\" στο \\\"searchPoint\\\".\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Η απόσταση επιπέδου από την πλησιέστερη κορυφή της γεωμετρίας εισόδου στο `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
1198
1407
|
}
|
|
1199
1408
|
},
|
|
1200
1409
|
"parametersInfo": {
|
|
@@ -1302,6 +1511,31 @@
|
|
|
1302
1511
|
}
|
|
1303
1512
|
}
|
|
1304
1513
|
],
|
|
1514
|
+
{
|
|
1515
|
+
"type": "function",
|
|
1516
|
+
"name": "pointtocoordinate",
|
|
1517
|
+
"bundle": "geometry",
|
|
1518
|
+
"sinceVersion": "1.26",
|
|
1519
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
|
|
1520
|
+
"description": "Returns the nearest coordinate and distance to that coordinate of the search point to the input line.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._",
|
|
1521
|
+
"examples": "\n##### Παράδειγμα\n\nReturns the distance to the nearest coordinate along the input polyline based on the clicked location to open a popup\n\n```arcade\nvar result;\n\nif (TypeOf($userInput) == \"Point\"){\n result = PointToCoordinate(Geometry($feature), $userInput);\n}\n\nreturn result.distanceAlong;\n```\n\n",
|
|
1522
|
+
"completion": {
|
|
1523
|
+
"label": "PointToCoordinate",
|
|
1524
|
+
"detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
|
|
1525
|
+
"insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
|
|
1526
|
+
"insertTextMode": 2,
|
|
1527
|
+
"insertTextFormat": 2,
|
|
1528
|
+
"kind": 3,
|
|
1529
|
+
"documentation": {
|
|
1530
|
+
"kind": "markdown",
|
|
1531
|
+
"value": "**[Από την έκδοση 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the nearest coordinate and distance to that coordinate of the search point to the input line.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**Παράμετροι**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to get the nearest coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The point from which to find the nearest coordinate of the `inputLine`.\n\n**Τιμή επιστροφής**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturns a dictionary with the following properties.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The point coordinate representing the nearest coordinate along the `inputLine` to the `searchPoint`. The `searchPoint` must have `hasZ` equal to `true` for the resulting `coordinate` to include a z value.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the `searchPoint` to the `coordinate`.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the start of the `inputLine` measured along the line to the `coordinate`.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - In the case of a polyline input, the index of the path to which the `coordinate` belongs.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index (relative to the path) of the line segment to which the `coordinate` belongs. If `coordinate` represents a vertex of the input line, then `segmentId` will return the index of the previous vertex. If `coordinate` is the first vertex of `inputLine`, then the value of `segmentId` will be `0`."
|
|
1532
|
+
}
|
|
1533
|
+
},
|
|
1534
|
+
"parametersInfo": {
|
|
1535
|
+
"min": 2,
|
|
1536
|
+
"max": 2
|
|
1537
|
+
}
|
|
1538
|
+
},
|
|
1305
1539
|
[
|
|
1306
1540
|
{
|
|
1307
1541
|
"type": "function",
|
|
@@ -3537,7 +3771,7 @@
|
|
|
3537
3771
|
"sinceVersion": "1.14",
|
|
3538
3772
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
|
|
3539
3773
|
"description": "Επιτρέπει το επίπεδο (π.χ. Καρτεσιανό) μήκος της εισόδου FeatureSet λαμβάνοντας υπόψη τις πληροφορίες ύψους ή Z. Η γεωμετρία που παρέχεται σε αυτή τη λειτουργία πρέπει να λάβει σύστημα προβαλλόμενων συντεταγμένων. Εάν η αναφορά χωρικών δεδομένων δεν παρέχει μια τιμή για τις μονάδες Z, τότε το αποτέλεσμα θα επιστραφεί σε μέτρα. Λάβετε υπόψη ότι δεν υποστηρίζουν όλοι οι πελάτες (όπως η σειρά 3.x του ArcGIS API για το JavaScript) να ζητούνται τιμές Z ακόμα και όταν τα δεδομένα περιέχουν πληροφορίες Z.\n\nΟι γεωμετρίες Feature στα προφίλ οπτικοποίησης και προσθήκης ετικετών γενικεύονται ανάλογα με την ανάλυση κλίμακας της προβολής για τη βελτίωση της απόδοσης της σχεδίασης. Οπότε η χρήση της γεωμετρίας ενός feature (π.χ. `$feature`) ως δεδομένα εισόδου σε οποιαδήποτε γεωμετρική συνάρτηση σε αυτά τα περιβάλλοντα θα επιστρέψει διαφορετικά αποτελέσματα σε κάθε επίπεδο κλίμακας. Άλλα προφίλ, όπως τα αναδυόμενα παράθυρα, παρέχουν τη γεωμετρία πλήρους ανάλυσης._",
|
|
3540
|
-
"examples": "\n##### Παράδειγμα\n\nΕπιστρέφει το τρισδιάστατο μήκος των στοιχείων του θεματικού επιπέδου σε μέτρα\n\n```arcade\
|
|
3774
|
+
"examples": "\n##### Παράδειγμα\n\nΕπιστρέφει το τρισδιάστατο μήκος των στοιχείων του θεματικού επιπέδου σε μέτρα\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
|
|
3541
3775
|
"completion": {
|
|
3542
3776
|
"label": "Length3D",
|
|
3543
3777
|
"detail": "Length3D(features, unit?) -> Number",
|
|
@@ -5335,7 +5569,7 @@
|
|
|
5335
5569
|
"sinceVersion": "1.12",
|
|
5336
5570
|
"link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
|
|
5337
5571
|
"description": "Το σύνολο των αποστάσεων που έχουν διανυθεί μεταξύ παρατηρήσεων από την πρώτη ως την τρέχουσα συν την καθορισμένη τιμή.",
|
|
5338
|
-
"examples": "\n##### Παραδείγματα\n\nΗ τροχιά σας έχει έξι στοιχεία, όπως φαίνεται πιο πάνω. Η έκφραση επιστρέφει μια τιμή για κάθε στοιχείο στην τροχιά. Στο πρώτο παράδειγμα εξετάζουμε αποτελέσματα κατά την αξιολόγησή τους στο στοιχείο 2 (p2) με τιμή δείκτη 2. Ο υπολογισμός είναι «30 + 80 + 60 = 170».\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nΗ τροχιά σας έχει έξι στοιχεία, όπως φαίνεται πιο πάνω. Η έκφραση επιστρέφει μια τιμή για κάθε στοιχείο στην τροχιά. Στο επόμενο παράδειγμα εξετάζουμε αποτελέσματα κατά την αξιολόγησή τους στο στοιχείο 4 (p4) με τιμή δείκτη 4. Ο υπολογισμός είναι «25 + 35 + 30 + 80 + 60 = 230».\n\n```arcade\nTrackDistanceAt(
|
|
5572
|
+
"examples": "\n##### Παραδείγματα\n\nΗ τροχιά σας έχει έξι στοιχεία, όπως φαίνεται πιο πάνω. Η έκφραση επιστρέφει μια τιμή για κάθε στοιχείο στην τροχιά. Στο πρώτο παράδειγμα εξετάζουμε αποτελέσματα κατά την αξιολόγησή τους στο στοιχείο 2 (p2) με τιμή δείκτη 2. Ο υπολογισμός είναι «30 + 80 + 60 = 170».\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nΗ τροχιά σας έχει έξι στοιχεία, όπως φαίνεται πιο πάνω. Η έκφραση επιστρέφει μια τιμή για κάθε στοιχείο στην τροχιά. Στο επόμενο παράδειγμα εξετάζουμε αποτελέσματα κατά την αξιολόγησή τους στο στοιχείο 4 (p4) με τιμή δείκτη 4. Ο υπολογισμός είναι «25 + 35 + 30 + 80 + 60 = 230».\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n",
|
|
5339
5573
|
"completion": {
|
|
5340
5574
|
"label": "TrackDistanceAt",
|
|
5341
5575
|
"detail": "TrackDistanceAt(index) -> Number",
|
|
@@ -6102,6 +6336,57 @@
|
|
|
6102
6336
|
"id": "dictionary_functions",
|
|
6103
6337
|
"title": "Συναρτήσεις λεξικών",
|
|
6104
6338
|
"items": [
|
|
6339
|
+
[
|
|
6340
|
+
{
|
|
6341
|
+
"type": "function",
|
|
6342
|
+
"name": "defaultvalue",
|
|
6343
|
+
"bundle": "core",
|
|
6344
|
+
"sinceVersion": "1.26",
|
|
6345
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
|
|
6346
|
+
"description": "Returns a specified default value if a key in a dictionary does not exist or the value at the specified key is `null` or an empty text value.",
|
|
6347
|
+
"examples": "\n##### Παραδείγματα\n\nDefaultValue returns a defined value\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, \"time\", \"No time logged\")\n// value of data.time is defined, so it is returned\n// returns Jan 24, 2024, 12:00:00 PM system time\n```\n\nDefaultValue returns a default if there is no value at the specified key.\n\n```arcade\nvar data = {\n time: '',\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, \"time\", \"No time logged\")\n// value of data.time is empty, so the default is returned\n// returns \"No time logged\"\n```\n\nDefaultValue returns a default if the key does not exist.\n\n```arcade\nvar data = {\n time: ''\n}\n\nDefaultValue(data, \"conditions\", \"n/a\")\n// the conditions key does not exist, so the default is returned\n// returns \"n/a\"\n```\n\n",
|
|
6348
|
+
"completion": {
|
|
6349
|
+
"label": "DefaultValue",
|
|
6350
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
6351
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
6352
|
+
"insertTextMode": 2,
|
|
6353
|
+
"insertTextFormat": 2,
|
|
6354
|
+
"kind": 3,
|
|
6355
|
+
"documentation": {
|
|
6356
|
+
"kind": "markdown",
|
|
6357
|
+
"value": "**[Από την έκδοση 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if a key in a dictionary does not exist or the value at the specified key is `null` or an empty text value.\n\n**Παράμετροι**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The input dictionary to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the key does not exist or the value at the specified key is `null` or an empty text value.\n\n**Τιμή επιστροφής**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
6358
|
+
}
|
|
6359
|
+
},
|
|
6360
|
+
"parametersInfo": {
|
|
6361
|
+
"min": 3,
|
|
6362
|
+
"max": 3
|
|
6363
|
+
}
|
|
6364
|
+
},
|
|
6365
|
+
{
|
|
6366
|
+
"type": "function",
|
|
6367
|
+
"name": "defaultvalue",
|
|
6368
|
+
"bundle": "core",
|
|
6369
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
|
|
6370
|
+
"description": "Returns a specified default value if at least one of the keys in a nested dictionary does not exist or the value at the specified key is `null` or an empty text value.",
|
|
6371
|
+
"examples": "\n##### Παραδείγματα\n\nDefaultValue returns a defined value\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"value\"], \"No time logged\")\n// value of data.weather.precipitation.value is defined, so it is returned\n// returns 0.4\n```\n\nDefaultValue returns a default if there is no value at the specified key.\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: null,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"value\"], 0)\n// value of data.weather.precipitation.value is null, so the default is returned\n// returns 0\n```\n\nDefaultValue returns a default if the key does not exist.\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: null,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"wind\", \"value\"], \"n/a\")\n// the data.weather.wind key does not exist, so the default is returned\n// returns \"n/a\"\n```\n\nCheck null value in an array within a dictionary with key that exists\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"values\", 3], 0)\n// the value data.weather.precipitation.values[3] is null, so the default is returned\n// returns 0\n```\n\n",
|
|
6372
|
+
"completion": {
|
|
6373
|
+
"label": "DefaultValue",
|
|
6374
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
6375
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
6376
|
+
"insertTextMode": 2,
|
|
6377
|
+
"insertTextFormat": 2,
|
|
6378
|
+
"kind": 3,
|
|
6379
|
+
"documentation": {
|
|
6380
|
+
"kind": "markdown",
|
|
6381
|
+
"value": "Returns a specified default value if at least one of the keys in a nested dictionary does not exist or the value at the specified key is `null` or an empty text value.\n\n**Παράμετροι**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The input dictionary to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**Τιμή επιστροφής**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key or index if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
6382
|
+
}
|
|
6383
|
+
},
|
|
6384
|
+
"parametersInfo": {
|
|
6385
|
+
"min": 3,
|
|
6386
|
+
"max": 3
|
|
6387
|
+
}
|
|
6388
|
+
}
|
|
6389
|
+
],
|
|
6105
6390
|
[
|
|
6106
6391
|
{
|
|
6107
6392
|
"type": "function",
|
|
@@ -6277,31 +6562,58 @@
|
|
|
6277
6562
|
"max": 2
|
|
6278
6563
|
}
|
|
6279
6564
|
},
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
"
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
"
|
|
6297
|
-
|
|
6565
|
+
[
|
|
6566
|
+
{
|
|
6567
|
+
"type": "function",
|
|
6568
|
+
"name": "hasvalue",
|
|
6569
|
+
"bundle": "core",
|
|
6570
|
+
"sinceVersion": "1.20",
|
|
6571
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
|
|
6572
|
+
"description": "Indicates whether a dictionary has a given key and if that key has a value.",
|
|
6573
|
+
"examples": "\n##### Παραδείγματα\n\nDictionary with key that has a value\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', 18519);\nHasValue(d, 'Cobourg');\n// returns true\n```\n\nDictionary with key that does not have a value\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', null);\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nDictionary without the provided key\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000');\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nDictionary without the provided key\n\n```arcade\nif ( HasValue( Schema($feature).fields[0], \"domain\" ) ) {\n // Do something with the value if true\n}\n```\n\n",
|
|
6574
|
+
"completion": {
|
|
6575
|
+
"label": "HasValue",
|
|
6576
|
+
"detail": "HasValue(inputDictionary, key) -> Boolean",
|
|
6577
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
|
|
6578
|
+
"insertTextMode": 2,
|
|
6579
|
+
"insertTextFormat": 2,
|
|
6580
|
+
"kind": 3,
|
|
6581
|
+
"documentation": {
|
|
6582
|
+
"kind": "markdown",
|
|
6583
|
+
"value": "**[Από την έκδοση 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether a dictionary has a given key and if that key has a value.\n\n**Παράμετροι**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The dictionary to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key or field name to check.\n\n**Τιμή επιστροφής**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
6584
|
+
}
|
|
6585
|
+
},
|
|
6586
|
+
"parametersInfo": {
|
|
6587
|
+
"min": 2,
|
|
6588
|
+
"max": 2
|
|
6298
6589
|
}
|
|
6299
6590
|
},
|
|
6300
|
-
|
|
6301
|
-
"
|
|
6302
|
-
"
|
|
6591
|
+
{
|
|
6592
|
+
"type": "function",
|
|
6593
|
+
"name": "hasvalue",
|
|
6594
|
+
"bundle": "core",
|
|
6595
|
+
"sinceVersion": "1.26",
|
|
6596
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
|
|
6597
|
+
"description": "Checks whether a property nested several levels deep in a dictionary has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.",
|
|
6598
|
+
"examples": "\n##### Παραδείγματα\n\nCheck dictionary with key that has a nested value\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"value\"])){\n // if() evaluates to true, thus executing the return\n return data.weather.precipitation.value;\n}\n```\n\nCheck value in a dictionary with key that does not exist\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"values\", 0])){\n // if() evaluates to false (\"values\" does not exist), thus avoiding the block\n return data.weather.precipitation.values;\n}\n```\n\nCheck value in an array within a dictionary with key that does exist\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"values\", 6])){\n // if() evaluates to true, thus executing the return\n return data.weather.precipitation.values[6];\n}\n```\n\n",
|
|
6599
|
+
"completion": {
|
|
6600
|
+
"label": "HasValue",
|
|
6601
|
+
"detail": "HasValue(inputDictionary, keys) -> Boolean",
|
|
6602
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
|
|
6603
|
+
"insertTextMode": 2,
|
|
6604
|
+
"insertTextFormat": 2,
|
|
6605
|
+
"kind": 3,
|
|
6606
|
+
"documentation": {
|
|
6607
|
+
"kind": "markdown",
|
|
6608
|
+
"value": "**[Από την έκδοση 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether a property nested several levels deep in a dictionary has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.\n\n**Παράμετροι**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The dictionary to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the structure.\n\n**Τιμή επιστροφής**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
6609
|
+
}
|
|
6610
|
+
},
|
|
6611
|
+
"parametersInfo": {
|
|
6612
|
+
"min": 2,
|
|
6613
|
+
"max": 2
|
|
6614
|
+
}
|
|
6303
6615
|
}
|
|
6304
|
-
|
|
6616
|
+
]
|
|
6305
6617
|
]
|
|
6306
6618
|
},
|
|
6307
6619
|
{
|
|
@@ -6459,6 +6771,57 @@
|
|
|
6459
6771
|
"max": 1
|
|
6460
6772
|
}
|
|
6461
6773
|
},
|
|
6774
|
+
[
|
|
6775
|
+
{
|
|
6776
|
+
"type": "function",
|
|
6777
|
+
"name": "defaultvalue",
|
|
6778
|
+
"bundle": "core",
|
|
6779
|
+
"sinceVersion": "1.26",
|
|
6780
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
|
|
6781
|
+
"description": "Returns a specified default value if an index in an array does not exist or the value at the specified index is `null` or an empty text value.",
|
|
6782
|
+
"examples": "\n##### Παραδείγματα\n\nArray with value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 4, \"No data\");\n// returns 901\n```\n\nArray with no value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 5, \"No data\");\n// returns \"No data\"\n```\n\nArray with a null value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 2, \"No data\");\n// returns \"No data\"\n```\n\n",
|
|
6783
|
+
"completion": {
|
|
6784
|
+
"label": "DefaultValue",
|
|
6785
|
+
"detail": "DefaultValue(container, index, defaultValue) -> Any",
|
|
6786
|
+
"insertText": "DefaultValue(${1:container_}, ${2:index_}, ${3:defaultValue_})$0",
|
|
6787
|
+
"insertTextMode": 2,
|
|
6788
|
+
"insertTextFormat": 2,
|
|
6789
|
+
"kind": 3,
|
|
6790
|
+
"documentation": {
|
|
6791
|
+
"kind": "markdown",
|
|
6792
|
+
"value": "**[Από την έκδοση 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if an index in an array does not exist or the value at the specified index is `null` or an empty text value.\n\n**Παράμετροι**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The input array to check.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the index does not exist or the value at the specified index is `null` or an empty text value.\n\n**Τιμή επιστροφής**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified index if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
6793
|
+
}
|
|
6794
|
+
},
|
|
6795
|
+
"parametersInfo": {
|
|
6796
|
+
"min": 3,
|
|
6797
|
+
"max": 3
|
|
6798
|
+
}
|
|
6799
|
+
},
|
|
6800
|
+
{
|
|
6801
|
+
"type": "function",
|
|
6802
|
+
"name": "defaultvalue",
|
|
6803
|
+
"bundle": "core",
|
|
6804
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
|
|
6805
|
+
"description": "Checks whether an index nested several levels deep in a multidimensional array has a value and returns that value if present. Otherwise, this function returns a specified default value if at least one of the nested keys or indices does not exist or the value at the specified key or index is `null` or an empty text value. This allows you to drill into a nested structure in one step rather than check values within each array.",
|
|
6806
|
+
"examples": "\n##### Παραδείγματα\n\nArray with a value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [2, 3], \"No data\");\n// returns 1\n```\n\nArray with no value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [2, 10], \"No data\");\n// returns \"No data\"\n```\n\nArray with no value at the parent index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [10, 3], \"No data\");\n// returns \"No data\"\n```\n\nArray of dictionaries with nested values\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nvar a = [ data, data2, data3 ]\nDefaultValue(a, [0, \"weather\",\"precipitation\",\"values\", 6], \"No data\");\n// returns 1\n```\n\n",
|
|
6807
|
+
"completion": {
|
|
6808
|
+
"label": "DefaultValue",
|
|
6809
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
6810
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
6811
|
+
"insertTextMode": 2,
|
|
6812
|
+
"insertTextFormat": 2,
|
|
6813
|
+
"kind": 3,
|
|
6814
|
+
"documentation": {
|
|
6815
|
+
"kind": "markdown",
|
|
6816
|
+
"value": "Checks whether an index nested several levels deep in a multidimensional array has a value and returns that value if present. Otherwise, this function returns a specified default value if at least one of the nested keys or indices does not exist or the value at the specified key or index is `null` or an empty text value. This allows you to drill into a nested structure in one step rather than check values within each array.\n\n**Παράμετροι**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The input array to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**Τιμή επιστροφής**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key or index if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
6817
|
+
}
|
|
6818
|
+
},
|
|
6819
|
+
"parametersInfo": {
|
|
6820
|
+
"min": 3,
|
|
6821
|
+
"max": 3
|
|
6822
|
+
}
|
|
6823
|
+
}
|
|
6824
|
+
],
|
|
6462
6825
|
[
|
|
6463
6826
|
{
|
|
6464
6827
|
"type": "function",
|
|
@@ -6610,6 +6973,58 @@
|
|
|
6610
6973
|
"max": 1
|
|
6611
6974
|
}
|
|
6612
6975
|
},
|
|
6976
|
+
[
|
|
6977
|
+
{
|
|
6978
|
+
"type": "function",
|
|
6979
|
+
"name": "hasvalue",
|
|
6980
|
+
"bundle": "core",
|
|
6981
|
+
"sinceVersion": "1.26",
|
|
6982
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
|
|
6983
|
+
"description": "Indicates whether an array has a value at the given index.",
|
|
6984
|
+
"examples": "\n##### Παραδείγματα\n\nArray with value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 4);\n// returns true\n```\n\nArray with no value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 5);\n// returns false\n```\n\nArray with a null value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 2);\n// returns false\n```\n\n",
|
|
6985
|
+
"completion": {
|
|
6986
|
+
"label": "HasValue",
|
|
6987
|
+
"detail": "HasValue(inputArray, index) -> Boolean",
|
|
6988
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:index_})$0",
|
|
6989
|
+
"insertTextMode": 2,
|
|
6990
|
+
"insertTextFormat": 2,
|
|
6991
|
+
"kind": 3,
|
|
6992
|
+
"documentation": {
|
|
6993
|
+
"kind": "markdown",
|
|
6994
|
+
"value": "**[Από την έκδοση 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether an array has a value at the given index.\n\n**Παράμετροι**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The array to check.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index to check.\n\n**Τιμή επιστροφής**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
6995
|
+
}
|
|
6996
|
+
},
|
|
6997
|
+
"parametersInfo": {
|
|
6998
|
+
"min": 2,
|
|
6999
|
+
"max": 2
|
|
7000
|
+
}
|
|
7001
|
+
},
|
|
7002
|
+
{
|
|
7003
|
+
"type": "function",
|
|
7004
|
+
"name": "hasvalue",
|
|
7005
|
+
"bundle": "core",
|
|
7006
|
+
"sinceVersion": "1.26",
|
|
7007
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
|
|
7008
|
+
"description": "Checks whether an index nested several levels deep in a multidimensional array has a value. This allows you to drill into a nested structure in one step rather than check values within each array. Returns `true` if the indexes at each level of the structure exist and include a non-null value.",
|
|
7009
|
+
"examples": "\n##### Παραδείγματα\n\nArray with a value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 4]);\n// returns true\n```\n\nArray with no value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 10]);\n// returns false\n```\n\nArray with no value at the parent index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [10, 5]);\n// returns false\n```\n\nArray of dictionaries with nested values\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nvar a = [ data, data2, data3 ]\nif(HasValue(a, [0, \"weather\",\"precipitation\",\"values\", 6])){\n // This check succeeds so the value will be returned\n return a[0].weather.precipitation.values[6];\n // returns 1\n}\n```\n\n",
|
|
7010
|
+
"completion": {
|
|
7011
|
+
"label": "HasValue",
|
|
7012
|
+
"detail": "HasValue(inputArray, indexes) -> Boolean",
|
|
7013
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:indexes_})$0",
|
|
7014
|
+
"insertTextMode": 2,
|
|
7015
|
+
"insertTextFormat": 2,
|
|
7016
|
+
"kind": 3,
|
|
7017
|
+
"documentation": {
|
|
7018
|
+
"kind": "markdown",
|
|
7019
|
+
"value": "**[Από την έκδοση 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether an index nested several levels deep in a multidimensional array has a value. This allows you to drill into a nested structure in one step rather than check values within each array. Returns `true` if the indexes at each level of the structure exist and include a non-null value.\n\n**Παράμετροι**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The array to check.\n- **indexes**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the structure.\n\n**Τιμή επιστροφής**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7020
|
+
}
|
|
7021
|
+
},
|
|
7022
|
+
"parametersInfo": {
|
|
7023
|
+
"min": 2,
|
|
7024
|
+
"max": 2
|
|
7025
|
+
}
|
|
7026
|
+
}
|
|
7027
|
+
],
|
|
6613
7028
|
{
|
|
6614
7029
|
"type": "function",
|
|
6615
7030
|
"name": "includes",
|
|
@@ -7212,6 +7627,31 @@
|
|
|
7212
7627
|
"max": 1
|
|
7213
7628
|
}
|
|
7214
7629
|
},
|
|
7630
|
+
{
|
|
7631
|
+
"type": "function",
|
|
7632
|
+
"name": "hasvalue",
|
|
7633
|
+
"bundle": "core",
|
|
7634
|
+
"sinceVersion": "1.20",
|
|
7635
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
|
|
7636
|
+
"description": "Indicates whether a feature has a given field and if that field has a value.",
|
|
7637
|
+
"examples": "\n##### Παράδειγμα\n\nReturn false if feature attribute does not exist or is empty\n\n```arcade\nif(HasValue($feature, \"population\")){\n return $feature.population / AreaGeodetic($feature)\n}\n// Returns the population density if population is available\n```\n\n",
|
|
7638
|
+
"completion": {
|
|
7639
|
+
"label": "HasValue",
|
|
7640
|
+
"detail": "HasValue(inputFeature, fieldName) -> Boolean",
|
|
7641
|
+
"insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
|
|
7642
|
+
"insertTextMode": 2,
|
|
7643
|
+
"insertTextFormat": 2,
|
|
7644
|
+
"kind": 3,
|
|
7645
|
+
"documentation": {
|
|
7646
|
+
"kind": "markdown",
|
|
7647
|
+
"value": "**[Από την έκδοση 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether a feature has a given field and if that field has a value.\n\n**Παράμετροι**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The feature to check.\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The field name to check.\n\n**Τιμή επιστροφής**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7648
|
+
}
|
|
7649
|
+
},
|
|
7650
|
+
"parametersInfo": {
|
|
7651
|
+
"min": 2,
|
|
7652
|
+
"max": 2
|
|
7653
|
+
}
|
|
7654
|
+
},
|
|
7215
7655
|
{
|
|
7216
7656
|
"type": "function",
|
|
7217
7657
|
"name": "schema",
|