@arcgis/coding-components 4.29.0-beta.99 → 4.29.0

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.
Files changed (164) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +111 -111
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +113 -113
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +111 -111
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +111 -111
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +111 -111
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +111 -111
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +111 -111
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +111 -111
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +19 -19
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +111 -111
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +111 -111
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +111 -111
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +111 -111
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +111 -111
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +111 -111
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +111 -111
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +111 -111
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +111 -111
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +111 -111
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +111 -111
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +111 -111
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +111 -111
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +111 -111
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +66 -66
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +66 -66
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +111 -111
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +111 -111
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +66 -66
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +111 -111
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +111 -111
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +111 -111
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +111 -111
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +111 -111
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +111 -111
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +111 -111
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +111 -111
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +111 -111
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +66 -66
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +66 -66
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +66 -66
  42. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +4 -4
  43. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +4 -4
  44. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +4 -4
  45. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +4 -4
  46. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +4 -4
  47. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +3 -3
  48. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +3 -3
  49. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +4 -4
  50. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +3 -3
  51. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +4 -4
  52. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +3 -3
  53. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +4 -4
  54. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +4 -4
  55. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +4 -4
  56. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +4 -4
  57. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +4 -4
  58. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +4 -4
  59. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +4 -4
  60. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +4 -4
  61. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +4 -4
  62. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +4 -4
  63. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +4 -4
  64. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +4 -4
  65. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +4 -4
  66. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +4 -4
  67. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +4 -4
  68. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +4 -4
  69. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +4 -4
  70. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +3 -3
  71. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +4 -4
  72. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +4 -4
  73. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +4 -4
  74. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +4 -4
  75. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +4 -4
  76. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +4 -4
  77. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +4 -4
  78. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +4 -4
  79. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +4 -4
  80. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +4 -4
  81. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +4 -4
  82. package/dist/arcgis-coding-components/index.esm.js +2 -2
  83. package/dist/arcgis-coding-components/{p-e1cb02b3.js → p-0a2edf01.js} +2 -2
  84. package/dist/arcgis-coding-components/p-11e79992.js +6 -0
  85. package/dist/arcgis-coding-components/{p-f75beb80.js → p-36e2cbc2.js} +3 -3
  86. package/dist/arcgis-coding-components/{p-457e3916.js → p-4406b5a8.js} +2 -2
  87. package/dist/arcgis-coding-components/{p-87d7ad9e.js → p-4eb30e60.js} +1 -1
  88. package/dist/arcgis-coding-components/{p-7f9d3fdc.js → p-619ca372.js} +1 -1
  89. package/dist/arcgis-coding-components/{p-7e0e8ecc.js → p-71125c69.js} +2 -2
  90. package/dist/arcgis-coding-components/{p-0bab0228.js → p-8d7f0979.js} +2 -2
  91. package/dist/arcgis-coding-components/p-9b8091c1.entry.js +6 -0
  92. package/dist/arcgis-coding-components/{p-ad86a5f5.js → p-bd81fdff.js} +11 -11
  93. package/dist/arcgis-coding-components/{p-f23f7fee.js → p-ecc8dd8a.js} +2 -2
  94. package/dist/arcgis-coding-components/{p-4648782b.js → p-f9016c56.js} +2 -2
  95. package/dist/cjs/{arcade-defaults-5dd9ebb7.js → arcade-defaults-b30ccec8.js} +271 -236
  96. package/dist/cjs/{arcade-mode-0b4c53a1.js → arcade-mode-eb755260.js} +11 -14
  97. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +160 -184
  98. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  99. package/dist/cjs/{css-fe7f8980.js → css-9e907aa0.js} +1 -1
  100. package/dist/cjs/{cssMode-4c9b3a32.js → cssMode-e4189b13.js} +3 -3
  101. package/dist/cjs/{html-b044fbba.js → html-2582ae43.js} +3 -3
  102. package/dist/cjs/{htmlMode-956a6ffa.js → htmlMode-0edcf1ee.js} +3 -3
  103. package/dist/cjs/{index-aaceaf1f.js → index-54d6f9be.js} +1 -1
  104. package/dist/cjs/index.cjs.js +3 -3
  105. package/dist/cjs/{javascript-6c55ac8b.js → javascript-425c653a.js} +4 -4
  106. package/dist/cjs/{jsonMode-d83e322c.js → jsonMode-eea03515.js} +3 -3
  107. package/dist/cjs/loader.cjs.js +3 -3
  108. package/dist/cjs/{tsMode-5c5ffa3e.js → tsMode-b92c9221.js} +3 -3
  109. package/dist/cjs/{typescript-6143656a.js → typescript-cfc1221c.js} +3 -3
  110. package/dist/components/arcade-api.js +20 -18
  111. package/dist/components/arcade-contribution.js +9 -8
  112. package/dist/components/arcade-defaults.js +188 -168
  113. package/dist/components/arcade-mode.js +10 -12
  114. package/dist/components/arcade-results.js +29 -83
  115. package/dist/components/arcade-suggestions.js +15 -12
  116. package/dist/components/arcade-variables.js +30 -21
  117. package/dist/components/arcgis-arcade-api.js +1 -1
  118. package/dist/components/arcgis-arcade-editor.js +61 -49
  119. package/dist/components/arcgis-arcade-results.js +1 -1
  120. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  121. package/dist/components/arcgis-arcade-variables.js +1 -1
  122. package/dist/components/arcgis-code-editor.js +1 -1
  123. package/dist/components/code-editor.js +1 -1
  124. package/dist/components/fields.js +37 -23
  125. package/dist/components/index.js +1 -1
  126. package/dist/components/index2.js +3 -3
  127. package/dist/components/markdown.js +10 -1
  128. package/dist/components/utilities.js +4 -4
  129. package/dist/esm/{arcade-defaults-2d7283d4.js → arcade-defaults-a5dc6132.js} +267 -233
  130. package/dist/esm/{arcade-mode-a8abe5af.js → arcade-mode-d06b6e4f.js} +11 -14
  131. package/dist/esm/arcgis-arcade-api_6.entry.js +160 -184
  132. package/dist/esm/arcgis-coding-components.js +4 -4
  133. package/dist/esm/{css-d31a02ca.js → css-59b4804d.js} +1 -1
  134. package/dist/esm/{cssMode-5ee45e91.js → cssMode-2bce7da7.js} +3 -3
  135. package/dist/esm/{html-5c2e488c.js → html-3ad47fc0.js} +3 -3
  136. package/dist/esm/{htmlMode-376cd5e8.js → htmlMode-6cb73c91.js} +3 -3
  137. package/dist/esm/{index-1b265749.js → index-ee54d182.js} +1 -1
  138. package/dist/esm/index.js +3 -3
  139. package/dist/esm/{javascript-13ddec2b.js → javascript-8917f926.js} +4 -4
  140. package/dist/esm/{jsonMode-674e89d6.js → jsonMode-9a1dbf00.js} +3 -3
  141. package/dist/esm/loader.js +4 -4
  142. package/dist/esm/{tsMode-4c4398d7.js → tsMode-2caf1509.js} +3 -3
  143. package/dist/esm/{typescript-b328b622.js → typescript-a3abccc0.js} +3 -3
  144. package/dist/loader/cdn.js +1 -1
  145. package/dist/loader/index.cjs.js +1 -1
  146. package/dist/loader/index.es2017.js +1 -1
  147. package/dist/loader/index.js +1 -1
  148. package/dist/types/components/arcade-editor/arcade-editor.d.ts +2 -7
  149. package/dist/types/components/arcade-variables/arcade-variables.d.ts +0 -1
  150. package/dist/types/components.d.ts +2 -7
  151. package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +2 -2
  152. package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +1 -0
  153. package/dist/types/utils/constants.d.ts +2 -2
  154. package/dist/types/utils/fields.d.ts +1 -0
  155. package/dist/types/utils/markdown.d.ts +3 -0
  156. package/dist/types/utils/profile/editor-profile.d.ts +49 -63
  157. package/dist/types/utils/profile/types.d.ts +122 -1
  158. package/dist/types/utils/profile/utils.d.ts +22 -9
  159. package/package.json +8 -8
  160. package/dist/arcgis-coding-components/p-6d56a4b8.entry.js +0 -6
  161. package/dist/arcgis-coding-components/p-a75f5087.js +0 -6
  162. package/dist/components/functional-components.js +0 -15
  163. package/dist/types/utils/functional-components.d.ts +0 -7
  164. package/dist/types/utils/json-format.d.ts +0 -1
@@ -145,62 +145,6 @@
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##### Esimerkki\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": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nÅ_Returns a knowledge graph from a portal item________________________ö.\n\n**Parametrit**\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**Palauta arvo**: [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##### Esimerkki\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": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"
195
- }
196
- },
197
- "parametersInfo": {
198
- "min": 2,
199
- "max": 3
200
- }
201
- }
202
- ]
203
- },
204
148
  {
205
149
  "id": "enterprise_functions",
206
150
  "title": "Enterprise-funktiot",
@@ -742,8 +686,8 @@
742
686
  "bundle": "data-access",
743
687
  "sinceVersion": "1.25",
744
688
  "link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#filterbysubtypecode",
745
- "description": "Å_Creates a new FeatureSet with all the features matching the given subtype code_________________________________________ö.",
746
- "examples": "\n##### Esimerkki\n\nÅ_Filter features with the subtype code____________________ö\n\n```arcade\n// Returns all features that have the given subtype code\nFilterBySubtypeCode($layer, 5)\n```\n\n",
689
+ "description": "Luo uuden FeatureSetin, jossa on kaikki annettua alityypin koodia vastaavat kohteet.",
690
+ "examples": "\n##### Esimerkki\n\nSuodata kohteita käyttämällä alityypin koodia\n\n```arcade\n// Returns all features that have the given subtype code\nFilterBySubtypeCode($layer, 5)\n```\n\n",
747
691
  "completion": {
748
692
  "label": "FilterBySubtypeCode",
749
693
  "detail": "FilterBySubtypeCode(features, subtypeCode) -> FeatureSet",
@@ -753,7 +697,7 @@
753
697
  "kind": 3,
754
698
  "documentation": {
755
699
  "kind": "markdown",
756
- "value": "**[Lähtien versiosta 1.25](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nÅ_Creates a new FeatureSet with all the features matching the given subtype code_________________________________________ö.\n\n**Parametrit**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - Å_The FeatureSet, or layer, to filter___________________ö.\n- **subtypeCode**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Å_The subtype code used to filter features in the FeatureSet or layer___________________________________ö.\n\n**Palauta arvo**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
700
+ "value": "**[Lähtien versiosta 1.25](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nLuo uuden FeatureSetin, jossa on kaikki annettua alityypin koodia vastaavat kohteet.\n\n**Parametrit**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - Suodatettava FeatureSet tai karttataso.\n- **subtypeCode**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Alityypin koodi, jota käytetään FeatureSetissä tai karttatasossa olevien kohteiden suodattamiseen.\n\n**Palauta arvo**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
757
701
  }
758
702
  },
759
703
  "parametersInfo": {
@@ -1776,8 +1720,8 @@
1776
1720
  "bundle": "core",
1777
1721
  "sinceVersion": "1.26",
1778
1722
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
1779
- "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.",
1780
- "examples": "\n##### Esimerkit\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",
1723
+ "description": "Palauttaa määritetyn oletusarvon, jos geometrian avainta ei ole tai määritettyä avainta vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.",
1724
+ "examples": "\n##### Esimerkit\n\nPiste, jolla on z-arvo\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is true\n// returns the value of Geometry($feature).z\n```\n\nPisteellä ei ole z-arvoa\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is false\n// returns 1000\n```\n\n",
1781
1725
  "completion": {
1782
1726
  "label": "DefaultValue",
1783
1727
  "detail": "DefaultValue(container, key, defaultValue) -> Any",
@@ -1787,7 +1731,7 @@
1787
1731
  "kind": 3,
1788
1732
  "documentation": {
1789
1733
  "kind": "markdown",
1790
- "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [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`."
1734
+ "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa määritetyn oletusarvon, jos geometrian avainta ei ole tai määritettyä avainta vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.\n\n**Parametrit**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Tarkistettava lähtöaineiston geometria.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Tarkistettava avain.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Tämä arvo palautetaan, jos avainta ei ole tai määritettyä avainta vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.\n\n**Palauta arvo**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nPalauttaa määritettyä avainta vastaavan arvon, jos se on määritetty. Palauttaa muussa tapauksessa \\\"defaultValue\\\"-kohdassa määritetyn arvon."
1791
1735
  }
1792
1736
  },
1793
1737
  "parametersInfo": {
@@ -1800,8 +1744,8 @@
1800
1744
  "name": "defaultvalue",
1801
1745
  "bundle": "core",
1802
1746
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
1803
- "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.",
1804
- "examples": "\n##### Esimerkit\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",
1747
+ "description": "Palauttaa määritetyn oletusarvon, jos vähintään yhtä geometrian sisäkkäisten ominaisuuksien avaimista ei ole olemassa tai määritettyä avainta vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.",
1748
+ "examples": "\n##### Esimerkit\n\nSekä rengas, koordinaatti että x-arvo ovat olemassa, ja niillä kaikilla on arvo\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\nRengasta ei ole\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\nRengas ja koordinaatti ovat olemassa, mutta m-arvoa ei ole\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",
1805
1749
  "completion": {
1806
1750
  "label": "DefaultValue",
1807
1751
  "detail": "DefaultValue(container, keys, defaultValue) -> Any",
@@ -1811,7 +1755,7 @@
1811
1755
  "kind": 3,
1812
1756
  "documentation": {
1813
1757
  "kind": "markdown",
1814
- "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**Parametrit**\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**Palauta arvo**: [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`."
1758
+ "value": "Palauttaa määritetyn oletusarvon, jos vähintään yhtä geometrian sisäkkäisten ominaisuuksien avaimista ei ole olemassa tai määritettyä avainta vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.\n\n**Parametrit**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Tarkistettava lähtöaineiston geometria.\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)> - Matriisi, joka koostuu avaimista ja indekseistä ja joka on tarkistettava kullakin säilön rakenteen tasolla.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Tämä arvo palautetaan, jos vähintään yhtä avaimista tai indekseistä ei ole olemassa tai määritettyä avainta vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.\n\n**Palauta arvo**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nPalauttaa määritettyä avainta tai indeksiä vastaavan arvon, jos se on määritetty. Palauttaa muussa tapauksessa \\\"defaultValue\\\"-kohdassa määritetyn arvon."
1815
1759
  }
1816
1760
  },
1817
1761
  "parametersInfo": {
@@ -1976,8 +1920,8 @@
1976
1920
  "bundle": "geometry",
1977
1921
  "sinceVersion": "1.26",
1978
1922
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
1979
- "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._",
1980
- "examples": "\n##### Esimerkki\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",
1923
+ "description": "Palauttaa koordinaatin lähtöaineiston viivaa pitkin määrätyn etäisyyden perusteella. Kaikki viivan osat huomioidaan, kun yritetään etsiä koordinaattia tietyllä etäisyydellä. Etäisyys ei sisällä tyhjiä välejä viivan polkujen (tai osien) välillä. Jos etäisyyttä ei löydy lähtöaineiston viivalta, tulos on \\\"tyhjäarvo\\\".\n\n_Kohdegeometriat visualisointi- ja tunnustekstiprofiileissa yleistetään näkymän mittakaavan resoluution mukaan piirtämisen suorituskyvyn parantamiseksi. Sen vuoksi kohteen geometrian (kuten $feature) käyttäminen lähtöaineistona mille tahansa geometriafunktiolle näissä konteksteissa palauttaa erilaiset tulokset kullakin mittakaavatasolla. Muut profiilit, kuten ponnahdusikkuna, sisältää täyden resoluution geometrian._",
1924
+ "examples": "\n##### Esimerkki\n\nPalauttaa lähtöaineiston taiteviivan koordinaatin määrätyn etäisyysarvon perusteella\n\n```arcade\nvar result = DistanceToCoordinate($feature, 1038);\n\nreturn result.coordinate;\n```\n\n",
1981
1925
  "completion": {
1982
1926
  "label": "DistanceToCoordinate",
1983
1927
  "detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
@@ -1987,7 +1931,7 @@
1987
1931
  "kind": 3,
1988
1932
  "documentation": {
1989
1933
  "kind": "markdown",
1990
- "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [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`."
1934
+ "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa koordinaatin lähtöaineiston viivaa pitkin määrätyn etäisyyden perusteella. Kaikki viivan osat huomioidaan, kun yritetään etsiä koordinaattia tietyllä etäisyydellä. Etäisyys ei sisällä tyhjiä välejä viivan polkujen (tai osien) välillä. Jos etäisyyttä ei löydy lähtöaineiston viivalta, tulos on \\\"tyhjäarvo\\\".\n\n_Kohdegeometriat visualisointi- ja tunnustekstiprofiileissa yleistetään näkymän mittakaavan resoluution mukaan piirtämisen suorituskyvyn parantamiseksi. Sen vuoksi kohteen geometrian (kuten $feature) käyttäminen lähtöaineistona mille tahansa geometriafunktiolle näissä konteksteissa palauttaa erilaiset tulokset kullakin mittakaavatasolla. Muut profiilit, kuten ponnahdusikkuna, sisältää täyden resoluution geometrian._\n\n**Parametrit**\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) - Viiva tai polku, josta koordinaattia etsitään. Kun kohdetta käytetään lähtöaineistona, kohteen geometrian pitää olla taiteviiva.\n- **inputDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Etäisyys, jota käytetään koordinaatin etsimiseen \\\"inputLine\\\"-kohdetta pitkin viivan alusta alkaen. Kaikki viivan osat huomioidaan, kun yritetään etsiä koordinaattia tietyllä etäisyydellä. Etäisyys ei sisällä tyhjiä välejä viivan polkujen (tai osien) välillä. \n\n**Palauta arvo**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nPalauttaa tietohakemiston, joka sisältää seuraavat ominaisuudet. Jos etäisyyttä ei löydy lähtöaineiston viivalta, tulos on \\\"tyhjäarvo\\\".\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Pisteen koordinaatit \\\"inputLine\\\"-kohdetta pitkin määrätyn etäisyysarvon perusteella.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Planaarinen etäisyys \\\"inputLine\\\"-kohteen alusta \\\"koordinaattiin\\\" mitattuna kyseistä viivakohdetta pitkin. Jos taiteviivalla polut eivät yhdisty, \\\"distanceAlong\\\"-arvo ei sisällä polkujen alku- ja lopputaitepisteiden välisten tyhjien välien etäisyyttä.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Taiteviivalähtöaineiston tapauksessa sen polun indeksi, johon \\\"koordinaatti\\\" kuuluu.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Sen viivasegmentin indeksi (suhteessa polkuun), johon \\\"koordinaatti\\\" kuuluu. Jos \\\"koordinaatti\\\" edustaa lähtöaineiston viivan taitepistettä, \\\"segmentId\\\" palauttaa edellisen taitepisteen indeksin. Jos \\\"koordinaatti\\\" on \\\"inputLine\\\"-kohteen ensimmäinen taitepiste, \\\"segmentId\\\"-arvo on \\\"0\\\"."
1991
1935
  }
1992
1936
  },
1993
1937
  "parametersInfo": {
@@ -2175,8 +2119,8 @@
2175
2119
  "bundle": "core",
2176
2120
  "sinceVersion": "1.26",
2177
2121
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
2178
- "description": "Indicates whether a geometry has a value at a given key or index.",
2179
- "examples": "\n##### Esimerkit\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",
2122
+ "description": "Osoittaa, onko geometrialla arvoa määrätyllä avaimella tai indeksillä.",
2123
+ "examples": "\n##### Esimerkit\n\nPiste, jolla on z-arvo\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Point\"){\n return HasValue(Geometry($feature), \"z\")\n // returns true\n}\n```\n\nAluekohde, jonka avainta ei ole olemassa\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Polygon\"){\n return HasValue(Geometry($feature), \"verticalCoordinateSystem\")\n // returns false\n}\n```\n\n",
2180
2124
  "completion": {
2181
2125
  "label": "HasValue",
2182
2126
  "detail": "HasValue(inputGeometry, key) -> Boolean",
@@ -2186,7 +2130,7 @@
2186
2130
  "kind": 3,
2187
2131
  "documentation": {
2188
2132
  "kind": "markdown",
2189
- "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
2133
+ "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nOsoittaa, onko geometrialla arvoa määrätyllä avaimella tai indeksillä.\n\n**Parametrit**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Tarkistettava geometria.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Tarkistettava avaimen tai ominaisuuden nimi.\n\n**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
2190
2134
  }
2191
2135
  },
2192
2136
  "parametersInfo": {
@@ -2200,8 +2144,8 @@
2200
2144
  "bundle": "core",
2201
2145
  "sinceVersion": "1.26",
2202
2146
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
2203
- "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.",
2204
- "examples": "\n##### Esimerkit\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",
2147
+ "description": "Tarkistaa, onko geometriassa useiden sisäkkäisten tasojen syvyydessä olevalla ominaisuudella tai indeksillä jokin arvo. Näin voit porautua sisäkkäiseen rakenteeseen askeleen kerrallaan, etkä joudu tarkistamaan arvoja kullakin tasolla. Palauttaa \\\"Tosi\\\"-arvon, jos avaimet ja indeksit ovat olemassa kullakin rakenteen tasolla ja ne sisältävät muun kuin tyhjäarvon.",
2148
+ "examples": "\n##### Esimerkit\n\nSekä rengas, koordinaatti että x-arvo ovat olemassa, ja niillä kaikilla on arvo\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\nRengasta ei ole\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\nRengas ja koordinaatti ovat olemassa, mutta m-arvoa ei ole\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",
2205
2149
  "completion": {
2206
2150
  "label": "HasValue",
2207
2151
  "detail": "HasValue(inputGeometry, keys) -> Boolean",
@@ -2211,7 +2155,7 @@
2211
2155
  "kind": 3,
2212
2156
  "documentation": {
2213
2157
  "kind": "markdown",
2214
- "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
2158
+ "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTarkistaa, onko geometriassa useiden sisäkkäisten tasojen syvyydessä olevalla ominaisuudella tai indeksillä jokin arvo. Näin voit porautua sisäkkäiseen rakenteeseen askeleen kerrallaan, etkä joudu tarkistamaan arvoja kullakin tasolla. Palauttaa \\\"Tosi\\\"-arvon, jos avaimet ja indeksit ovat olemassa kullakin rakenteen tasolla ja ne sisältävät muun kuin tyhjäarvon.\n\n**Parametrit**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Tarkistettava tietohakemisto tai kohde.\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)> - Matriisi, joka koostuu avaimista ja indekseistä ja joka on tarkistettava kullakin rakenteen tasolla.\n\n**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
2215
2159
  }
2216
2160
  },
2217
2161
  "parametersInfo": {
@@ -2401,8 +2345,8 @@
2401
2345
  "bundle": "geometry",
2402
2346
  "sinceVersion": "1.26",
2403
2347
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
2404
- "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._",
2405
- "examples": "\n##### Esimerkki\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",
2348
+ "description": "Palauttaa ensimmäisen koordinaatin lähtöaineiston viivaa pitkin määrätyn mitan tai m-arvon perusteella. Jos mittaa ei löydy lähtöaineiston viivalta, tulos on \\\"tyhjäarvo\\\". Kaikki viivan osat huomioidaan, kun yritetään etsiä koordinaattia määrätyn mitan kohdalla. Mitta ei sisällä tyhjiä välejä viivan polkujen (tai osien) välillä.\n\n_Kohdegeometriat visualisointi- ja tunnustekstiprofiileissa yleistetään näkymän mittakaavan resoluution mukaan piirtämisen suorituskyvyn parantamiseksi. Sen vuoksi kohteen geometrian (kuten $feature) käyttäminen lähtöaineistona mille tahansa geometriafunktiolle näissä konteksteissa palauttaa erilaiset tulokset kullakin mittakaavatasolla. Muut profiilit, kuten ponnahdusikkuna, sisältää täyden resoluution geometrian._",
2349
+ "examples": "\n##### Esimerkki\n\nPalauttaa lähtöaineiston taiteviivan koordinaatin määrätyn mitan arvon perusteella\n\n```arcade\nvar result = MeasureToCoordinate(Geometry($feature), 110);\n\nreturn result.coordinate;\n```\n\n",
2406
2350
  "completion": {
2407
2351
  "label": "MeasureToCoordinate",
2408
2352
  "detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
@@ -2412,7 +2356,7 @@
2412
2356
  "kind": 3,
2413
2357
  "documentation": {
2414
2358
  "kind": "markdown",
2415
- "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [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`."
2359
+ "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa ensimmäisen koordinaatin lähtöaineiston viivaa pitkin määrätyn mitan tai m-arvon perusteella. Jos mittaa ei löydy lähtöaineiston viivalta, tulos on \\\"tyhjäarvo\\\". Kaikki viivan osat huomioidaan, kun yritetään etsiä koordinaattia määrätyn mitan kohdalla. Mitta ei sisällä tyhjiä välejä viivan polkujen (tai osien) välillä.\n\n_Kohdegeometriat visualisointi- ja tunnustekstiprofiileissa yleistetään näkymän mittakaavan resoluution mukaan piirtämisen suorituskyvyn parantamiseksi. Sen vuoksi kohteen geometrian (kuten $feature) käyttäminen lähtöaineistona mille tahansa geometriafunktiolle näissä konteksteissa palauttaa erilaiset tulokset kullakin mittakaavatasolla. Muut profiilit, kuten ponnahdusikkuna, sisältää täyden resoluution geometrian._\n\n**Parametrit**\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) - Viiva tai polku, josta koordinaattia etsitään. Lähtöaineiston viivan kohdalla \\\"hasM\\\"-arvon on oltava \\\"tosi\\\". Jos \\\"hasM\\\" on \\\"epätosi\\\", palautetaan \\\"tyhjäarvo\\\". Kun kohdetta käytetään lähtöaineistona, kohteen geometrian pitää olla taiteviiva.\n- **inputMeasure**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Mitta tai m-arvo, josta koordinaattia etsitään \\\"inputLine\\\"-kohdetta pitkin viivan alusta alkaen. Kaikki viivan osat huomioidaan, kun yritetään etsiä koordinaattia määrätyn mitan kohdalla. Mitta ei sisällä tyhjiä välejä viivan polkujen (tai osien) välillä.\n\n**Palauta arvo**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nPalauttaa tietohakemiston, joka sisältää seuraavat ominaisuudet. Jos mittaa ei löydy lähtöaineiston viivalta, tulos on \\\"tyhjäarvo\\\".\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Pisteen ensimmäinen koordinaatti \\\"inputLine\\\"-kohdetta pitkin määrätyn mitan arvon perusteella.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Planaarinen etäisyys \\\"inputLine\\\"-kohteen alusta \\\"koordinaattiin\\\" mitattuna kyseistä viivakohdetta pitkin. Jos taiteviivalla polut eivät yhdisty, \\\"distanceAlong\\\"-arvo ei sisällä polkujen alku- ja lopputaitepisteiden välisten tyhjien välien etäisyyttä.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Taiteviivalähtöaineiston tapauksessa sen polun indeksi, johon \\\"koordinaatti\\\" kuuluu.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Sen viivasegmentin indeksi (suhteessa polkuun), johon \\\"koordinaatti\\\" kuuluu. Jos \\\"koordinaatti\\\" edustaa lähtöaineiston viivan taitepistettä, \\\"segmentId\\\" palauttaa edellisen taitepisteen indeksin. Jos \\\"koordinaatti\\\" on \\\"inputLine\\\"-kohteen ensimmäinen taitepiste, \\\"segmentId\\\"-arvo on \\\"0\\\"."
2416
2360
  }
2417
2361
  },
2418
2362
  "parametersInfo": {
@@ -2536,7 +2480,7 @@
2536
2480
  "kind": 3,
2537
2481
  "documentation": {
2538
2482
  "kind": "markdown",
2539
- "value": "**[Lähtien versiosta 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa lähtöaineiston geometrian lähimmän koordinaatin (ei taitepiste) hakupisteeseen. Palautettu tietohakemisto sisältää myös lyhimmän planaarisen etäisyyden hakupisteestä lähimpään koordinaattiin. Jos hakupisteet leikkaavat lähtöaineiston geometrian kanssa, hakupiste palautetaan tuloksena etäisyyden ollessa nolla.\n\n_Kohdegeometriat visualisointi- ja tunnustekstiprofiileissa yleistetään näkymän mittakaavan resoluution mukaan piirtämisen suorituskyvyn parantamiseksi. Sen vuoksi kohteen geometrian (kuten $feature) käyttäminen lähtöaineistona mille tahansa geometriafunktiolle näissä konteksteissa palauttaa erilaiset tulokset kullakin mittakaavatasolla. Muut profiilit, kuten ponnahdusikkuna, sisältää täyden resoluution geometrian._\n\n**Parametrit**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometria, josta saadaan lähin koordinaatti.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Piste, josta etsitään inputGeometry-arvon lähintä koordinaattia.\n\n**Palauta arvo**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nPalauttaa tietohakemiston, joka sisältää seuraavat ominaisuudet.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Lähin koordinaatti inputGeometry-arvosta searchPoint-arvoon.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Planaarinen etäisyys lähimmästä koordinaatista searchPoint-arvoon. Tämä edustaa lyhintä etäisyyttä inputGeometry- ja searchPoint-arvojen välillä.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
2483
+ "value": "**[Lähtien versiosta 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa lähtöaineiston geometrian lähimmän koordinaatin (ei taitepiste) hakupisteeseen. Palautettu tietohakemisto sisältää myös lyhimmän planaarisen etäisyyden hakupisteestä lähimpään koordinaattiin. Jos hakupisteet leikkaavat lähtöaineiston geometrian kanssa, hakupiste palautetaan tuloksena etäisyyden ollessa nolla.\n\n_Kohdegeometriat visualisointi- ja tunnustekstiprofiileissa yleistetään näkymän mittakaavan resoluution mukaan piirtämisen suorituskyvyn parantamiseksi. Sen vuoksi kohteen geometrian (kuten $feature) käyttäminen lähtöaineistona mille tahansa geometriafunktiolle näissä konteksteissa palauttaa erilaiset tulokset kullakin mittakaavatasolla. Muut profiilit, kuten ponnahdusikkuna, sisältää täyden resoluution geometrian._\n\n**Parametrit**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometria, josta saadaan lähin koordinaatti.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Piste, josta etsitään inputGeometry-arvon lähintä koordinaattia.\n\n**Palauta arvo**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nPalauttaa tietohakemiston, joka sisältää seuraavat ominaisuudet.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Lähin koordinaatti inputGeometry-arvosta searchPoint-arvoon.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Planaarinen etäisyys lähimmästä koordinaatista searchPoint-arvoon. Tämä edustaa lyhintä etäisyyttä inputGeometry- ja searchPoint-arvojen välillä.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Sijaintisuhde \\\"searchPoint\\\"-kohteen ja lähimpään koordinaattiin johtavan \\\"inputGeometry\\\"-segmentin välillä. Mahdolliset arvot: \n\n\\\"vasen\\\" – \\\"searchPoint\\\" on \\\"inputGeometry\\\"-kohteen vasemmalla puolella.\n\n\\\"oikea\\\" – \\\"searchPoint\\\" on \\\"inputGeometry\\\"-kohteen oikealla puolella.\n\n\\\"molemmin puolin\\\" – \\\"searchPoint\\\" on \\\"inputGeometry\\\"-kohteen molemmin puolin tai päällä."
2540
2484
  }
2541
2485
  },
2542
2486
  "parametersInfo": {
@@ -2561,7 +2505,7 @@
2561
2505
  "kind": 3,
2562
2506
  "documentation": {
2563
2507
  "kind": "markdown",
2564
- "value": "**[Lähtien versiosta 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa lähtöaineiston geometrian lähimmän taitepisteen hakupisteeseen. Palautettu tietohakemisto sisältää planaarisen etäisyyden hakupisteestä lähimpään taitepisteeseen.\n\n_Kohdegeometriat visualisointi- ja tunnustekstiprofiileissa yleistetään näkymän mittakaavan resoluution mukaan piirtämisen suorituskyvyn parantamiseksi. Sen vuoksi kohteen geometrian (kuten $feature) käyttäminen lähtöaineistona mille tahansa geometriafunktiolle näissä konteksteissa palauttaa erilaiset tulokset kullakin mittakaavatasolla. Muut profiilit, kuten ponnahdusikkuna, sisältää täyden resoluution geometrian._\n\n**Parametrit**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometria, josta saadaan lähin taitepiste.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Piste, josta etsitään inputGeometry-arvon lähintä taitepistettä.\n\n**Palauta arvo**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nPalauttaa tietohakemiston, joka sisältää seuraavat ominaisuudet.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Pistesijainti, joka edustaa lähintä taitepistettä inputGeometry-arvosta searchPoint-arvoon.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Planaarinen etäisyys lähtöaineiston geometrian lähimmästä taitepisteestä searchPoint-arvoon.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
2508
+ "value": "**[Lähtien versiosta 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa lähtöaineiston geometrian lähimmän taitepisteen hakupisteeseen. Palautettu tietohakemisto sisältää planaarisen etäisyyden hakupisteestä lähimpään taitepisteeseen.\n\n_Kohdegeometriat visualisointi- ja tunnustekstiprofiileissa yleistetään näkymän mittakaavan resoluution mukaan piirtämisen suorituskyvyn parantamiseksi. Sen vuoksi kohteen geometrian (kuten $feature) käyttäminen lähtöaineistona mille tahansa geometriafunktiolle näissä konteksteissa palauttaa erilaiset tulokset kullakin mittakaavatasolla. Muut profiilit, kuten ponnahdusikkuna, sisältää täyden resoluution geometrian._\n\n**Parametrit**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometria, josta saadaan lähin taitepiste.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Piste, josta etsitään inputGeometry-arvon lähintä taitepistettä.\n\n**Palauta arvo**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nPalauttaa tietohakemiston, joka sisältää seuraavat ominaisuudet.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Pistesijainti, joka edustaa lähintä taitepistettä inputGeometry-arvosta searchPoint-arvoon.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Planaarinen etäisyys lähtöaineiston geometrian lähimmästä taitepisteestä searchPoint-arvoon.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Sijaintisuhde \\\"searchPoint\\\"-kohteen ja lähimpään taitepisteeseen johtavan \\\"inputGeometry\\\"-segmentin välillä. Mahdolliset arvot: \n\n\\\"vasen\\\" – \\\"searchPoint\\\" on \\\"inputGeometry\\\"-kohteen vasemmalla puolella.\n\n\\\"oikea\\\" – \\\"searchPoint\\\" on \\\"inputGeometry\\\"-kohteen oikealla puolella.\n\n\\\"molemmin puolin\\\" – \\\"searchPoint\\\" on \\\"inputGeometry\\\"-kohteen molemmin puolin tai päällä."
2565
2509
  }
2566
2510
  },
2567
2511
  "parametersInfo": {
@@ -2675,8 +2619,8 @@
2675
2619
  "bundle": "geometry",
2676
2620
  "sinceVersion": "1.26",
2677
2621
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
2678
- "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._",
2679
- "examples": "\n##### Esimerkki\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",
2622
+ "description": "Palauttaa lähimmän koordinaatin ja etäisyyden kyseisen hakupisteen koordinaatin ja lähtöaineiston viivan välillä.\n\n_Kohdegeometriat visualisointi- ja tunnustekstiprofiileissa yleistetään näkymän mittakaavan resoluution mukaan piirtämisen suorituskyvyn parantamiseksi. Sen vuoksi kohteen geometrian (kuten $feature) käyttäminen lähtöaineistona mille tahansa geometriafunktiolle näissä konteksteissa palauttaa erilaiset tulokset kullakin mittakaavatasolla. Muut profiilit, kuten ponnahdusikkuna, sisältää täyden resoluution geometrian._",
2623
+ "examples": "\n##### Esimerkki\n\nPalauttaa etäisyyden lähimpään koordinaattiin lähtöaineiston taiteviivaa pitkin napsautetun sijainnin perusteella ponnahdusikkunan avaamiseksi\n\n```arcade\nvar result;\n\nif (TypeOf($userInput) == \"Point\"){\n result = PointToCoordinate(Geometry($feature), $userInput);\n}\n\nreturn result.distanceAlong;\n```\n\n",
2680
2624
  "completion": {
2681
2625
  "label": "PointToCoordinate",
2682
2626
  "detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
@@ -2686,7 +2630,7 @@
2686
2630
  "kind": 3,
2687
2631
  "documentation": {
2688
2632
  "kind": "markdown",
2689
- "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [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`."
2633
+ "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa lähimmän koordinaatin ja etäisyyden kyseisen hakupisteen koordinaatin ja lähtöaineiston viivan välillä.\n\n_Kohdegeometriat visualisointi- ja tunnustekstiprofiileissa yleistetään näkymän mittakaavan resoluution mukaan piirtämisen suorituskyvyn parantamiseksi. Sen vuoksi kohteen geometrian (kuten $feature) käyttäminen lähtöaineistona mille tahansa geometriafunktiolle näissä konteksteissa palauttaa erilaiset tulokset kullakin mittakaavatasolla. Muut profiilit, kuten ponnahdusikkuna, sisältää täyden resoluution geometrian._\n\n**Parametrit**\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) - Viiva tai polku, jolta etsitään lähintä koordinaattia. Kun kohdetta käytetään lähtöaineistona, kohteen geometrian pitää olla taiteviiva.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Piste, josta etsitään \\\"inputLine\\\"-arvon lähintä koordinaattia.\n\n**Palauta arvo**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nPalauttaa tietohakemiston, joka sisältää seuraavat ominaisuudet.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Pistekoordinaatti edustaa lähintä koordinaattia \\\"inputLine\\\"-kohdetta pitkin \\\"searchPoint\\\"-pisteeseen. Jos \\\"hasZ\\\" on \\\"epätosi\\\" \\\"searchPoint\\\"-pisteessä, haku suoritetaan x/y-koordinaateissa ja z-arvo interpoloidaan.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Planaarinen etäisyys \\\"searchPoint\\\"-pisteestä \\\"koordinaattiin\\\".\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Planaarinen etäisyys \\\"inputLine\\\"-kohteen alusta \\\"koordinaattiin\\\" mitattuna kyseistä viivakohdetta pitkin. Jos taiteviivalla polut eivät yhdisty, \\\"distanceAlong\\\"-arvo ei sisällä polkujen alku- ja lopputaitepisteiden välisten tyhjien välien etäisyyttä.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Taiteviivalähtöaineiston tapauksessa sen polun indeksi, johon \\\"koordinaatti\\\" kuuluu.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Sen viivasegmentin indeksi (suhteessa polkuun), johon \\\"koordinaatti\\\" kuuluu. Jos \\\"koordinaatti\\\" edustaa lähtöaineiston viivan taitepistettä, \\\"segmentId\\\" palauttaa edellisen taitepisteen indeksin. Jos \\\"koordinaatti\\\" on \\\"inputLine\\\"-kohteen ensimmäinen taitepiste, \\\"segmentId\\\"-arvo on \\\"0\\\"."
2690
2634
  }
2691
2635
  },
2692
2636
  "parametersInfo": {
@@ -3132,7 +3076,7 @@
3132
3076
  "sinceVersion": "1.7",
3133
3077
  "link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#domaincode",
3134
3078
  "description": "Palauttaa kohteen liitetyn arvoalueen kuvauksen koodin.",
3135
- "examples": "\n##### Esimerkki\n\ntulostaa viitatun kentän arvoalueen kuvauksen.\n\n```arcade\nDomainCode($feature, 'Enabled', 'True')\n```\n\n",
3079
+ "examples": "\n##### Esimerkki\n\ntulostaa viitatun kentän arvoalueen koodin.\n\n```arcade\nDomainCode($feature, 'Enabled', 'True')\n```\n\n",
3136
3080
  "completion": {
3137
3081
  "label": "DomainCode",
3138
3082
  "detail": "DomainCode(inputFeature, fieldName, value?, subtype?) -> Number,Text",
@@ -3355,8 +3299,8 @@
3355
3299
  "bundle": "core",
3356
3300
  "sinceVersion": "1.20",
3357
3301
  "link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
3358
- "description": "Indicates whether a feature has a given field and if that field has a value.",
3359
- "examples": "\n##### Esimerkki\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",
3302
+ "description": "Ilmaisee, onko kohteella tietty kenttä ja onko kyseisessä kentässä arvo.",
3303
+ "examples": "\n##### Esimerkki\n\nPalauttaa Epätosi-arvon, jos kohteen ominaisuustietoa ei ole tai se on tyhjä\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",
3360
3304
  "completion": {
3361
3305
  "label": "HasValue",
3362
3306
  "detail": "HasValue(inputFeature, fieldName) -> Boolean",
@@ -3366,7 +3310,7 @@
3366
3310
  "kind": 3,
3367
3311
  "documentation": {
3368
3312
  "kind": "markdown",
3369
- "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
3313
+ "value": "**[Lähtien versiosta 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIlmaisee, onko kohteella tietty kenttä ja onko kyseisessä kentässä arvo.\n\n**Parametrit**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Tarkistettava kohde.\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Tarkistettava kentän nimi.\n\n**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
3370
3314
  }
3371
3315
  },
3372
3316
  "parametersInfo": {
@@ -4678,8 +4622,8 @@
4678
4622
  "bundle": "core",
4679
4623
  "sinceVersion": "1.26",
4680
4624
  "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
4681
- "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.",
4682
- "examples": "\n##### Esimerkit\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",
4625
+ "description": "Palauttaa määritetyn oletusarvon, jos matriisin indeksiä ei ole tai määritettyä indeksiä vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.",
4626
+ "examples": "\n##### Esimerkit\n\nMatriisi, jolla on määritettyä indeksiä vastaava arvo\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 4, \"No data\");\n// returns 901\n```\n\nMatriisi, jolla ei ole määritettyä indeksiä vastaavaa arvoa\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 5, \"No data\");\n// returns \"No data\"\n```\n\nMatriisi, jolla on määritettyä indeksiä vastaava tyhjäarvo\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 2, \"No data\");\n// returns \"No data\"\n```\n\n",
4683
4627
  "completion": {
4684
4628
  "label": "DefaultValue",
4685
4629
  "detail": "DefaultValue(container, index, defaultValue) -> Any",
@@ -4689,7 +4633,7 @@
4689
4633
  "kind": 3,
4690
4634
  "documentation": {
4691
4635
  "kind": "markdown",
4692
- "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [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`."
4636
+ "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa määritetyn oletusarvon, jos matriisin indeksiä ei ole tai määritettyä indeksiä vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.\n\n**Parametrit**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - Tarkistettava lähtöaineiston matriisi.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Tarkistettava indeksi.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Tämä arvo palautetaan, jos indeksiä ei ole tai määritettyä indeksiä vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.\n\n**Palauta arvo**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nPalauttaa määritettyä indeksiä vastaavan arvon, jos se on määritetty. Palauttaa muussa tapauksessa \\\"defaultValue\\\"-kohdassa määritetyn arvon."
4693
4637
  }
4694
4638
  },
4695
4639
  "parametersInfo": {
@@ -4702,8 +4646,8 @@
4702
4646
  "name": "defaultvalue",
4703
4647
  "bundle": "core",
4704
4648
  "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
4705
- "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.",
4706
- "examples": "\n##### Esimerkit\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",
4649
+ "description": "Tarkistaa, onko moniulotteisessa matriisissa useiden sisäkkäisten tasojen syvyydessä olevalla indeksillä jokin arvo, ja palauttaa kyseisen arvon, jos se on olemassa. Muussa tapauksessa tämä toiminto palauttaa määritetyn oletusarvon, jos vähintään yksi sisäkkäisistä avaimista tai indekseistä ei ole olemassa tai määritettyä avainta tai indeksiä vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo. Näin voit porautua sisäkkäiseen rakenteeseen askeleen kerrallaan, etkä joudu tarkistamaan kunkin matriisin sisältämiä arvoja.",
4650
+ "examples": "\n##### Esimerkit\n\nMatriisi, jolla on sisäkkäistä indeksiä vastaava arvo\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\nMatriisi, jolla ei ole sisäkkäistä indeksiä vastaavaa arvoa\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\nMatriisi, jolla ei ole pääindeksiä vastaavaa arvoa\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\nSisäkkäisiä arvoja sisältävien tietohakemistojen matriisi\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",
4707
4651
  "completion": {
4708
4652
  "label": "DefaultValue",
4709
4653
  "detail": "DefaultValue(container, keys, defaultValue) -> Any",
@@ -4713,7 +4657,7 @@
4713
4657
  "kind": 3,
4714
4658
  "documentation": {
4715
4659
  "kind": "markdown",
4716
- "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**Parametrit**\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**Palauta arvo**: [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`."
4660
+ "value": "Tarkistaa, onko moniulotteisessa matriisissa useiden sisäkkäisten tasojen syvyydessä olevalla indeksillä jokin arvo, ja palauttaa kyseisen arvon, jos se on olemassa. Muussa tapauksessa tämä toiminto palauttaa määritetyn oletusarvon, jos vähintään yksi sisäkkäisistä avaimista tai indekseistä ei ole olemassa tai määritettyä avainta tai indeksiä vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo. Näin voit porautua sisäkkäiseen rakenteeseen askeleen kerrallaan, etkä joudu tarkistamaan kunkin matriisin sisältämiä arvoja.\n\n**Parametrit**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - Tarkistettava lähtöaineiston matriisi.\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)> - Matriisi, joka koostuu avaimista ja indekseistä ja joka on tarkistettava kullakin säilön rakenteen tasolla.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Tämä arvo palautetaan, jos vähintään yhtä avaimista tai indekseistä ei ole olemassa tai määritettyä avainta vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.\n\n**Palauta arvo**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nPalauttaa määritettyä avainta tai indeksiä vastaavan arvon, jos se on määritetty. Palauttaa muussa tapauksessa \\\"defaultValue\\\"-kohdassa määritetyn arvon."
4717
4661
  }
4718
4662
  },
4719
4663
  "parametersInfo": {
@@ -4880,8 +4824,8 @@
4880
4824
  "bundle": "core",
4881
4825
  "sinceVersion": "1.26",
4882
4826
  "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
4883
- "description": "Indicates whether an array has a value at the given index.",
4884
- "examples": "\n##### Esimerkit\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",
4827
+ "description": "Osoittaa, onko matriisilla arvoa määrätyllä indeksillä.",
4828
+ "examples": "\n##### Esimerkit\n\nMatriisi, jolla on määritettyä indeksiä vastaava arvo\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 4);\n// returns true\n```\n\nMatriisi, jolla ei ole määritettyä indeksiä vastaavaa arvoa\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 5);\n// returns false\n```\n\nMatriisi, jolla on määritettyä indeksiä vastaava tyhjäarvo\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 2);\n// returns false\n```\n\n",
4885
4829
  "completion": {
4886
4830
  "label": "HasValue",
4887
4831
  "detail": "HasValue(inputArray, index) -> Boolean",
@@ -4891,7 +4835,7 @@
4891
4835
  "kind": 3,
4892
4836
  "documentation": {
4893
4837
  "kind": "markdown",
4894
- "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether an array has a value at the given index.\n\n**Parametrit**\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**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
4838
+ "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nOsoittaa, onko matriisilla arvoa määrätyllä indeksillä.\n\n**Parametrit**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - Tarkistettava matriisi.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Tarkistettava indeksi.\n\n**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
4895
4839
  }
4896
4840
  },
4897
4841
  "parametersInfo": {
@@ -4905,8 +4849,8 @@
4905
4849
  "bundle": "core",
4906
4850
  "sinceVersion": "1.26",
4907
4851
  "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
4908
- "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.",
4909
- "examples": "\n##### Esimerkit\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",
4852
+ "description": "Tarkistaa, onko moniulotteisessa matriisissa useiden sisäkkäisten tasojen syvyydessä olevalla indeksillä jokin arvo. Näin voit porautua sisäkkäiseen rakenteeseen askeleen kerrallaan, etkä joudu tarkistamaan kunkin matriisin sisältämiä arvoja. Palauttaa \\\"Tosi\\\"-arvon, jos indeksit ovat olemassa kullakin rakenteen tasolla ja ne sisältävät muun kuin tyhjäarvon.",
4853
+ "examples": "\n##### Esimerkit\n\nMatriisi, jolla on sisäkkäistä indeksiä vastaava arvo\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 4]);\n// returns true\n```\n\nMatriisi, jolla ei ole sisäkkäistä indeksiä vastaavaa arvoa\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 10]);\n// returns false\n```\n\nMatriisi, jolla ei ole pääindeksiä vastaavaa arvoa\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [10, 5]);\n// returns false\n```\n\nSisäkkäisiä arvoja sisältävien tietohakemistojen matriisi\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",
4910
4854
  "completion": {
4911
4855
  "label": "HasValue",
4912
4856
  "detail": "HasValue(inputArray, indexes) -> Boolean",
@@ -4916,7 +4860,7 @@
4916
4860
  "kind": 3,
4917
4861
  "documentation": {
4918
4862
  "kind": "markdown",
4919
- "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
4863
+ "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTarkistaa, onko moniulotteisessa matriisissa useiden sisäkkäisten tasojen syvyydessä olevalla indeksillä jokin arvo. Näin voit porautua sisäkkäiseen rakenteeseen askeleen kerrallaan, etkä joudu tarkistamaan kunkin matriisin sisältämiä arvoja. Palauttaa \\\"Tosi\\\"-arvon, jos indeksit ovat olemassa kullakin rakenteen tasolla ja ne sisältävät muun kuin tyhjäarvon.\n\n**Parametrit**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - Tarkistettava matriisi.\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)> - Matriisi, joka koostuu avaimista ja indekseistä ja joka on tarkistettava kullakin rakenteen tasolla.\n\n**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
4920
4864
  }
4921
4865
  },
4922
4866
  "parametersInfo": {
@@ -5510,7 +5454,7 @@
5510
5454
  "bundle": "core",
5511
5455
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
5512
5456
  "description": "Laskee kahden päivämäärän välisen aikaeron ja palauttaa sen määritetyn aikayksikön mukaisena arvona.",
5513
- "examples": "\n##### Esimerkit\n\nLaskee kahden päivämäärän välisen aikaeron ja palauttaa iän\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\nÅ_Subtracts two Dates and returns the difference_________________________ö.\n\n```arcade\nvar startDate = Date(2022,2,23,2,23,22,0, \"America/New_York\"); // Mar 23, 2022, 2:23:22 AM EDT\nvar endDate = Date(2022,2,23,5,23,22,0, \"unknown\"); // Mar 23, 2022, 5:23:22 AM\n\nDateDiff(endDate, startDate, 'hours')\n// returns 3, since the Date with an unknown time zone is assumed to be New York time before the difference is calculated\n\nDateDiff(endDate, startDate, 'hours', \"America/Los_Angeles\");\n// returns 6, since the Date with an unknown time zone is now considered to be Los Angeles time before the difference is calculated\n```\n\n",
5457
+ "examples": "\n##### Esimerkit\n\nLaskee kahden päivämäärän välisen aikaeron ja palauttaa iän\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\nLaskee kahden päivämäärän välisen aikaeron ja palauttaa sen.\n\n```arcade\nvar startDate = Date(2022,2,23,2,23,22,0, \"America/New_York\"); // Mar 23, 2022, 2:23:22 AM EDT\nvar endDate = Date(2022,2,23,5,23,22,0, \"unknown\"); // Mar 23, 2022, 5:23:22 AM\n\nDateDiff(endDate, startDate, 'hours')\n// returns 3, since the Date with an unknown time zone is assumed to be New York time before the difference is calculated\n\nDateDiff(endDate, startDate, 'hours', \"America/Los_Angeles\");\n// returns 6, since the Date with an unknown time zone is now considered to be Los Angeles time before the difference is calculated\n```\n\n",
5514
5458
  "completion": {
5515
5459
  "label": "DateDiff",
5516
5460
  "detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
@@ -7415,6 +7359,62 @@
7415
7359
  }
7416
7360
  ]
7417
7361
  },
7362
+ {
7363
+ "id": "knowledge-graph_functions",
7364
+ "title": "Tietämyskaavion toiminnot",
7365
+ "items": [
7366
+ {
7367
+ "type": "function",
7368
+ "name": "knowledgegraphbyportalitem",
7369
+ "bundle": "knowledge-graph",
7370
+ "sinceVersion": "1.26",
7371
+ "link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#knowledgegraphbyportalitem",
7372
+ "description": "Palauttaa tietämyskaavion portaalikohteesta.",
7373
+ "examples": "\n##### Esimerkki\n\nPalauttaa kyseisen tietämyskaavion portaalikohteesta.\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n);\n```\n\n",
7374
+ "completion": {
7375
+ "label": "KnowledgeGraphByPortalItem",
7376
+ "detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
7377
+ "insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
7378
+ "insertTextMode": 2,
7379
+ "insertTextFormat": 2,
7380
+ "kind": 3,
7381
+ "documentation": {
7382
+ "kind": "markdown",
7383
+ "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa tietämyskaavion portaalikohteesta.\n\n**Parametrit**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - Portaali, josta kohteita kysellään.\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Sen portaalikohteen GUID-tunnus, joka viittaa tietämyskaaviopalveluun. _Tämän arvon on oltava tekstiliteraali._\n\n**Palauta arvo**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
7384
+ }
7385
+ },
7386
+ "parametersInfo": {
7387
+ "min": 2,
7388
+ "max": 2
7389
+ }
7390
+ },
7391
+ {
7392
+ "type": "function",
7393
+ "name": "querygraph",
7394
+ "bundle": "knowledge-graph",
7395
+ "sinceVersion": "1.26",
7396
+ "link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#querygraph",
7397
+ "description": "Kyselee tietämyskaaviosta openCypher-kyselyllä ja palauttaa joukon entiteettejä ja suhteita kaaviossa sekä niiden ominaisuudet.",
7398
+ "examples": "\n##### Esimerkit\n\nKyselee tietämyskaaviosta tietoja sen sisältämistä \\\"Opiskelija\\\"-entiteeteistä.\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\nKyselee tietämyskaaviosta käyttäen liitosparametreja.\n\n```arcade\n// searches for entities with a `name` property that matches the given string in the query parameters\n// OR falls within the given geom bounding box\n// query returns both the supplier and the part that it buys\nvar query = `MATCH (s:Supplier)-[:buys_part]-(p:Part)\n WHERE s.name=$name OR esri.graph.ST_Intersects($geom, s.geometry)\n RETURN s,p`;\n \n var results = QueryGraph(\n $graph,\n query,\n {\n \"name\": \"Supplier 1\",\n \"geom\": Polygon({\n rings: [[\n [38,-78],\n [39,-79],\n [39,-76],\n [-38,-76],\n [-38,-78]\n ]]\n })\n }\n );\n```\n\n",
7399
+ "completion": {
7400
+ "label": "QueryGraph",
7401
+ "detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Array",
7402
+ "insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
7403
+ "insertTextMode": 2,
7404
+ "insertTextFormat": 2,
7405
+ "kind": 3,
7406
+ "documentation": {
7407
+ "kind": "markdown",
7408
+ "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nKyselee tietämyskaaviosta openCypher-kyselyllä ja palauttaa joukon entiteettejä ja suhteita kaaviossa sekä niiden ominaisuudet.\n\n**Parametrit**\n\n- **graph**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph) - Kyseltävä tietämyskaavio.\n- **openCypherQuery**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - openCypher-kysely, joka suoritetaan tietämyskaaviolle.\n- **queryParameters** (_Optional_): [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - openCypher-kyselyn nimettyjen kyselyparametrien tietohakemisto. Tietohakemiston parametrien nimissä tai avaimissa huomioidaan kirjainkoko. Hyväksytyt parametrit määräytyvät ulkoisen kaaviosäilön mukaan, ja niitä voivat olla seuraavat tyypit: \\\"Matriisi\\\", \\\"Päivämäärä\\\", \\\"Tietohakemisto\\\", \\\"Geometria\\\", \\\"Numero\\\", \\\"Teksti\\\"\n\n**Palauta arvo**: Array"
7409
+ }
7410
+ },
7411
+ "parametersInfo": {
7412
+ "min": 2,
7413
+ "max": 3
7414
+ }
7415
+ }
7416
+ ]
7417
+ },
7418
7418
  {
7419
7419
  "id": "dictionary_functions",
7420
7420
  "title": "Tietohakemistofunktiot",
@@ -7426,8 +7426,8 @@
7426
7426
  "bundle": "core",
7427
7427
  "sinceVersion": "1.26",
7428
7428
  "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
7429
- "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.",
7430
- "examples": "\n##### Esimerkit\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",
7429
+ "description": "Palauttaa määritetyn oletusarvon, jos tietohakemiston avainta ei ole tai määritettyä avainta vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.",
7430
+ "examples": "\n##### Esimerkit\n\nDefaultValue palauttaa määritetyn arvon\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 palauttaa oletusarvon, jos määritetyllä avaimella ei ole mitään arvoa.\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 palauttaa oletusarvon, jos avainta ei ole.\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",
7431
7431
  "completion": {
7432
7432
  "label": "DefaultValue",
7433
7433
  "detail": "DefaultValue(container, key, defaultValue) -> Any",
@@ -7437,7 +7437,7 @@
7437
7437
  "kind": 3,
7438
7438
  "documentation": {
7439
7439
  "kind": "markdown",
7440
- "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [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`."
7440
+ "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa määritetyn oletusarvon, jos tietohakemiston avainta ei ole tai määritettyä avainta vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.\n\n**Parametrit**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - Tarkistettava tietohakemisto tai liite.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Tarkistettava avain.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Tämä arvo palautetaan, jos avainta ei ole tai määritettyä avainta vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.\n\n**Palauta arvo**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nPalauttaa määritettyä avainta vastaavan arvon, jos se on määritetty. Palauttaa muussa tapauksessa \\\"defaultValue\\\"-kohdassa määritetyn arvon."
7441
7441
  }
7442
7442
  },
7443
7443
  "parametersInfo": {
@@ -7450,8 +7450,8 @@
7450
7450
  "name": "defaultvalue",
7451
7451
  "bundle": "core",
7452
7452
  "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
7453
- "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.",
7454
- "examples": "\n##### Esimerkit\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",
7453
+ "description": "Palauttaa määritetyn oletusarvon, jos vähintään yhtä sisäkkäisen tietohakemiston avaimista ei ole olemassa tai määritettyä avainta vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.",
7454
+ "examples": "\n##### Esimerkit\n\nDefaultValue palauttaa määritetyn arvon\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 palauttaa oletusarvon, jos määritetyllä avaimella ei ole mitään arvoa.\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 palauttaa oletusarvon, jos avainta ei ole.\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\nTarkista tyhjäarvo matriisissa tietohakemistossa, jolla on olemassa oleva avain\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",
7455
7455
  "completion": {
7456
7456
  "label": "DefaultValue",
7457
7457
  "detail": "DefaultValue(container, keys, defaultValue) -> Any",
@@ -7461,7 +7461,7 @@
7461
7461
  "kind": 3,
7462
7462
  "documentation": {
7463
7463
  "kind": "markdown",
7464
- "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**Parametrit**\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**Palauta arvo**: [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`."
7464
+ "value": "Palauttaa määritetyn oletusarvon, jos vähintään yhtä sisäkkäisen tietohakemiston avaimista ei ole olemassa tai määritettyä avainta vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.\n\n**Parametrit**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - Tarkistettava tietohakemisto tai liite.\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)> - Matriisi, joka koostuu avaimista ja indekseistä ja joka on tarkistettava kullakin säilön rakenteen tasolla.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Tämä arvo palautetaan, jos vähintään yhtä avaimista tai indekseistä ei ole olemassa tai määritettyä avainta vastaava arvo on \\\"tyhjäarvo\\\" tai tyhjä tekstiarvo.\n\n**Palauta arvo**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nPalauttaa määritettyä avainta tai indeksiä vastaavan arvon, jos se on määritetty. Palauttaa muussa tapauksessa \\\"defaultValue\\\"-kohdassa määritetyn arvon."
7465
7465
  }
7466
7466
  },
7467
7467
  "parametersInfo": {
@@ -7652,8 +7652,8 @@
7652
7652
  "bundle": "core",
7653
7653
  "sinceVersion": "1.20",
7654
7654
  "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
7655
- "description": "Indicates whether a dictionary has a given key and if that key has a value.",
7656
- "examples": "\n##### Esimerkit\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",
7655
+ "description": "Ilmaisee, onko tietohakemistossa tietty avain ja onko kyseisellä avaimella arvo.",
7656
+ "examples": "\n##### Esimerkit\n\nTietohakemisto, jonka avaimella on arvo\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', 18519);\nHasValue(d, 'Cobourg');\n// returns true\n```\n\nTietohakemisto, jonka avaimella ei ole arvoa\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', null);\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nTietohakemisto, jolla ei ole annettua avainta\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000');\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nTietohakemisto, jolla ei ole annettua avainta\n\n```arcade\nif ( HasValue( Schema($feature).fields[0], \"domain\" ) ) {\n // Do something with the value if true\n}\n```\n\n",
7657
7657
  "completion": {
7658
7658
  "label": "HasValue",
7659
7659
  "detail": "HasValue(inputDictionary, key) -> Boolean",
@@ -7663,7 +7663,7 @@
7663
7663
  "kind": 3,
7664
7664
  "documentation": {
7665
7665
  "kind": "markdown",
7666
- "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
7666
+ "value": "**[Lähtien versiosta 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIlmaisee, onko tietohakemistossa tietty avain ja onko kyseisellä avaimella arvo.\n\n**Parametrit**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - Tarkistettava tietohakemisto tai liite.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Etsittävä avaimen tai kentän nimi.\n\n**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
7667
7667
  }
7668
7668
  },
7669
7669
  "parametersInfo": {
@@ -7677,8 +7677,8 @@
7677
7677
  "bundle": "core",
7678
7678
  "sinceVersion": "1.26",
7679
7679
  "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
7680
- "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.",
7681
- "examples": "\n##### Esimerkit\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",
7680
+ "description": "Tarkistaa, onko tietohakemistossa useiden sisäkkäisten tasojen syvyydessä olevalla ominaisuudella jokin arvo. Näin voit porautua sisäkkäiseen rakenteeseen askeleen kerrallaan, etkä joudu tarkistamaan arvoja kullakin tasolla. Palauttaa \\\"Tosi\\\"-arvon, jos avaimet ja indeksit ovat olemassa kullakin rakenteen tasolla ja ne sisältävät muun kuin tyhjäarvon.",
7681
+ "examples": "\n##### Esimerkit\n\nTarkista tietohakemisto, jonka avaimella on sisäkkäinen arvo\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\nTarkista arvo tietohakemistossa, jonka avainta ei ole olemassa\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\nTarkista arvo matriisissa tietohakemistossa, jolla on olemassa oleva avain\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",
7682
7682
  "completion": {
7683
7683
  "label": "HasValue",
7684
7684
  "detail": "HasValue(inputDictionary, keys) -> Boolean",
@@ -7688,7 +7688,7 @@
7688
7688
  "kind": 3,
7689
7689
  "documentation": {
7690
7690
  "kind": "markdown",
7691
- "value": "**[Lähtien versiosta 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**Parametrit**\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)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - An array of the keys or indexes to check in each level of the structure.\n\n**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
7691
+ "value": "**[Lähtien versiosta 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTarkistaa, onko tietohakemistossa useiden sisäkkäisten tasojen syvyydessä olevalla ominaisuudella jokin arvo. Näin voit porautua sisäkkäiseen rakenteeseen askeleen kerrallaan, etkä joudu tarkistamaan arvoja kullakin tasolla. Palauttaa \\\"Tosi\\\"-arvon, jos avaimet ja indeksit ovat olemassa kullakin rakenteen tasolla ja ne sisältävät muun kuin tyhjäarvon.\n\n**Parametrit**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - Tarkistettava tietohakemisto tai liite.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - Matriisi, joka koostuu avaimista ja indekseistä ja joka on tarkistettava kullakin rakenteen tasolla.\n\n**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
7692
7692
  }
7693
7693
  },
7694
7694
  "parametersInfo": {