@arcgis/coding-components 4.29.0-beta.93 → 4.29.0-beta.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +6 -1
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +9 -2
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +1 -1
- package/dist/arcgis-coding-components/index.esm.js +6 -1
- package/dist/arcgis-coding-components/p-23f55366.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-009eaccf.js → p-2ee92dd4.js} +5 -0
- package/dist/arcgis-coding-components/{p-79707082.js → p-3379c876.js} +6 -1
- package/dist/arcgis-coding-components/{p-1d062d47.js → p-361da3f4.js} +6 -1
- package/dist/arcgis-coding-components/{p-ccafed7f.js → p-6addbe14.js} +5 -0
- package/dist/arcgis-coding-components/{p-590b795b.js → p-704356f7.js} +6 -1
- package/dist/arcgis-coding-components/{p-75ae922a.js → p-b1d0e952.js} +7 -2
- package/dist/arcgis-coding-components/{p-4c959bce.js → p-ca87fa23.js} +15 -10
- package/dist/arcgis-coding-components/{p-ca7059d4.js → p-cc1182ad.js} +6 -1
- package/dist/arcgis-coding-components/{p-cdfe57a1.js → p-d7115f8d.js} +6 -1
- package/dist/arcgis-coding-components/p-f75e9797.js +6 -0
- package/dist/arcgis-coding-components/{p-a1a4f5fc.js → p-f7de632b.js} +6 -1
- package/dist/cjs/{arcade-defaults-7faf4d5f.js → arcade-defaults-ca7e0df9.js} +487 -362
- package/dist/cjs/{arcade-mode-26b8bc7a.js → arcade-mode-804c5ea4.js} +24 -20
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +176 -112
- package/dist/cjs/arcgis-coding-components.cjs.js +6 -1
- package/dist/cjs/{css-eb1c8e5c.js → css-57d8d5ce.js} +5 -0
- package/dist/cjs/{cssMode-90f06d02.js → cssMode-26f96949.js} +7 -2
- package/dist/cjs/{html-1aa8e458.js → html-524d1fa5.js} +7 -2
- package/dist/cjs/{htmlMode-d3283acc.js → htmlMode-cfbfa149.js} +7 -2
- package/dist/cjs/{index-aaf14a3e.js → index-b2077a1b.js} +5 -0
- package/dist/cjs/index.cjs.js +7 -2
- package/dist/cjs/{javascript-7a4d9023.js → javascript-256166f8.js} +8 -3
- package/dist/cjs/{jsonMode-73be73dc.js → jsonMode-07101bba.js} +7 -2
- package/dist/cjs/loader.cjs.js +6 -1
- package/dist/cjs/{tsMode-95a699e0.js → tsMode-4bf06b38.js} +7 -2
- package/dist/cjs/{typescript-588df930.js → typescript-d05f2c7b.js} +7 -2
- package/dist/components/arcade-api.js +11 -6
- package/dist/components/arcade-contribution.js +16 -6
- package/dist/components/arcade-defaults.js +243 -118
- package/dist/components/arcade-mode.js +22 -18
- package/dist/components/arcade-results.js +137 -85
- package/dist/components/arcade-suggestions.js +9 -4
- package/dist/components/arcade-variables.js +10 -5
- package/dist/components/arcgis-arcade-api.js +5 -0
- package/dist/components/arcgis-arcade-editor.js +20 -8
- package/dist/components/arcgis-arcade-results.js +5 -0
- package/dist/components/arcgis-arcade-suggestions.js +5 -0
- package/dist/components/arcgis-arcade-variables.js +5 -0
- package/dist/components/arcgis-code-editor.js +5 -0
- package/dist/components/code-editor.js +9 -4
- package/dist/components/fields.js +5 -0
- package/dist/components/functional-components.js +5 -0
- package/dist/components/index.js +5 -0
- package/dist/components/index2.js +7 -2
- package/dist/components/markdown.js +5 -0
- package/dist/components/utilities.js +7 -2
- package/dist/esm/{arcade-defaults-0bc49d1c.js → arcade-defaults-f929db03.js} +479 -354
- package/dist/esm/{arcade-mode-01365fb8.js → arcade-mode-87d3ea19.js} +24 -20
- package/dist/esm/arcgis-arcade-api_6.entry.js +176 -112
- package/dist/esm/arcgis-coding-components.js +7 -2
- package/dist/esm/{css-aade9167.js → css-eb0f99ca.js} +5 -0
- package/dist/esm/{cssMode-edce5a89.js → cssMode-864388a5.js} +7 -2
- package/dist/esm/{html-00b724af.js → html-6c5b1b7a.js} +7 -2
- package/dist/esm/{htmlMode-ad3459b7.js → htmlMode-8edd9000.js} +7 -2
- package/dist/esm/{index-3732acb8.js → index-06f96b57.js} +5 -0
- package/dist/esm/index.js +7 -2
- package/dist/esm/{javascript-bdd52d83.js → javascript-2f8e7e0f.js} +8 -3
- package/dist/esm/{jsonMode-7b4c07fb.js → jsonMode-7cd18ebd.js} +7 -2
- package/dist/esm/loader.js +7 -2
- package/dist/esm/{tsMode-0bd06180.js → tsMode-23e39ee2.js} +7 -2
- package/dist/esm/{typescript-dfdad07a.js → typescript-c122e586.js} +7 -2
- package/dist/loader/cdn.js +5 -1
- package/dist/loader/index.cjs.js +5 -1
- package/dist/loader/index.es2017.js +5 -1
- package/dist/loader/index.js +5 -1
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +1 -1
- package/dist/types/components/arcade-results/arcade-results.d.ts +0 -5
- package/dist/types/components.d.ts +3 -3
- package/dist/types/utils/arcade-executor.d.ts +12 -4
- package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +6 -4
- package/dist/types/utils/profile/editor-profile.d.ts +10 -5
- package/dist/types/utils/profile/types.d.ts +3 -3
- package/dist/types/utils/profile/utils.d.ts +4 -0
- package/package.json +10 -10
- package/dist/arcgis-coding-components/p-86772125.js +0 -1
- package/dist/arcgis-coding-components/p-ac769046.entry.js +0 -1
|
@@ -145,6 +145,62 @@
|
|
|
145
145
|
}
|
|
146
146
|
]
|
|
147
147
|
},
|
|
148
|
+
{
|
|
149
|
+
"id": "knowledgegraph_functions",
|
|
150
|
+
"title": "á_Knowledge graph functions__________________________Ó",
|
|
151
|
+
"items": [
|
|
152
|
+
{
|
|
153
|
+
"type": "function",
|
|
154
|
+
"name": "knowledgegraphbyportalitem",
|
|
155
|
+
"bundle": "knowledge-graph",
|
|
156
|
+
"sinceVersion": "1.26",
|
|
157
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#knowledgegraphbyportalitem",
|
|
158
|
+
"description": "á_Returns a knowledge graph from a portal item________________________Ó.",
|
|
159
|
+
"examples": "\n##### Ejemplo\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": "**[A partir de la versión 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\ná_Returns a knowledge graph from a portal item________________________Ó.\n\n**Parámetros**\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**Valor de retorno**: [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##### Ejemplo\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": "**[A partir de la versión 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**Parámetros**\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**Valor de retorno**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"parametersInfo": {
|
|
198
|
+
"min": 2,
|
|
199
|
+
"max": 3
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
148
204
|
{
|
|
149
205
|
"id": "debugging_functions",
|
|
150
206
|
"title": "Funciones de depuración",
|
|
@@ -204,6 +260,57 @@
|
|
|
204
260
|
"id": "dictionary_functions",
|
|
205
261
|
"title": "Funciones de diccionario",
|
|
206
262
|
"items": [
|
|
263
|
+
[
|
|
264
|
+
{
|
|
265
|
+
"type": "function",
|
|
266
|
+
"name": "defaultvalue",
|
|
267
|
+
"bundle": "core",
|
|
268
|
+
"sinceVersion": "1.26",
|
|
269
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
|
|
270
|
+
"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.",
|
|
271
|
+
"examples": "\n##### Ejemplos\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",
|
|
272
|
+
"completion": {
|
|
273
|
+
"label": "DefaultValue",
|
|
274
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
275
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
276
|
+
"insertTextMode": 2,
|
|
277
|
+
"insertTextFormat": 2,
|
|
278
|
+
"kind": 3,
|
|
279
|
+
"documentation": {
|
|
280
|
+
"kind": "markdown",
|
|
281
|
+
"value": "**[A partir de la versión 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**Parámetros**\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**Valor de retorno**: [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`."
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"parametersInfo": {
|
|
285
|
+
"min": 3,
|
|
286
|
+
"max": 3
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "function",
|
|
291
|
+
"name": "defaultvalue",
|
|
292
|
+
"bundle": "core",
|
|
293
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
|
|
294
|
+
"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.",
|
|
295
|
+
"examples": "\n##### Ejemplos\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",
|
|
296
|
+
"completion": {
|
|
297
|
+
"label": "DefaultValue",
|
|
298
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
299
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
300
|
+
"insertTextMode": 2,
|
|
301
|
+
"insertTextFormat": 2,
|
|
302
|
+
"kind": 3,
|
|
303
|
+
"documentation": {
|
|
304
|
+
"kind": "markdown",
|
|
305
|
+
"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**Parámetros**\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**Valor de retorno**: [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`."
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"parametersInfo": {
|
|
309
|
+
"min": 3,
|
|
310
|
+
"max": 3
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
],
|
|
207
314
|
[
|
|
208
315
|
{
|
|
209
316
|
"type": "function",
|
|
@@ -379,31 +486,58 @@
|
|
|
379
486
|
"max": 2
|
|
380
487
|
}
|
|
381
488
|
},
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
"
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
"
|
|
399
|
-
|
|
489
|
+
[
|
|
490
|
+
{
|
|
491
|
+
"type": "function",
|
|
492
|
+
"name": "hasvalue",
|
|
493
|
+
"bundle": "core",
|
|
494
|
+
"sinceVersion": "1.20",
|
|
495
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
|
|
496
|
+
"description": "Indicates whether a dictionary has a given key and if that key has a value.",
|
|
497
|
+
"examples": "\n##### Ejemplos\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",
|
|
498
|
+
"completion": {
|
|
499
|
+
"label": "HasValue",
|
|
500
|
+
"detail": "HasValue(inputDictionary, key) -> Boolean",
|
|
501
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
|
|
502
|
+
"insertTextMode": 2,
|
|
503
|
+
"insertTextFormat": 2,
|
|
504
|
+
"kind": 3,
|
|
505
|
+
"documentation": {
|
|
506
|
+
"kind": "markdown",
|
|
507
|
+
"value": "**[A partir de la versión 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**Parámetros**\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**Valor de retorno**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
"parametersInfo": {
|
|
511
|
+
"min": 2,
|
|
512
|
+
"max": 2
|
|
400
513
|
}
|
|
401
514
|
},
|
|
402
|
-
|
|
403
|
-
"
|
|
404
|
-
"
|
|
515
|
+
{
|
|
516
|
+
"type": "function",
|
|
517
|
+
"name": "hasvalue",
|
|
518
|
+
"bundle": "core",
|
|
519
|
+
"sinceVersion": "1.26",
|
|
520
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
|
|
521
|
+
"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.",
|
|
522
|
+
"examples": "\n##### Ejemplos\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",
|
|
523
|
+
"completion": {
|
|
524
|
+
"label": "HasValue",
|
|
525
|
+
"detail": "HasValue(inputDictionary, keys) -> Boolean",
|
|
526
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
|
|
527
|
+
"insertTextMode": 2,
|
|
528
|
+
"insertTextFormat": 2,
|
|
529
|
+
"kind": 3,
|
|
530
|
+
"documentation": {
|
|
531
|
+
"kind": "markdown",
|
|
532
|
+
"value": "**[A partir de la versión 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**Parámetros**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The dictionary to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the structure.\n\n**Valor de retorno**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"parametersInfo": {
|
|
536
|
+
"min": 2,
|
|
537
|
+
"max": 2
|
|
538
|
+
}
|
|
405
539
|
}
|
|
406
|
-
|
|
540
|
+
]
|
|
407
541
|
]
|
|
408
542
|
},
|
|
409
543
|
{
|
|
@@ -659,6 +793,31 @@
|
|
|
659
793
|
"max": 1
|
|
660
794
|
}
|
|
661
795
|
},
|
|
796
|
+
{
|
|
797
|
+
"type": "function",
|
|
798
|
+
"name": "hasvalue",
|
|
799
|
+
"bundle": "core",
|
|
800
|
+
"sinceVersion": "1.20",
|
|
801
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
|
|
802
|
+
"description": "Indicates whether a feature has a given field and if that field has a value.",
|
|
803
|
+
"examples": "\n##### Ejemplo\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",
|
|
804
|
+
"completion": {
|
|
805
|
+
"label": "HasValue",
|
|
806
|
+
"detail": "HasValue(inputFeature, fieldName) -> Boolean",
|
|
807
|
+
"insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
|
|
808
|
+
"insertTextMode": 2,
|
|
809
|
+
"insertTextFormat": 2,
|
|
810
|
+
"kind": 3,
|
|
811
|
+
"documentation": {
|
|
812
|
+
"kind": "markdown",
|
|
813
|
+
"value": "**[A partir de la versión 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**Parámetros**\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**Valor de retorno**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
"parametersInfo": {
|
|
817
|
+
"min": 2,
|
|
818
|
+
"max": 2
|
|
819
|
+
}
|
|
820
|
+
},
|
|
662
821
|
{
|
|
663
822
|
"type": "function",
|
|
664
823
|
"name": "schema",
|
|
@@ -2280,6 +2439,57 @@
|
|
|
2280
2439
|
"max": 2
|
|
2281
2440
|
}
|
|
2282
2441
|
},
|
|
2442
|
+
[
|
|
2443
|
+
{
|
|
2444
|
+
"type": "function",
|
|
2445
|
+
"name": "defaultvalue",
|
|
2446
|
+
"bundle": "core",
|
|
2447
|
+
"sinceVersion": "1.26",
|
|
2448
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
|
|
2449
|
+
"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.",
|
|
2450
|
+
"examples": "\n##### Ejemplos\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",
|
|
2451
|
+
"completion": {
|
|
2452
|
+
"label": "DefaultValue",
|
|
2453
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
2454
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
2455
|
+
"insertTextMode": 2,
|
|
2456
|
+
"insertTextFormat": 2,
|
|
2457
|
+
"kind": 3,
|
|
2458
|
+
"documentation": {
|
|
2459
|
+
"kind": "markdown",
|
|
2460
|
+
"value": "**[A partir de la versión 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**Parámetros**\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**Valor de retorno**: [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`."
|
|
2461
|
+
}
|
|
2462
|
+
},
|
|
2463
|
+
"parametersInfo": {
|
|
2464
|
+
"min": 3,
|
|
2465
|
+
"max": 3
|
|
2466
|
+
}
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
"type": "function",
|
|
2470
|
+
"name": "defaultvalue",
|
|
2471
|
+
"bundle": "core",
|
|
2472
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
|
|
2473
|
+
"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.",
|
|
2474
|
+
"examples": "\n##### Ejemplos\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",
|
|
2475
|
+
"completion": {
|
|
2476
|
+
"label": "DefaultValue",
|
|
2477
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
2478
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
2479
|
+
"insertTextMode": 2,
|
|
2480
|
+
"insertTextFormat": 2,
|
|
2481
|
+
"kind": 3,
|
|
2482
|
+
"documentation": {
|
|
2483
|
+
"kind": "markdown",
|
|
2484
|
+
"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**Parámetros**\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**Valor de retorno**: [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`."
|
|
2485
|
+
}
|
|
2486
|
+
},
|
|
2487
|
+
"parametersInfo": {
|
|
2488
|
+
"min": 3,
|
|
2489
|
+
"max": 3
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2492
|
+
],
|
|
2283
2493
|
{
|
|
2284
2494
|
"type": "function",
|
|
2285
2495
|
"name": "densify",
|
|
@@ -2430,6 +2640,31 @@
|
|
|
2430
2640
|
"max": 3
|
|
2431
2641
|
}
|
|
2432
2642
|
},
|
|
2643
|
+
{
|
|
2644
|
+
"type": "function",
|
|
2645
|
+
"name": "distancetocoordinate",
|
|
2646
|
+
"bundle": "geometry",
|
|
2647
|
+
"sinceVersion": "1.26",
|
|
2648
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
|
|
2649
|
+
"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._",
|
|
2650
|
+
"examples": "\n##### Ejemplo\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",
|
|
2651
|
+
"completion": {
|
|
2652
|
+
"label": "DistanceToCoordinate",
|
|
2653
|
+
"detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
|
|
2654
|
+
"insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
|
|
2655
|
+
"insertTextMode": 2,
|
|
2656
|
+
"insertTextFormat": 2,
|
|
2657
|
+
"kind": 3,
|
|
2658
|
+
"documentation": {
|
|
2659
|
+
"kind": "markdown",
|
|
2660
|
+
"value": "**[A partir de la versión 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**Parámetros**\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**Valor de retorno**: [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`."
|
|
2661
|
+
}
|
|
2662
|
+
},
|
|
2663
|
+
"parametersInfo": {
|
|
2664
|
+
"min": 2,
|
|
2665
|
+
"max": 2
|
|
2666
|
+
}
|
|
2667
|
+
},
|
|
2433
2668
|
{
|
|
2434
2669
|
"type": "function",
|
|
2435
2670
|
"name": "envelopeintersects",
|
|
@@ -2603,6 +2838,58 @@
|
|
|
2603
2838
|
"max": 1
|
|
2604
2839
|
}
|
|
2605
2840
|
},
|
|
2841
|
+
[
|
|
2842
|
+
{
|
|
2843
|
+
"type": "function",
|
|
2844
|
+
"name": "hasvalue",
|
|
2845
|
+
"bundle": "core",
|
|
2846
|
+
"sinceVersion": "1.26",
|
|
2847
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
|
|
2848
|
+
"description": "Indicates whether a geometry has a value at a given key or index.",
|
|
2849
|
+
"examples": "\n##### Ejemplos\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",
|
|
2850
|
+
"completion": {
|
|
2851
|
+
"label": "HasValue",
|
|
2852
|
+
"detail": "HasValue(inputGeometry, key) -> Boolean",
|
|
2853
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
|
|
2854
|
+
"insertTextMode": 2,
|
|
2855
|
+
"insertTextFormat": 2,
|
|
2856
|
+
"kind": 3,
|
|
2857
|
+
"documentation": {
|
|
2858
|
+
"kind": "markdown",
|
|
2859
|
+
"value": "**[A partir de la versión 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**Parámetros**\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**Valor de retorno**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
2860
|
+
}
|
|
2861
|
+
},
|
|
2862
|
+
"parametersInfo": {
|
|
2863
|
+
"min": 2,
|
|
2864
|
+
"max": 2
|
|
2865
|
+
}
|
|
2866
|
+
},
|
|
2867
|
+
{
|
|
2868
|
+
"type": "function",
|
|
2869
|
+
"name": "hasvalue",
|
|
2870
|
+
"bundle": "core",
|
|
2871
|
+
"sinceVersion": "1.26",
|
|
2872
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
|
|
2873
|
+
"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.",
|
|
2874
|
+
"examples": "\n##### Ejemplos\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",
|
|
2875
|
+
"completion": {
|
|
2876
|
+
"label": "HasValue",
|
|
2877
|
+
"detail": "HasValue(inputGeometry, keys) -> Boolean",
|
|
2878
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
|
|
2879
|
+
"insertTextMode": 2,
|
|
2880
|
+
"insertTextFormat": 2,
|
|
2881
|
+
"kind": 3,
|
|
2882
|
+
"documentation": {
|
|
2883
|
+
"kind": "markdown",
|
|
2884
|
+
"value": "**[A partir de la versión 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**Parámetros**\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**Valor de retorno**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
2885
|
+
}
|
|
2886
|
+
},
|
|
2887
|
+
"parametersInfo": {
|
|
2888
|
+
"min": 2,
|
|
2889
|
+
"max": 2
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
],
|
|
2606
2893
|
{
|
|
2607
2894
|
"type": "function",
|
|
2608
2895
|
"name": "intersection",
|
|
@@ -2778,6 +3065,31 @@
|
|
|
2778
3065
|
"max": 2
|
|
2779
3066
|
}
|
|
2780
3067
|
},
|
|
3068
|
+
{
|
|
3069
|
+
"type": "function",
|
|
3070
|
+
"name": "measuretocoordinate",
|
|
3071
|
+
"bundle": "geometry",
|
|
3072
|
+
"sinceVersion": "1.26",
|
|
3073
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
|
|
3074
|
+
"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._",
|
|
3075
|
+
"examples": "\n##### Ejemplo\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",
|
|
3076
|
+
"completion": {
|
|
3077
|
+
"label": "MeasureToCoordinate",
|
|
3078
|
+
"detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
|
|
3079
|
+
"insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
|
|
3080
|
+
"insertTextMode": 2,
|
|
3081
|
+
"insertTextFormat": 2,
|
|
3082
|
+
"kind": 3,
|
|
3083
|
+
"documentation": {
|
|
3084
|
+
"kind": "markdown",
|
|
3085
|
+
"value": "**[A partir de la versión 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**Parámetros**\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**Valor de retorno**: [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`."
|
|
3086
|
+
}
|
|
3087
|
+
},
|
|
3088
|
+
"parametersInfo": {
|
|
3089
|
+
"min": 2,
|
|
3090
|
+
"max": 2
|
|
3091
|
+
}
|
|
3092
|
+
},
|
|
2781
3093
|
{
|
|
2782
3094
|
"type": "function",
|
|
2783
3095
|
"name": "multiparttosinglepart",
|
|
@@ -2894,7 +3206,7 @@
|
|
|
2894
3206
|
"kind": 3,
|
|
2895
3207
|
"documentation": {
|
|
2896
3208
|
"kind": "markdown",
|
|
2897
|
-
"value": "**[A partir de la versión 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nDevuelve la coordenada (en lugar del vértice) de la geometría de entrada más próxima al punto de búsqueda. El diccionario devuelto también incluye la distancia planar más corta desde el punto de búsqueda hasta la coordenada más cercana. Si el punto de búsqueda corta la geometría de entrada, se devuelve el punto de búsqueda como resultado con una distancia de cero.\n\n_Las geometrías de entidad en los perfiles de visualización y etiquetado se generalizan de acuerdo con la resolución de escala de la vista para mejorar el rendimiento del dibujo. Por lo tanto, usar una geometría de entidad (p. ej., `$feature`) como entrada para cualquier función de geometría en estos contextos devolverá resultados diferentes en cada nivel de escala. Otros perfiles, como el emergente, proporcionan la geometría de resolución completa._\n\n**Parámetros**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometría desde la que obtener la coordenada más cercana.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Punto desde el que encontrar la coordenada más cercana de `inputGeometry`.\n\n**Valor de retorno**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nDevuelve un diccionario con las propiedades siguientes.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Coordenada más cercana desde `inputGeometry` hasta `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Distancia planar desde la coordenada más cercana hasta `searchPoint`. Esto representa la distancia más corta entre `inputGeometry` y `searchPoint
|
|
3209
|
+
"value": "**[A partir de la versión 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nDevuelve la coordenada (en lugar del vértice) de la geometría de entrada más próxima al punto de búsqueda. El diccionario devuelto también incluye la distancia planar más corta desde el punto de búsqueda hasta la coordenada más cercana. Si el punto de búsqueda corta la geometría de entrada, se devuelve el punto de búsqueda como resultado con una distancia de cero.\n\n_Las geometrías de entidad en los perfiles de visualización y etiquetado se generalizan de acuerdo con la resolución de escala de la vista para mejorar el rendimiento del dibujo. Por lo tanto, usar una geometría de entidad (p. ej., `$feature`) como entrada para cualquier función de geometría en estos contextos devolverá resultados diferentes en cada nivel de escala. Otros perfiles, como el emergente, proporcionan la geometría de resolución completa._\n\n**Parámetros**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometría desde la que obtener la coordenada más cercana.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Punto desde el que encontrar la coordenada más cercana de `inputGeometry`.\n\n**Valor de retorno**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nDevuelve un diccionario con las propiedades siguientes.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Coordenada más cercana desde `inputGeometry` hasta `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Distancia planar desde la coordenada más cercana hasta `searchPoint`. Esto representa la distancia más corta entre `inputGeometry` y `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
2898
3210
|
}
|
|
2899
3211
|
},
|
|
2900
3212
|
"parametersInfo": {
|
|
@@ -2919,7 +3231,7 @@
|
|
|
2919
3231
|
"kind": 3,
|
|
2920
3232
|
"documentation": {
|
|
2921
3233
|
"kind": "markdown",
|
|
2922
|
-
"value": "**[A partir de la versión 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nDevuelve el vértice de la geometría de entrada más próximo al punto de búsqueda. El diccionario devuelto incluye la distancia planar desde el punto de búsqueda hasta el vértice más cercano.\n\n_Las geometrías de entidad en los perfiles de visualización y etiquetado se generalizan de acuerdo con la resolución de escala de la vista para mejorar el rendimiento del dibujo. Por lo tanto, usar una geometría de entidad (p. ej., `$feature`) como entrada para cualquier función de geometría en estos contextos devolverá resultados diferentes en cada nivel de escala. Otros perfiles, como el emergente, proporcionan la geometría de resolución completa._\n\n**Parámetros**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometría desde la que obtener el vértice más cercano.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Punto desde el que encontrar el vértice más cercano de `inputGeometry`.\n\n**Valor de retorno**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nDevuelve un diccionario con las propiedades siguientes.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Ubicación de punto que representa el vértice más cercano desde `inputGeometry` hasta `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Distancia planar desde el vértice más cercano de la geometría de entrada hasta `searchPoint
|
|
3234
|
+
"value": "**[A partir de la versión 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nDevuelve el vértice de la geometría de entrada más próximo al punto de búsqueda. El diccionario devuelto incluye la distancia planar desde el punto de búsqueda hasta el vértice más cercano.\n\n_Las geometrías de entidad en los perfiles de visualización y etiquetado se generalizan de acuerdo con la resolución de escala de la vista para mejorar el rendimiento del dibujo. Por lo tanto, usar una geometría de entidad (p. ej., `$feature`) como entrada para cualquier función de geometría en estos contextos devolverá resultados diferentes en cada nivel de escala. Otros perfiles, como el emergente, proporcionan la geometría de resolución completa._\n\n**Parámetros**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometría desde la que obtener el vértice más cercano.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Punto desde el que encontrar el vértice más cercano de `inputGeometry`.\n\n**Valor de retorno**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nDevuelve un diccionario con las propiedades siguientes.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Ubicación de punto que representa el vértice más cercano desde `inputGeometry` hasta `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Distancia planar desde el vértice más cercano de la geometría de entrada hasta `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
2923
3235
|
}
|
|
2924
3236
|
},
|
|
2925
3237
|
"parametersInfo": {
|
|
@@ -3027,6 +3339,31 @@
|
|
|
3027
3339
|
}
|
|
3028
3340
|
}
|
|
3029
3341
|
],
|
|
3342
|
+
{
|
|
3343
|
+
"type": "function",
|
|
3344
|
+
"name": "pointtocoordinate",
|
|
3345
|
+
"bundle": "geometry",
|
|
3346
|
+
"sinceVersion": "1.26",
|
|
3347
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
|
|
3348
|
+
"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._",
|
|
3349
|
+
"examples": "\n##### Ejemplo\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",
|
|
3350
|
+
"completion": {
|
|
3351
|
+
"label": "PointToCoordinate",
|
|
3352
|
+
"detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
|
|
3353
|
+
"insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
|
|
3354
|
+
"insertTextMode": 2,
|
|
3355
|
+
"insertTextFormat": 2,
|
|
3356
|
+
"kind": 3,
|
|
3357
|
+
"documentation": {
|
|
3358
|
+
"kind": "markdown",
|
|
3359
|
+
"value": "**[A partir de la versión 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**Parámetros**\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**Valor de retorno**: [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`."
|
|
3360
|
+
}
|
|
3361
|
+
},
|
|
3362
|
+
"parametersInfo": {
|
|
3363
|
+
"min": 2,
|
|
3364
|
+
"max": 2
|
|
3365
|
+
}
|
|
3366
|
+
},
|
|
3030
3367
|
[
|
|
3031
3368
|
{
|
|
3032
3369
|
"type": "function",
|
|
@@ -3584,6 +3921,57 @@
|
|
|
3584
3921
|
"max": 1
|
|
3585
3922
|
}
|
|
3586
3923
|
},
|
|
3924
|
+
[
|
|
3925
|
+
{
|
|
3926
|
+
"type": "function",
|
|
3927
|
+
"name": "defaultvalue",
|
|
3928
|
+
"bundle": "core",
|
|
3929
|
+
"sinceVersion": "1.26",
|
|
3930
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
|
|
3931
|
+
"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.",
|
|
3932
|
+
"examples": "\n##### Ejemplos\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",
|
|
3933
|
+
"completion": {
|
|
3934
|
+
"label": "DefaultValue",
|
|
3935
|
+
"detail": "DefaultValue(container, index, defaultValue) -> Any",
|
|
3936
|
+
"insertText": "DefaultValue(${1:container_}, ${2:index_}, ${3:defaultValue_})$0",
|
|
3937
|
+
"insertTextMode": 2,
|
|
3938
|
+
"insertTextFormat": 2,
|
|
3939
|
+
"kind": 3,
|
|
3940
|
+
"documentation": {
|
|
3941
|
+
"kind": "markdown",
|
|
3942
|
+
"value": "**[A partir de la versión 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**Parámetros**\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**Valor de retorno**: [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`."
|
|
3943
|
+
}
|
|
3944
|
+
},
|
|
3945
|
+
"parametersInfo": {
|
|
3946
|
+
"min": 3,
|
|
3947
|
+
"max": 3
|
|
3948
|
+
}
|
|
3949
|
+
},
|
|
3950
|
+
{
|
|
3951
|
+
"type": "function",
|
|
3952
|
+
"name": "defaultvalue",
|
|
3953
|
+
"bundle": "core",
|
|
3954
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
|
|
3955
|
+
"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.",
|
|
3956
|
+
"examples": "\n##### Ejemplos\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",
|
|
3957
|
+
"completion": {
|
|
3958
|
+
"label": "DefaultValue",
|
|
3959
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
3960
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
3961
|
+
"insertTextMode": 2,
|
|
3962
|
+
"insertTextFormat": 2,
|
|
3963
|
+
"kind": 3,
|
|
3964
|
+
"documentation": {
|
|
3965
|
+
"kind": "markdown",
|
|
3966
|
+
"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**Parámetros**\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**Valor de retorno**: [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`."
|
|
3967
|
+
}
|
|
3968
|
+
},
|
|
3969
|
+
"parametersInfo": {
|
|
3970
|
+
"min": 3,
|
|
3971
|
+
"max": 3
|
|
3972
|
+
}
|
|
3973
|
+
}
|
|
3974
|
+
],
|
|
3587
3975
|
[
|
|
3588
3976
|
{
|
|
3589
3977
|
"type": "function",
|
|
@@ -3735,6 +4123,58 @@
|
|
|
3735
4123
|
"max": 1
|
|
3736
4124
|
}
|
|
3737
4125
|
},
|
|
4126
|
+
[
|
|
4127
|
+
{
|
|
4128
|
+
"type": "function",
|
|
4129
|
+
"name": "hasvalue",
|
|
4130
|
+
"bundle": "core",
|
|
4131
|
+
"sinceVersion": "1.26",
|
|
4132
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
|
|
4133
|
+
"description": "Indicates whether an array has a value at the given index.",
|
|
4134
|
+
"examples": "\n##### Ejemplos\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",
|
|
4135
|
+
"completion": {
|
|
4136
|
+
"label": "HasValue",
|
|
4137
|
+
"detail": "HasValue(inputArray, index) -> Boolean",
|
|
4138
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:index_})$0",
|
|
4139
|
+
"insertTextMode": 2,
|
|
4140
|
+
"insertTextFormat": 2,
|
|
4141
|
+
"kind": 3,
|
|
4142
|
+
"documentation": {
|
|
4143
|
+
"kind": "markdown",
|
|
4144
|
+
"value": "**[A partir de la versión 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether an array has a value at the given index.\n\n**Parámetros**\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**Valor de retorno**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4145
|
+
}
|
|
4146
|
+
},
|
|
4147
|
+
"parametersInfo": {
|
|
4148
|
+
"min": 2,
|
|
4149
|
+
"max": 2
|
|
4150
|
+
}
|
|
4151
|
+
},
|
|
4152
|
+
{
|
|
4153
|
+
"type": "function",
|
|
4154
|
+
"name": "hasvalue",
|
|
4155
|
+
"bundle": "core",
|
|
4156
|
+
"sinceVersion": "1.26",
|
|
4157
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
|
|
4158
|
+
"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.",
|
|
4159
|
+
"examples": "\n##### Ejemplos\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",
|
|
4160
|
+
"completion": {
|
|
4161
|
+
"label": "HasValue",
|
|
4162
|
+
"detail": "HasValue(inputArray, indexes) -> Boolean",
|
|
4163
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:indexes_})$0",
|
|
4164
|
+
"insertTextMode": 2,
|
|
4165
|
+
"insertTextFormat": 2,
|
|
4166
|
+
"kind": 3,
|
|
4167
|
+
"documentation": {
|
|
4168
|
+
"kind": "markdown",
|
|
4169
|
+
"value": "**[A partir de la versión 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**Parámetros**\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**Valor de retorno**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4170
|
+
}
|
|
4171
|
+
},
|
|
4172
|
+
"parametersInfo": {
|
|
4173
|
+
"min": 2,
|
|
4174
|
+
"max": 2
|
|
4175
|
+
}
|
|
4176
|
+
}
|
|
4177
|
+
],
|
|
3738
4178
|
{
|
|
3739
4179
|
"type": "function",
|
|
3740
4180
|
"name": "includes",
|
|
@@ -4353,7 +4793,7 @@
|
|
|
4353
4793
|
"sinceVersion": "1.12",
|
|
4354
4794
|
"link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
|
|
4355
4795
|
"description": "La suma de las distancias recorridas entre las observaciones desde la primera hasta la actual más el valor dado.",
|
|
4356
|
-
"examples": "\n##### Ejemplos\n\nSu recorrido tiene seis entidades, como se ha visto arriba. La expresión devuelve un valor para cada entidad en el recorrido. En el primer ejemplo, examinamos los resultados cuando se evalúan en la entidad 2 (p2) con un valor de índice de 2. El cálculo es \\\"30 + 80 + 60 = 170\\\".\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nSu recorrido tiene seis entidades, como se ha visto arriba. La expresión devuelve un valor para cada entidad en el recorrido. En el siguiente ejemplo, examinamos los resultados cuando se evalúan en la entidad 4 (p4) con un valor de índice de 4. El cálculo es \\\"25 + 35 + 30 + 80 + 60 = 230\\\".\n\n```arcade\nTrackDistanceAt(
|
|
4796
|
+
"examples": "\n##### Ejemplos\n\nSu recorrido tiene seis entidades, como se ha visto arriba. La expresión devuelve un valor para cada entidad en el recorrido. En el primer ejemplo, examinamos los resultados cuando se evalúan en la entidad 2 (p2) con un valor de índice de 2. El cálculo es \\\"30 + 80 + 60 = 170\\\".\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nSu recorrido tiene seis entidades, como se ha visto arriba. La expresión devuelve un valor para cada entidad en el recorrido. En el siguiente ejemplo, examinamos los resultados cuando se evalúan en la entidad 4 (p4) con un valor de índice de 4. El cálculo es \\\"25 + 35 + 30 + 80 + 60 = 230\\\".\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n",
|
|
4357
4797
|
"completion": {
|
|
4358
4798
|
"label": "TrackDistanceAt",
|
|
4359
4799
|
"detail": "TrackDistanceAt(index) -> Number",
|
|
@@ -5909,7 +6349,7 @@
|
|
|
5909
6349
|
"sinceVersion": "1.14",
|
|
5910
6350
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
|
|
5911
6351
|
"description": "Devuelve la longitud planar (es decir, cartesiana) del FeatureSet de entrada teniendo en cuenta la información de altura o Z. La geometría proporcionada a esta función deber asignarse a un sistema de coordenadas proyectadas. Si la referencia espacial no proporciona un valor para unidades Z, entonces el resultado se devolverá en metros Tenga en cuenta que no todos los clientes (como la serie 3.x de ArcGIS API for JavaScript) admiten solicitar valores Z incluso cuando los datos contienen información Z.\n\n_Las geometrías de entidad en los perfiles de visualización y etiquetado se generalizan de acuerdo con la resolución de escala de la vista para mejorar el rendimiento del dibujo. Por lo tanto, usar una geometría de entidad (p. ej., `$feature`) como entrada para cualquier función de geometría en estos contextos devolverá resultados diferentes en cada nivel de escala. Otros perfiles, como el emergente, proporcionan la geometría de resolución completa._",
|
|
5912
|
-
"examples": "\n##### Ejemplo\n\nDevuelve la longitud 3D de las entidades de la capa en metros\n\n```arcade\
|
|
6352
|
+
"examples": "\n##### Ejemplo\n\nDevuelve la longitud 3D de las entidades de la capa en metros\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
|
|
5913
6353
|
"completion": {
|
|
5914
6354
|
"label": "Length3D",
|
|
5915
6355
|
"detail": "Length3D(features, unit?) -> Number",
|