@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
|
@@ -300,6 +300,57 @@
|
|
|
300
300
|
"max": 1
|
|
301
301
|
}
|
|
302
302
|
},
|
|
303
|
+
[
|
|
304
|
+
{
|
|
305
|
+
"type": "function",
|
|
306
|
+
"name": "defaultvalue",
|
|
307
|
+
"bundle": "core",
|
|
308
|
+
"sinceVersion": "1.26",
|
|
309
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
|
|
310
|
+
"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.",
|
|
311
|
+
"examples": "\n##### Voorbeelden\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",
|
|
312
|
+
"completion": {
|
|
313
|
+
"label": "DefaultValue",
|
|
314
|
+
"detail": "DefaultValue(container, index, defaultValue) -> Any",
|
|
315
|
+
"insertText": "DefaultValue(${1:container_}, ${2:index_}, ${3:defaultValue_})$0",
|
|
316
|
+
"insertTextMode": 2,
|
|
317
|
+
"insertTextFormat": 2,
|
|
318
|
+
"kind": 3,
|
|
319
|
+
"documentation": {
|
|
320
|
+
"kind": "markdown",
|
|
321
|
+
"value": "**[Sinds versie 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**Parameters**\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**Retourwaarde**: [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`."
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"parametersInfo": {
|
|
325
|
+
"min": 3,
|
|
326
|
+
"max": 3
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"type": "function",
|
|
331
|
+
"name": "defaultvalue",
|
|
332
|
+
"bundle": "core",
|
|
333
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
|
|
334
|
+
"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.",
|
|
335
|
+
"examples": "\n##### Voorbeelden\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",
|
|
336
|
+
"completion": {
|
|
337
|
+
"label": "DefaultValue",
|
|
338
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
339
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
340
|
+
"insertTextMode": 2,
|
|
341
|
+
"insertTextFormat": 2,
|
|
342
|
+
"kind": 3,
|
|
343
|
+
"documentation": {
|
|
344
|
+
"kind": "markdown",
|
|
345
|
+
"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**Parameters**\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**Retourwaarde**: [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`."
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"parametersInfo": {
|
|
349
|
+
"min": 3,
|
|
350
|
+
"max": 3
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
],
|
|
303
354
|
[
|
|
304
355
|
{
|
|
305
356
|
"type": "function",
|
|
@@ -451,6 +502,58 @@
|
|
|
451
502
|
"max": 1
|
|
452
503
|
}
|
|
453
504
|
},
|
|
505
|
+
[
|
|
506
|
+
{
|
|
507
|
+
"type": "function",
|
|
508
|
+
"name": "hasvalue",
|
|
509
|
+
"bundle": "core",
|
|
510
|
+
"sinceVersion": "1.26",
|
|
511
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
|
|
512
|
+
"description": "Indicates whether an array has a value at the given index.",
|
|
513
|
+
"examples": "\n##### Voorbeelden\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",
|
|
514
|
+
"completion": {
|
|
515
|
+
"label": "HasValue",
|
|
516
|
+
"detail": "HasValue(inputArray, index) -> Boolean",
|
|
517
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:index_})$0",
|
|
518
|
+
"insertTextMode": 2,
|
|
519
|
+
"insertTextFormat": 2,
|
|
520
|
+
"kind": 3,
|
|
521
|
+
"documentation": {
|
|
522
|
+
"kind": "markdown",
|
|
523
|
+
"value": "**[Sinds versie 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether an array has a value at the given index.\n\n**Parameters**\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**Retourwaarde**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
"parametersInfo": {
|
|
527
|
+
"min": 2,
|
|
528
|
+
"max": 2
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"type": "function",
|
|
533
|
+
"name": "hasvalue",
|
|
534
|
+
"bundle": "core",
|
|
535
|
+
"sinceVersion": "1.26",
|
|
536
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
|
|
537
|
+
"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.",
|
|
538
|
+
"examples": "\n##### Voorbeelden\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",
|
|
539
|
+
"completion": {
|
|
540
|
+
"label": "HasValue",
|
|
541
|
+
"detail": "HasValue(inputArray, indexes) -> Boolean",
|
|
542
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:indexes_})$0",
|
|
543
|
+
"insertTextMode": 2,
|
|
544
|
+
"insertTextFormat": 2,
|
|
545
|
+
"kind": 3,
|
|
546
|
+
"documentation": {
|
|
547
|
+
"kind": "markdown",
|
|
548
|
+
"value": "**[Sinds versie 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**Parameters**\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**Retourwaarde**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
"parametersInfo": {
|
|
552
|
+
"min": 2,
|
|
553
|
+
"max": 2
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
],
|
|
454
557
|
{
|
|
455
558
|
"type": "function",
|
|
456
559
|
"name": "includes",
|
|
@@ -2757,7 +2860,7 @@
|
|
|
2757
2860
|
"sinceVersion": "1.14",
|
|
2758
2861
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
|
|
2759
2862
|
"description": "Retourneert de vlakke (d.w.z. Cartesiaanse) lengte van de invoer-FeatureSet waarbij rekening wordt gehouden met hoogte- of Z-informatie. De geometrie die aan deze functie wordt geboden, moet worden toegewezen aan een geprojecteerd coördinaatsysteem. Als de ruimtelijke referentie geen waarde biedt voor Z-eenheden, dan wordt het resultaat geretourneerd in meter. Houd in de gaten dat niet alle clients (zoals de 3.x-reeks van de ArcGIS API voor JavaScript) ondersteuning bieden voor het aanvragen van Z-waarden, zelfs wanneer de gegevens Z-informatie bevatten.\n\n_Objectgeometrieën in de visualisatie en labelingprofielen worden gegeneraliseerd volgens de schaalresolutie van het beeld om de tekenprestaties te verbeteren. Daarom is het gebruik van de geometrie van een object (d.w.z. `$feature`) als invoer voor een geometriefunctie in deze contexten op elk schaalniveau andere resultaten opleveren. Andere profielen, zoals popup, leveren de geometrie met volledige resolutie._",
|
|
2760
|
-
"examples": "\n##### Voorbeeld\n\nRetourneert de 3D-lengte van de laag in meters\n\n```arcade\
|
|
2863
|
+
"examples": "\n##### Voorbeeld\n\nRetourneert de 3D-lengte van de laag in meters\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
|
|
2761
2864
|
"completion": {
|
|
2762
2865
|
"label": "Length3D",
|
|
2763
2866
|
"detail": "Length3D(features, unit?) -> Number",
|
|
@@ -3532,6 +3635,57 @@
|
|
|
3532
3635
|
"max": 2
|
|
3533
3636
|
}
|
|
3534
3637
|
},
|
|
3638
|
+
[
|
|
3639
|
+
{
|
|
3640
|
+
"type": "function",
|
|
3641
|
+
"name": "defaultvalue",
|
|
3642
|
+
"bundle": "core",
|
|
3643
|
+
"sinceVersion": "1.26",
|
|
3644
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
|
|
3645
|
+
"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.",
|
|
3646
|
+
"examples": "\n##### Voorbeelden\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",
|
|
3647
|
+
"completion": {
|
|
3648
|
+
"label": "DefaultValue",
|
|
3649
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
3650
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
3651
|
+
"insertTextMode": 2,
|
|
3652
|
+
"insertTextFormat": 2,
|
|
3653
|
+
"kind": 3,
|
|
3654
|
+
"documentation": {
|
|
3655
|
+
"kind": "markdown",
|
|
3656
|
+
"value": "**[Sinds versie 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**Parameters**\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**Retourwaarde**: [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`."
|
|
3657
|
+
}
|
|
3658
|
+
},
|
|
3659
|
+
"parametersInfo": {
|
|
3660
|
+
"min": 3,
|
|
3661
|
+
"max": 3
|
|
3662
|
+
}
|
|
3663
|
+
},
|
|
3664
|
+
{
|
|
3665
|
+
"type": "function",
|
|
3666
|
+
"name": "defaultvalue",
|
|
3667
|
+
"bundle": "core",
|
|
3668
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
|
|
3669
|
+
"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.",
|
|
3670
|
+
"examples": "\n##### Voorbeelden\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",
|
|
3671
|
+
"completion": {
|
|
3672
|
+
"label": "DefaultValue",
|
|
3673
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
3674
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
3675
|
+
"insertTextMode": 2,
|
|
3676
|
+
"insertTextFormat": 2,
|
|
3677
|
+
"kind": 3,
|
|
3678
|
+
"documentation": {
|
|
3679
|
+
"kind": "markdown",
|
|
3680
|
+
"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**Parameters**\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**Retourwaarde**: [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`."
|
|
3681
|
+
}
|
|
3682
|
+
},
|
|
3683
|
+
"parametersInfo": {
|
|
3684
|
+
"min": 3,
|
|
3685
|
+
"max": 3
|
|
3686
|
+
}
|
|
3687
|
+
}
|
|
3688
|
+
],
|
|
3535
3689
|
{
|
|
3536
3690
|
"type": "function",
|
|
3537
3691
|
"name": "densify",
|
|
@@ -3682,6 +3836,31 @@
|
|
|
3682
3836
|
"max": 3
|
|
3683
3837
|
}
|
|
3684
3838
|
},
|
|
3839
|
+
{
|
|
3840
|
+
"type": "function",
|
|
3841
|
+
"name": "distancetocoordinate",
|
|
3842
|
+
"bundle": "geometry",
|
|
3843
|
+
"sinceVersion": "1.26",
|
|
3844
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
|
|
3845
|
+
"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._",
|
|
3846
|
+
"examples": "\n##### Voorbeeld\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",
|
|
3847
|
+
"completion": {
|
|
3848
|
+
"label": "DistanceToCoordinate",
|
|
3849
|
+
"detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
|
|
3850
|
+
"insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
|
|
3851
|
+
"insertTextMode": 2,
|
|
3852
|
+
"insertTextFormat": 2,
|
|
3853
|
+
"kind": 3,
|
|
3854
|
+
"documentation": {
|
|
3855
|
+
"kind": "markdown",
|
|
3856
|
+
"value": "**[Sinds versie 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**Parameters**\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**Retourwaarde**: [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`."
|
|
3857
|
+
}
|
|
3858
|
+
},
|
|
3859
|
+
"parametersInfo": {
|
|
3860
|
+
"min": 2,
|
|
3861
|
+
"max": 2
|
|
3862
|
+
}
|
|
3863
|
+
},
|
|
3685
3864
|
{
|
|
3686
3865
|
"type": "function",
|
|
3687
3866
|
"name": "envelopeintersects",
|
|
@@ -3855,6 +4034,58 @@
|
|
|
3855
4034
|
"max": 1
|
|
3856
4035
|
}
|
|
3857
4036
|
},
|
|
4037
|
+
[
|
|
4038
|
+
{
|
|
4039
|
+
"type": "function",
|
|
4040
|
+
"name": "hasvalue",
|
|
4041
|
+
"bundle": "core",
|
|
4042
|
+
"sinceVersion": "1.26",
|
|
4043
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
|
|
4044
|
+
"description": "Indicates whether a geometry has a value at a given key or index.",
|
|
4045
|
+
"examples": "\n##### Voorbeelden\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",
|
|
4046
|
+
"completion": {
|
|
4047
|
+
"label": "HasValue",
|
|
4048
|
+
"detail": "HasValue(inputGeometry, key) -> Boolean",
|
|
4049
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
|
|
4050
|
+
"insertTextMode": 2,
|
|
4051
|
+
"insertTextFormat": 2,
|
|
4052
|
+
"kind": 3,
|
|
4053
|
+
"documentation": {
|
|
4054
|
+
"kind": "markdown",
|
|
4055
|
+
"value": "**[Sinds versie 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**Parameters**\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**Retourwaarde**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4056
|
+
}
|
|
4057
|
+
},
|
|
4058
|
+
"parametersInfo": {
|
|
4059
|
+
"min": 2,
|
|
4060
|
+
"max": 2
|
|
4061
|
+
}
|
|
4062
|
+
},
|
|
4063
|
+
{
|
|
4064
|
+
"type": "function",
|
|
4065
|
+
"name": "hasvalue",
|
|
4066
|
+
"bundle": "core",
|
|
4067
|
+
"sinceVersion": "1.26",
|
|
4068
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
|
|
4069
|
+
"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.",
|
|
4070
|
+
"examples": "\n##### Voorbeelden\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",
|
|
4071
|
+
"completion": {
|
|
4072
|
+
"label": "HasValue",
|
|
4073
|
+
"detail": "HasValue(inputGeometry, keys) -> Boolean",
|
|
4074
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
|
|
4075
|
+
"insertTextMode": 2,
|
|
4076
|
+
"insertTextFormat": 2,
|
|
4077
|
+
"kind": 3,
|
|
4078
|
+
"documentation": {
|
|
4079
|
+
"kind": "markdown",
|
|
4080
|
+
"value": "**[Sinds versie 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**Parameters**\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**Retourwaarde**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4081
|
+
}
|
|
4082
|
+
},
|
|
4083
|
+
"parametersInfo": {
|
|
4084
|
+
"min": 2,
|
|
4085
|
+
"max": 2
|
|
4086
|
+
}
|
|
4087
|
+
}
|
|
4088
|
+
],
|
|
3858
4089
|
{
|
|
3859
4090
|
"type": "function",
|
|
3860
4091
|
"name": "intersection",
|
|
@@ -4030,6 +4261,31 @@
|
|
|
4030
4261
|
"max": 2
|
|
4031
4262
|
}
|
|
4032
4263
|
},
|
|
4264
|
+
{
|
|
4265
|
+
"type": "function",
|
|
4266
|
+
"name": "measuretocoordinate",
|
|
4267
|
+
"bundle": "geometry",
|
|
4268
|
+
"sinceVersion": "1.26",
|
|
4269
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
|
|
4270
|
+
"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._",
|
|
4271
|
+
"examples": "\n##### Voorbeeld\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",
|
|
4272
|
+
"completion": {
|
|
4273
|
+
"label": "MeasureToCoordinate",
|
|
4274
|
+
"detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
|
|
4275
|
+
"insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
|
|
4276
|
+
"insertTextMode": 2,
|
|
4277
|
+
"insertTextFormat": 2,
|
|
4278
|
+
"kind": 3,
|
|
4279
|
+
"documentation": {
|
|
4280
|
+
"kind": "markdown",
|
|
4281
|
+
"value": "**[Sinds versie 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**Parameters**\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**Retourwaarde**: [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`."
|
|
4282
|
+
}
|
|
4283
|
+
},
|
|
4284
|
+
"parametersInfo": {
|
|
4285
|
+
"min": 2,
|
|
4286
|
+
"max": 2
|
|
4287
|
+
}
|
|
4288
|
+
},
|
|
4033
4289
|
{
|
|
4034
4290
|
"type": "function",
|
|
4035
4291
|
"name": "multiparttosinglepart",
|
|
@@ -4146,7 +4402,7 @@
|
|
|
4146
4402
|
"kind": 3,
|
|
4147
4403
|
"documentation": {
|
|
4148
4404
|
"kind": "markdown",
|
|
4149
|
-
"value": "**[Sinds versie 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGeeft de dichtstbijzijnde coördinaat (niet-vertex) van de invoergeometrie naar het zoekpunt terug. Het teruggegeven woordenboek bevat ook de kortste planaire afstand van het zoekpunt naar de dichtstbijzijnde coördinaat. Als het zoekpunt de invoergeometrie snijdt, wordt het zoekpunt als resultaat geretourneerd met een afstand van nul.\n\n_Objectgeometrieën in de visualisatie en labelingprofielen worden gegeneraliseerd volgens de schaalresolutie van het beeld om de tekenprestaties te verbeteren. Daarom is het gebruik van de geometrie van een object (d.w.z. `$feature`) als invoer voor een geometriefunctie in deze contexten op elk schaalniveau andere resultaten opleveren. Andere profielen, zoals popup, leveren de geometrie met volledige resolutie._\n\n**Parameters**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - De geometrie waarvan de dichtstbijzijnde coördinaat moet worden verkregen.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Het punt van waaruit de dichtstbijzijnde coördinaat van de invoerGeometrie moet worden gevonden.\n\n**Retourwaarde**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nGeeft een woordenboek terug met de volgende eigenschappen.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - De dichtstbijzijnde coördinaat van de invoerGeometrie naar het zoekpunt.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - De planaire afstand van de dichtstbijzijnde coördinaat naar het zoekpunt. Dit vertegenwoordigt de kortste afstand tussen de invoerGeometrie en het zoekpunt."
|
|
4405
|
+
"value": "**[Sinds versie 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGeeft de dichtstbijzijnde coördinaat (niet-vertex) van de invoergeometrie naar het zoekpunt terug. Het teruggegeven woordenboek bevat ook de kortste planaire afstand van het zoekpunt naar de dichtstbijzijnde coördinaat. Als het zoekpunt de invoergeometrie snijdt, wordt het zoekpunt als resultaat geretourneerd met een afstand van nul.\n\n_Objectgeometrieën in de visualisatie en labelingprofielen worden gegeneraliseerd volgens de schaalresolutie van het beeld om de tekenprestaties te verbeteren. Daarom is het gebruik van de geometrie van een object (d.w.z. `$feature`) als invoer voor een geometriefunctie in deze contexten op elk schaalniveau andere resultaten opleveren. Andere profielen, zoals popup, leveren de geometrie met volledige resolutie._\n\n**Parameters**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - De geometrie waarvan de dichtstbijzijnde coördinaat moet worden verkregen.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Het punt van waaruit de dichtstbijzijnde coördinaat van de invoerGeometrie moet worden gevonden.\n\n**Retourwaarde**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nGeeft een woordenboek terug met de volgende eigenschappen.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - De dichtstbijzijnde coördinaat van de invoerGeometrie naar het zoekpunt.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - De planaire afstand van de dichtstbijzijnde coördinaat naar het zoekpunt. Dit vertegenwoordigt de kortste afstand tussen de invoerGeometrie en het zoekpunt.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
4150
4406
|
}
|
|
4151
4407
|
},
|
|
4152
4408
|
"parametersInfo": {
|
|
@@ -4171,7 +4427,7 @@
|
|
|
4171
4427
|
"kind": 3,
|
|
4172
4428
|
"documentation": {
|
|
4173
4429
|
"kind": "markdown",
|
|
4174
|
-
"value": "**[Sinds versie 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGeeft de dichtstbijzijnde vertex van de invoergeometrie naar het zoekpunt terug. Het teruggegeven woordenboek bevat de planaire afstand van het zoekpunt naar het dichtstbijzijnde toppunt.\n\n_Objectgeometrieën in de visualisatie en labelingprofielen worden gegeneraliseerd volgens de schaalresolutie van het beeld om de tekenprestaties te verbeteren. Daarom is het gebruik van de geometrie van een object (d.w.z. `$feature`) als invoer voor een geometriefunctie in deze contexten op elk schaalniveau andere resultaten opleveren. Andere profielen, zoals popup, leveren de geometrie met volledige resolutie._\n\n**Parameters**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - De geometrie waarvan het dichtstbijzijnde toppunt moet worden verkregen.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Het punt van waaruit het dichtstbijzijnde toppunt van de invoerGeometrie moet worden gevonden.\n\n**Retourwaarde**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nGeeft een woordenboek terug met de volgende eigenschappen.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - De puntpositie die het dichtstbijzijnde toppunt van de invoerGeometrie naar het zoekpunt vertegenwoordigt.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - De planaire afstand van de dichtstbijzijnde vertex van de invoergeometrie naar het zoekpunt."
|
|
4430
|
+
"value": "**[Sinds versie 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGeeft de dichtstbijzijnde vertex van de invoergeometrie naar het zoekpunt terug. Het teruggegeven woordenboek bevat de planaire afstand van het zoekpunt naar het dichtstbijzijnde toppunt.\n\n_Objectgeometrieën in de visualisatie en labelingprofielen worden gegeneraliseerd volgens de schaalresolutie van het beeld om de tekenprestaties te verbeteren. Daarom is het gebruik van de geometrie van een object (d.w.z. `$feature`) als invoer voor een geometriefunctie in deze contexten op elk schaalniveau andere resultaten opleveren. Andere profielen, zoals popup, leveren de geometrie met volledige resolutie._\n\n**Parameters**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - De geometrie waarvan het dichtstbijzijnde toppunt moet worden verkregen.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Het punt van waaruit het dichtstbijzijnde toppunt van de invoerGeometrie moet worden gevonden.\n\n**Retourwaarde**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nGeeft een woordenboek terug met de volgende eigenschappen.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - De puntpositie die het dichtstbijzijnde toppunt van de invoerGeometrie naar het zoekpunt vertegenwoordigt.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - De planaire afstand van de dichtstbijzijnde vertex van de invoergeometrie naar het zoekpunt.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
4175
4431
|
}
|
|
4176
4432
|
},
|
|
4177
4433
|
"parametersInfo": {
|
|
@@ -4279,6 +4535,31 @@
|
|
|
4279
4535
|
}
|
|
4280
4536
|
}
|
|
4281
4537
|
],
|
|
4538
|
+
{
|
|
4539
|
+
"type": "function",
|
|
4540
|
+
"name": "pointtocoordinate",
|
|
4541
|
+
"bundle": "geometry",
|
|
4542
|
+
"sinceVersion": "1.26",
|
|
4543
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
|
|
4544
|
+
"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._",
|
|
4545
|
+
"examples": "\n##### Voorbeeld\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",
|
|
4546
|
+
"completion": {
|
|
4547
|
+
"label": "PointToCoordinate",
|
|
4548
|
+
"detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
|
|
4549
|
+
"insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
|
|
4550
|
+
"insertTextMode": 2,
|
|
4551
|
+
"insertTextFormat": 2,
|
|
4552
|
+
"kind": 3,
|
|
4553
|
+
"documentation": {
|
|
4554
|
+
"kind": "markdown",
|
|
4555
|
+
"value": "**[Sinds versie 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**Parameters**\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**Retourwaarde**: [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`."
|
|
4556
|
+
}
|
|
4557
|
+
},
|
|
4558
|
+
"parametersInfo": {
|
|
4559
|
+
"min": 2,
|
|
4560
|
+
"max": 2
|
|
4561
|
+
}
|
|
4562
|
+
},
|
|
4282
4563
|
[
|
|
4283
4564
|
{
|
|
4284
4565
|
"type": "function",
|
|
@@ -4681,6 +4962,62 @@
|
|
|
4681
4962
|
}
|
|
4682
4963
|
]
|
|
4683
4964
|
},
|
|
4965
|
+
{
|
|
4966
|
+
"id": "knowledgegraph_functions",
|
|
4967
|
+
"title": "IJ_Knowledge graph functions__________________________ä",
|
|
4968
|
+
"items": [
|
|
4969
|
+
{
|
|
4970
|
+
"type": "function",
|
|
4971
|
+
"name": "knowledgegraphbyportalitem",
|
|
4972
|
+
"bundle": "knowledge-graph",
|
|
4973
|
+
"sinceVersion": "1.26",
|
|
4974
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#knowledgegraphbyportalitem",
|
|
4975
|
+
"description": "IJ_Returns a knowledge graph from a portal item________________________ä.",
|
|
4976
|
+
"examples": "\n##### Voorbeeld\n\nIJ_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",
|
|
4977
|
+
"completion": {
|
|
4978
|
+
"label": "KnowledgeGraphByPortalItem",
|
|
4979
|
+
"detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
|
|
4980
|
+
"insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
|
|
4981
|
+
"insertTextMode": 2,
|
|
4982
|
+
"insertTextFormat": 2,
|
|
4983
|
+
"kind": 3,
|
|
4984
|
+
"documentation": {
|
|
4985
|
+
"kind": "markdown",
|
|
4986
|
+
"value": "**[Sinds versie 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIJ_Returns a knowledge graph from a portal item________________________ä.\n\n**Parameters**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - IJ_The Portal from which to query features_____________________ä.\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - IJ_The GUID of the portal item referencing a knowledge graph service. _This value must be a text literal.______________________________________________________ä\n\n**Retourwaarde**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
|
|
4987
|
+
}
|
|
4988
|
+
},
|
|
4989
|
+
"parametersInfo": {
|
|
4990
|
+
"min": 2,
|
|
4991
|
+
"max": 2
|
|
4992
|
+
}
|
|
4993
|
+
},
|
|
4994
|
+
{
|
|
4995
|
+
"type": "function",
|
|
4996
|
+
"name": "querygraph",
|
|
4997
|
+
"bundle": "knowledge-graph",
|
|
4998
|
+
"sinceVersion": "1.26",
|
|
4999
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#querygraph",
|
|
5000
|
+
"description": "IJ_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________ä.",
|
|
5001
|
+
"examples": "\n##### Voorbeeld\n\nIJ_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",
|
|
5002
|
+
"completion": {
|
|
5003
|
+
"label": "QueryGraph",
|
|
5004
|
+
"detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Dictionary",
|
|
5005
|
+
"insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
|
|
5006
|
+
"insertTextMode": 2,
|
|
5007
|
+
"insertTextFormat": 2,
|
|
5008
|
+
"kind": 3,
|
|
5009
|
+
"documentation": {
|
|
5010
|
+
"kind": "markdown",
|
|
5011
|
+
"value": "**[Sinds versie 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIJ_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**Parameters**\n\n- **graph**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph) - IJ_The knowledge graph to query______________________________ä.\n- **openCypherQuery**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - IJ_The openCypher query to be executed against the knowledge graph_________________________________ä.\n- **queryParameters** (_Optional_): [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - IJ_A dictionary of named query parameters for the openCypher query_________________________________ä. IJ_The parameter names or keys in the dictionary are case-sensitive__________________________________ä. IJ_Parameters accepted depend on the external graph store and can be of type: `Array`, `Date`, `Dictionary`, `Geometry`, `Number, Text`___________________________________________________________________ä\n\n**Retourwaarde**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"
|
|
5012
|
+
}
|
|
5013
|
+
},
|
|
5014
|
+
"parametersInfo": {
|
|
5015
|
+
"min": 2,
|
|
5016
|
+
"max": 3
|
|
5017
|
+
}
|
|
5018
|
+
}
|
|
5019
|
+
]
|
|
5020
|
+
},
|
|
4684
5021
|
{
|
|
4685
5022
|
"id": "logical_functions",
|
|
4686
5023
|
"title": "Logische functies",
|
|
@@ -5158,6 +5495,31 @@
|
|
|
5158
5495
|
"max": 1
|
|
5159
5496
|
}
|
|
5160
5497
|
},
|
|
5498
|
+
{
|
|
5499
|
+
"type": "function",
|
|
5500
|
+
"name": "hasvalue",
|
|
5501
|
+
"bundle": "core",
|
|
5502
|
+
"sinceVersion": "1.20",
|
|
5503
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
|
|
5504
|
+
"description": "Indicates whether a feature has a given field and if that field has a value.",
|
|
5505
|
+
"examples": "\n##### Voorbeeld\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",
|
|
5506
|
+
"completion": {
|
|
5507
|
+
"label": "HasValue",
|
|
5508
|
+
"detail": "HasValue(inputFeature, fieldName) -> Boolean",
|
|
5509
|
+
"insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
|
|
5510
|
+
"insertTextMode": 2,
|
|
5511
|
+
"insertTextFormat": 2,
|
|
5512
|
+
"kind": 3,
|
|
5513
|
+
"documentation": {
|
|
5514
|
+
"kind": "markdown",
|
|
5515
|
+
"value": "**[Sinds versie 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**Parameters**\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**Retourwaarde**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
5516
|
+
}
|
|
5517
|
+
},
|
|
5518
|
+
"parametersInfo": {
|
|
5519
|
+
"min": 2,
|
|
5520
|
+
"max": 2
|
|
5521
|
+
}
|
|
5522
|
+
},
|
|
5161
5523
|
{
|
|
5162
5524
|
"type": "function",
|
|
5163
5525
|
"name": "schema",
|
|
@@ -6047,7 +6409,7 @@
|
|
|
6047
6409
|
"sinceVersion": "1.12",
|
|
6048
6410
|
"link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
|
|
6049
6411
|
"description": "De som van de afgelegde afstand tussen waarnemingen van de eerste tot de huidige waarneming plus de gegeven waarde.",
|
|
6050
|
-
"examples": "\n##### Voorbeelden\n\nUw tracering heeft zes objecten, zoals u hierboven kunt zien. De uitdrukking retourneert een waarde voor elk object in de tracering. In het eerste voorbeeld onderzoeken we de resultaten als deze beoordeeld worden bij object 2 (p2) met een indexwaarde van 2. De berekening is '30 + 80 + 60 = 170'.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nUw tracering heeft zes objecten, zoals u hierboven kunt zien. De uitdrukking retourneert een waarde voor elk object in de tracering. In het volgende voorbeeld onderzoeken we de resultaten als deze beoordeeld worden bij object 4 (p4) met een indexwaarde van 4. De berekening is '25 + 35 + 30 + 80 + 60 = 230'.\n\n```arcade\nTrackDistanceAt(
|
|
6412
|
+
"examples": "\n##### Voorbeelden\n\nUw tracering heeft zes objecten, zoals u hierboven kunt zien. De uitdrukking retourneert een waarde voor elk object in de tracering. In het eerste voorbeeld onderzoeken we de resultaten als deze beoordeeld worden bij object 2 (p2) met een indexwaarde van 2. De berekening is '30 + 80 + 60 = 170'.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nUw tracering heeft zes objecten, zoals u hierboven kunt zien. De uitdrukking retourneert een waarde voor elk object in de tracering. In het volgende voorbeeld onderzoeken we de resultaten als deze beoordeeld worden bij object 4 (p4) met een indexwaarde van 4. De berekening is '25 + 35 + 30 + 80 + 60 = 230'.\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n",
|
|
6051
6413
|
"completion": {
|
|
6052
6414
|
"label": "TrackDistanceAt",
|
|
6053
6415
|
"detail": "TrackDistanceAt(index) -> Number",
|
|
@@ -7112,6 +7474,57 @@
|
|
|
7112
7474
|
"id": "dictionary_functions",
|
|
7113
7475
|
"title": "Woordenlijstfuncties",
|
|
7114
7476
|
"items": [
|
|
7477
|
+
[
|
|
7478
|
+
{
|
|
7479
|
+
"type": "function",
|
|
7480
|
+
"name": "defaultvalue",
|
|
7481
|
+
"bundle": "core",
|
|
7482
|
+
"sinceVersion": "1.26",
|
|
7483
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
|
|
7484
|
+
"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.",
|
|
7485
|
+
"examples": "\n##### Voorbeelden\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",
|
|
7486
|
+
"completion": {
|
|
7487
|
+
"label": "DefaultValue",
|
|
7488
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
7489
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
7490
|
+
"insertTextMode": 2,
|
|
7491
|
+
"insertTextFormat": 2,
|
|
7492
|
+
"kind": 3,
|
|
7493
|
+
"documentation": {
|
|
7494
|
+
"kind": "markdown",
|
|
7495
|
+
"value": "**[Sinds versie 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**Parameters**\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**Retourwaarde**: [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`."
|
|
7496
|
+
}
|
|
7497
|
+
},
|
|
7498
|
+
"parametersInfo": {
|
|
7499
|
+
"min": 3,
|
|
7500
|
+
"max": 3
|
|
7501
|
+
}
|
|
7502
|
+
},
|
|
7503
|
+
{
|
|
7504
|
+
"type": "function",
|
|
7505
|
+
"name": "defaultvalue",
|
|
7506
|
+
"bundle": "core",
|
|
7507
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
|
|
7508
|
+
"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.",
|
|
7509
|
+
"examples": "\n##### Voorbeelden\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",
|
|
7510
|
+
"completion": {
|
|
7511
|
+
"label": "DefaultValue",
|
|
7512
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
7513
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
7514
|
+
"insertTextMode": 2,
|
|
7515
|
+
"insertTextFormat": 2,
|
|
7516
|
+
"kind": 3,
|
|
7517
|
+
"documentation": {
|
|
7518
|
+
"kind": "markdown",
|
|
7519
|
+
"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**Parameters**\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**Retourwaarde**: [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`."
|
|
7520
|
+
}
|
|
7521
|
+
},
|
|
7522
|
+
"parametersInfo": {
|
|
7523
|
+
"min": 3,
|
|
7524
|
+
"max": 3
|
|
7525
|
+
}
|
|
7526
|
+
}
|
|
7527
|
+
],
|
|
7115
7528
|
[
|
|
7116
7529
|
{
|
|
7117
7530
|
"type": "function",
|
|
@@ -7287,31 +7700,58 @@
|
|
|
7287
7700
|
"max": 2
|
|
7288
7701
|
}
|
|
7289
7702
|
},
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
"
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
"
|
|
7307
|
-
|
|
7703
|
+
[
|
|
7704
|
+
{
|
|
7705
|
+
"type": "function",
|
|
7706
|
+
"name": "hasvalue",
|
|
7707
|
+
"bundle": "core",
|
|
7708
|
+
"sinceVersion": "1.20",
|
|
7709
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
|
|
7710
|
+
"description": "Indicates whether a dictionary has a given key and if that key has a value.",
|
|
7711
|
+
"examples": "\n##### Voorbeelden\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",
|
|
7712
|
+
"completion": {
|
|
7713
|
+
"label": "HasValue",
|
|
7714
|
+
"detail": "HasValue(inputDictionary, key) -> Boolean",
|
|
7715
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
|
|
7716
|
+
"insertTextMode": 2,
|
|
7717
|
+
"insertTextFormat": 2,
|
|
7718
|
+
"kind": 3,
|
|
7719
|
+
"documentation": {
|
|
7720
|
+
"kind": "markdown",
|
|
7721
|
+
"value": "**[Sinds versie 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**Parameters**\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**Retourwaarde**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7722
|
+
}
|
|
7723
|
+
},
|
|
7724
|
+
"parametersInfo": {
|
|
7725
|
+
"min": 2,
|
|
7726
|
+
"max": 2
|
|
7308
7727
|
}
|
|
7309
7728
|
},
|
|
7310
|
-
|
|
7311
|
-
"
|
|
7312
|
-
"
|
|
7729
|
+
{
|
|
7730
|
+
"type": "function",
|
|
7731
|
+
"name": "hasvalue",
|
|
7732
|
+
"bundle": "core",
|
|
7733
|
+
"sinceVersion": "1.26",
|
|
7734
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
|
|
7735
|
+
"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.",
|
|
7736
|
+
"examples": "\n##### Voorbeelden\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",
|
|
7737
|
+
"completion": {
|
|
7738
|
+
"label": "HasValue",
|
|
7739
|
+
"detail": "HasValue(inputDictionary, keys) -> Boolean",
|
|
7740
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
|
|
7741
|
+
"insertTextMode": 2,
|
|
7742
|
+
"insertTextFormat": 2,
|
|
7743
|
+
"kind": 3,
|
|
7744
|
+
"documentation": {
|
|
7745
|
+
"kind": "markdown",
|
|
7746
|
+
"value": "**[Sinds versie 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**Parameters**\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**Retourwaarde**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7747
|
+
}
|
|
7748
|
+
},
|
|
7749
|
+
"parametersInfo": {
|
|
7750
|
+
"min": 2,
|
|
7751
|
+
"max": 2
|
|
7752
|
+
}
|
|
7313
7753
|
}
|
|
7314
|
-
|
|
7754
|
+
]
|
|
7315
7755
|
]
|
|
7316
7756
|
}
|
|
7317
7757
|
]
|