@arcgis/coding-components 4.29.0-beta.92 → 4.29.0-beta.94
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-a1a4f5fc.js → p-06b7a85d.js} +6 -1
- package/dist/arcgis-coding-components/{p-4c959bce.js → p-22837217.js} +15 -10
- package/dist/arcgis-coding-components/{p-ccafed7f.js → p-2b1aca7c.js} +5 -0
- package/dist/arcgis-coding-components/{p-75ae922a.js → p-4c4149bc.js} +6 -1
- package/dist/arcgis-coding-components/{p-79707082.js → p-5fb23065.js} +6 -1
- package/dist/arcgis-coding-components/{p-009eaccf.js → p-8f020f20.js} +5 -0
- package/dist/arcgis-coding-components/p-a051ec0a.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-cdfe57a1.js → p-a17571b6.js} +6 -1
- package/dist/arcgis-coding-components/{p-1d062d47.js → p-a6429039.js} +6 -1
- package/dist/arcgis-coding-components/{p-590b795b.js → p-c2344fd6.js} +6 -1
- package/dist/arcgis-coding-components/{p-ca7059d4.js → p-d37fa51c.js} +6 -1
- package/dist/arcgis-coding-components/p-db60fe10.js +6 -0
- package/dist/cjs/{arcade-defaults-7faf4d5f.js → arcade-defaults-042fbece.js} +487 -362
- package/dist/cjs/{arcade-mode-26b8bc7a.js → arcade-mode-b495cb6f.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-19093b80.js} +5 -0
- package/dist/cjs/{cssMode-90f06d02.js → cssMode-ce70c012.js} +7 -2
- package/dist/cjs/{html-1aa8e458.js → html-04cbd899.js} +7 -2
- package/dist/cjs/{htmlMode-d3283acc.js → htmlMode-5e973c6f.js} +7 -2
- package/dist/cjs/{index-aaf14a3e.js → index-30445be8.js} +5 -0
- package/dist/cjs/index.cjs.js +7 -2
- package/dist/cjs/{javascript-7a4d9023.js → javascript-8717f18b.js} +8 -3
- package/dist/cjs/{jsonMode-73be73dc.js → jsonMode-b93b2667.js} +7 -2
- package/dist/cjs/loader.cjs.js +6 -1
- package/dist/cjs/{tsMode-95a699e0.js → tsMode-73e2fe2f.js} +7 -2
- package/dist/cjs/{typescript-588df930.js → typescript-a75c0ef4.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-106e7abf.js} +479 -354
- package/dist/esm/{arcade-mode-01365fb8.js → arcade-mode-a890a073.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-5029659c.js} +5 -0
- package/dist/esm/{cssMode-edce5a89.js → cssMode-c3ebc40a.js} +7 -2
- package/dist/esm/{html-00b724af.js → html-13c9342a.js} +7 -2
- package/dist/esm/{htmlMode-ad3459b7.js → htmlMode-053279f0.js} +7 -2
- package/dist/esm/{index-3732acb8.js → index-c845e955.js} +5 -0
- package/dist/esm/index.js +7 -2
- package/dist/esm/{javascript-bdd52d83.js → javascript-c580af02.js} +8 -3
- package/dist/esm/{jsonMode-7b4c07fb.js → jsonMode-cd51566e.js} +7 -2
- package/dist/esm/loader.js +7 -2
- package/dist/esm/{tsMode-0bd06180.js → tsMode-c0164816.js} +7 -2
- package/dist/esm/{typescript-dfdad07a.js → typescript-7e6d57f4.js} +7 -2
- package/dist/loader/cdn.js +5 -1
- package/dist/loader/index.cjs.js +5 -1
- package/dist/loader/index.es2017.js +5 -1
- package/dist/loader/index.js +5 -1
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +1 -1
- package/dist/types/components/arcade-results/arcade-results.d.ts +0 -5
- package/dist/types/components.d.ts +3 -3
- package/dist/types/utils/arcade-executor.d.ts +12 -4
- package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +6 -4
- package/dist/types/utils/profile/editor-profile.d.ts +10 -5
- package/dist/types/utils/profile/types.d.ts +3 -3
- package/dist/types/utils/profile/utils.d.ts +4 -0
- package/package.json +10 -10
- package/dist/arcgis-coding-components/p-86772125.js +0 -1
- package/dist/arcgis-coding-components/p-ac769046.entry.js +0 -1
|
@@ -145,6 +145,62 @@
|
|
|
145
145
|
}
|
|
146
146
|
]
|
|
147
147
|
},
|
|
148
|
+
{
|
|
149
|
+
"id": "knowledgegraph_functions",
|
|
150
|
+
"title": "ก้_Knowledge graph functions__________________________ษฺ",
|
|
151
|
+
"items": [
|
|
152
|
+
{
|
|
153
|
+
"type": "function",
|
|
154
|
+
"name": "knowledgegraphbyportalitem",
|
|
155
|
+
"bundle": "knowledge-graph",
|
|
156
|
+
"sinceVersion": "1.26",
|
|
157
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#knowledgegraphbyportalitem",
|
|
158
|
+
"description": "ก้_Returns a knowledge graph from a portal item________________________ษฺ.",
|
|
159
|
+
"examples": "\n##### ตัวอย่าง\n\nก้_Returns the knowledge graph from the portal item__________________________ษฺ.\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n);\n```\n\n",
|
|
160
|
+
"completion": {
|
|
161
|
+
"label": "KnowledgeGraphByPortalItem",
|
|
162
|
+
"detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
|
|
163
|
+
"insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
|
|
164
|
+
"insertTextMode": 2,
|
|
165
|
+
"insertTextFormat": 2,
|
|
166
|
+
"kind": 3,
|
|
167
|
+
"documentation": {
|
|
168
|
+
"kind": "markdown",
|
|
169
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nก้_Returns a knowledge graph from a portal item________________________ษฺ.\n\n**พารามิเตอร์**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - ก้_The Portal from which to query features_____________________ษฺ.\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ก้_The GUID of the portal item referencing a knowledge graph service. _This value must be a text literal.______________________________________________________ษฺ\n\n**ส่งคืนค่า**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"parametersInfo": {
|
|
173
|
+
"min": 2,
|
|
174
|
+
"max": 2
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "function",
|
|
179
|
+
"name": "querygraph",
|
|
180
|
+
"bundle": "knowledge-graph",
|
|
181
|
+
"sinceVersion": "1.26",
|
|
182
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#querygraph",
|
|
183
|
+
"description": "ก้_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________ษฺ.",
|
|
184
|
+
"examples": "\n##### ตัวอย่าง\n\nก้_Queries the knowledge graph for information about the `Student` entities it contains____________________________________________ษฺ.\n\n```arcade\nvar results = QueryGraph(\n knowledgeGraph,\n 'MATCH (p:Student)-[e:EnrolledAt]->(s:School)\n WHERE s.name = 'Eastside Elementary'\n RETURN p,e,s.principal,s.numStaff\n LIMIT 1');\n\nreturn Text(results);\n```\n\n",
|
|
185
|
+
"completion": {
|
|
186
|
+
"label": "QueryGraph",
|
|
187
|
+
"detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Dictionary",
|
|
188
|
+
"insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
|
|
189
|
+
"insertTextMode": 2,
|
|
190
|
+
"insertTextFormat": 2,
|
|
191
|
+
"kind": 3,
|
|
192
|
+
"documentation": {
|
|
193
|
+
"kind": "markdown",
|
|
194
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nก้_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________ษฺ.\n\n**พารามิเตอร์**\n\n- **graph**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph) - ก้_The knowledge graph to query______________________________ษฺ.\n- **openCypherQuery**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ก้_The openCypher query to be executed against the knowledge graph_________________________________ษฺ.\n- **queryParameters** (_Optional_): [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - ก้_A dictionary of named query parameters for the openCypher query_________________________________ษฺ. ก้_The parameter names or keys in the dictionary are case-sensitive__________________________________ษฺ. ก้_Parameters accepted depend on the external graph store and can be of type: `Array`, `Date`, `Dictionary`, `Geometry`, `Number, Text`___________________________________________________________________ษฺ\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"parametersInfo": {
|
|
198
|
+
"min": 2,
|
|
199
|
+
"max": 3
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
148
204
|
{
|
|
149
205
|
"id": "enterprise_functions",
|
|
150
206
|
"title": "ฟังก์ชัน Enterprise",
|
|
@@ -938,7 +994,7 @@
|
|
|
938
994
|
"sinceVersion": "1.14",
|
|
939
995
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
|
|
940
996
|
"description": "ส่งคืนความยาวเชิงระนาบ (เช่น Cartesian) ของฟีเจอร์เซ็ตอินพุท โดยพิจารณาความสูงหรือข้อมูล Z ร่วมด้วย เรขาคณิตที่ป้อนในฟังก์ชันนี้ จะต้องได้รับการกำหนดระบบพิกัดแนวระนาบ หากการอ้างอิงเชิงพื้นที่ไม่ได้ระบุค่าสำหรับหน่วย Z ผลลัพธ์จะถูกส่งกลับเป็นเมตร โปรดทราบว่าไม่ใช่ทุกไคลเอ็นต์ (เช่น ชุด 3.x ของ ArcGIS API สำหรับ JavaScript) ที่รองรับ การขอค่า Z แม้ว่าข้อมูลจะมีข้อมูล Z อยู่ก็ตาม\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ",
|
|
941
|
-
"examples": "\n##### ตัวอย่าง\n\nส่งกลับความยาว 3 มิติของคุณสมบัติของชั้นข้อมูลในหน่วยเมตร\n\n```arcade\
|
|
997
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งกลับความยาว 3 มิติของคุณสมบัติของชั้นข้อมูลในหน่วยเมตร\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
|
|
942
998
|
"completion": {
|
|
943
999
|
"label": "Length3D",
|
|
944
1000
|
"detail": "Length3D(features, unit?) -> Number",
|
|
@@ -1627,7 +1683,7 @@
|
|
|
1627
1683
|
"sinceVersion": "1.12",
|
|
1628
1684
|
"link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
|
|
1629
1685
|
"description": "ผลรวมของระยะทางที่เดินทางระหว่างการสังเกตการณ์ จากการสังเกตการณ์ครั้งแรกจนถึงปัจจุบัน บวกด้วยค่าที่กำหนด",
|
|
1630
|
-
"examples": "\n##### ตัวอย่าง\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์จะคืนค่าสำหรับแต่ละฟีเจอร์ในการติดตาม ในตัวอย่างแรก เราจะตรวจสอบผลลัพธ์ เมื่อประเมินค่าที่ฟีเจอร์ 2 (p2) ด้วยค่าดัชนี 2 ผลการคำนวณคือ `30 + 80 + 60 = 170`\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์จะคืนค่าสำหรับแต่ละฟีเจอร์ในการติดตาม ในตัวอย่างต่อไปนี้ เราจะตรวจสอบผลลัพธ์เมื่อประเมินค่าที่ฟีเจอร์ 4 (p4) ด้วยค่าดัชนี 4 ผลการคำนวณคือ `25 + 35 + 30 + 80 + 60 = 230`\n\n```arcade\nTrackDistanceAt(
|
|
1686
|
+
"examples": "\n##### ตัวอย่าง\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์จะคืนค่าสำหรับแต่ละฟีเจอร์ในการติดตาม ในตัวอย่างแรก เราจะตรวจสอบผลลัพธ์ เมื่อประเมินค่าที่ฟีเจอร์ 2 (p2) ด้วยค่าดัชนี 2 ผลการคำนวณคือ `30 + 80 + 60 = 170`\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์จะคืนค่าสำหรับแต่ละฟีเจอร์ในการติดตาม ในตัวอย่างต่อไปนี้ เราจะตรวจสอบผลลัพธ์เมื่อประเมินค่าที่ฟีเจอร์ 4 (p4) ด้วยค่าดัชนี 4 ผลการคำนวณคือ `25 + 35 + 30 + 80 + 60 = 230`\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n",
|
|
1631
1687
|
"completion": {
|
|
1632
1688
|
"label": "TrackDistanceAt",
|
|
1633
1689
|
"detail": "TrackDistanceAt(index) -> Number",
|
|
@@ -3210,6 +3266,57 @@
|
|
|
3210
3266
|
"id": "dictionary_functions",
|
|
3211
3267
|
"title": "ฟังก์ชันพจนานุกรม",
|
|
3212
3268
|
"items": [
|
|
3269
|
+
[
|
|
3270
|
+
{
|
|
3271
|
+
"type": "function",
|
|
3272
|
+
"name": "defaultvalue",
|
|
3273
|
+
"bundle": "core",
|
|
3274
|
+
"sinceVersion": "1.26",
|
|
3275
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
|
|
3276
|
+
"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.",
|
|
3277
|
+
"examples": "\n##### ตัวอย่าง\n\nDefaultValue returns a defined value\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, \"time\", \"No time logged\")\n// value of data.time is defined, so it is returned\n// returns Jan 24, 2024, 12:00:00 PM system time\n```\n\nDefaultValue returns a default if there is no value at the specified key.\n\n```arcade\nvar data = {\n time: '',\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, \"time\", \"No time logged\")\n// value of data.time is empty, so the default is returned\n// returns \"No time logged\"\n```\n\nDefaultValue returns a default if the key does not exist.\n\n```arcade\nvar data = {\n time: ''\n}\n\nDefaultValue(data, \"conditions\", \"n/a\")\n// the conditions key does not exist, so the default is returned\n// returns \"n/a\"\n```\n\n",
|
|
3278
|
+
"completion": {
|
|
3279
|
+
"label": "DefaultValue",
|
|
3280
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
3281
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
3282
|
+
"insertTextMode": 2,
|
|
3283
|
+
"insertTextFormat": 2,
|
|
3284
|
+
"kind": 3,
|
|
3285
|
+
"documentation": {
|
|
3286
|
+
"kind": "markdown",
|
|
3287
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if a key in a dictionary does not exist or the value at the specified key is `null` or an empty text value.\n\n**พารามิเตอร์**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The input dictionary to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the key does not exist or the value at the specified key is `null` or an empty text value.\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
3288
|
+
}
|
|
3289
|
+
},
|
|
3290
|
+
"parametersInfo": {
|
|
3291
|
+
"min": 3,
|
|
3292
|
+
"max": 3
|
|
3293
|
+
}
|
|
3294
|
+
},
|
|
3295
|
+
{
|
|
3296
|
+
"type": "function",
|
|
3297
|
+
"name": "defaultvalue",
|
|
3298
|
+
"bundle": "core",
|
|
3299
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
|
|
3300
|
+
"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.",
|
|
3301
|
+
"examples": "\n##### ตัวอย่าง\n\nDefaultValue returns a defined value\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"value\"], \"No time logged\")\n// value of data.weather.precipitation.value is defined, so it is returned\n// returns 0.4\n```\n\nDefaultValue returns a default if there is no value at the specified key.\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: null,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"value\"], 0)\n// value of data.weather.precipitation.value is null, so the default is returned\n// returns 0\n```\n\nDefaultValue returns a default if the key does not exist.\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: null,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"wind\", \"value\"], \"n/a\")\n// the data.weather.wind key does not exist, so the default is returned\n// returns \"n/a\"\n```\n\nCheck null value in an array within a dictionary with key that exists\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"values\", 3], 0)\n// the value data.weather.precipitation.values[3] is null, so the default is returned\n// returns 0\n```\n\n",
|
|
3302
|
+
"completion": {
|
|
3303
|
+
"label": "DefaultValue",
|
|
3304
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
3305
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
3306
|
+
"insertTextMode": 2,
|
|
3307
|
+
"insertTextFormat": 2,
|
|
3308
|
+
"kind": 3,
|
|
3309
|
+
"documentation": {
|
|
3310
|
+
"kind": "markdown",
|
|
3311
|
+
"value": "Returns a specified default value if at least one of the keys in a nested dictionary does not exist or the value at the specified key is `null` or an empty text value.\n\n**พารามิเตอร์**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The input dictionary to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key or index if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
3312
|
+
}
|
|
3313
|
+
},
|
|
3314
|
+
"parametersInfo": {
|
|
3315
|
+
"min": 3,
|
|
3316
|
+
"max": 3
|
|
3317
|
+
}
|
|
3318
|
+
}
|
|
3319
|
+
],
|
|
3213
3320
|
[
|
|
3214
3321
|
{
|
|
3215
3322
|
"type": "function",
|
|
@@ -3385,31 +3492,58 @@
|
|
|
3385
3492
|
"max": 2
|
|
3386
3493
|
}
|
|
3387
3494
|
},
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
"
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
"
|
|
3405
|
-
|
|
3495
|
+
[
|
|
3496
|
+
{
|
|
3497
|
+
"type": "function",
|
|
3498
|
+
"name": "hasvalue",
|
|
3499
|
+
"bundle": "core",
|
|
3500
|
+
"sinceVersion": "1.20",
|
|
3501
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
|
|
3502
|
+
"description": "Indicates whether a dictionary has a given key and if that key has a value.",
|
|
3503
|
+
"examples": "\n##### ตัวอย่าง\n\nDictionary with key that has a value\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', 18519);\nHasValue(d, 'Cobourg');\n// returns true\n```\n\nDictionary with key that does not have a value\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', null);\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nDictionary without the provided key\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000');\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nDictionary without the provided key\n\n```arcade\nif ( HasValue( Schema($feature).fields[0], \"domain\" ) ) {\n // Do something with the value if true\n}\n```\n\n",
|
|
3504
|
+
"completion": {
|
|
3505
|
+
"label": "HasValue",
|
|
3506
|
+
"detail": "HasValue(inputDictionary, key) -> Boolean",
|
|
3507
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
|
|
3508
|
+
"insertTextMode": 2,
|
|
3509
|
+
"insertTextFormat": 2,
|
|
3510
|
+
"kind": 3,
|
|
3511
|
+
"documentation": {
|
|
3512
|
+
"kind": "markdown",
|
|
3513
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether a dictionary has a given key and if that key has a value.\n\n**พารามิเตอร์**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The dictionary to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key or field name to check.\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3514
|
+
}
|
|
3515
|
+
},
|
|
3516
|
+
"parametersInfo": {
|
|
3517
|
+
"min": 2,
|
|
3518
|
+
"max": 2
|
|
3406
3519
|
}
|
|
3407
3520
|
},
|
|
3408
|
-
|
|
3409
|
-
"
|
|
3410
|
-
"
|
|
3521
|
+
{
|
|
3522
|
+
"type": "function",
|
|
3523
|
+
"name": "hasvalue",
|
|
3524
|
+
"bundle": "core",
|
|
3525
|
+
"sinceVersion": "1.26",
|
|
3526
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
|
|
3527
|
+
"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.",
|
|
3528
|
+
"examples": "\n##### ตัวอย่าง\n\nCheck dictionary with key that has a nested value\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"value\"])){\n // if() evaluates to true, thus executing the return\n return data.weather.precipitation.value;\n}\n```\n\nCheck value in a dictionary with key that does not exist\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"values\", 0])){\n // if() evaluates to false (\"values\" does not exist), thus avoiding the block\n return data.weather.precipitation.values;\n}\n```\n\nCheck value in an array within a dictionary with key that does exist\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"values\", 6])){\n // if() evaluates to true, thus executing the return\n return data.weather.precipitation.values[6];\n}\n```\n\n",
|
|
3529
|
+
"completion": {
|
|
3530
|
+
"label": "HasValue",
|
|
3531
|
+
"detail": "HasValue(inputDictionary, keys) -> Boolean",
|
|
3532
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
|
|
3533
|
+
"insertTextMode": 2,
|
|
3534
|
+
"insertTextFormat": 2,
|
|
3535
|
+
"kind": 3,
|
|
3536
|
+
"documentation": {
|
|
3537
|
+
"kind": "markdown",
|
|
3538
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether a property nested several levels deep in a dictionary has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.\n\n**พารามิเตอร์**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The dictionary to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the structure.\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3539
|
+
}
|
|
3540
|
+
},
|
|
3541
|
+
"parametersInfo": {
|
|
3542
|
+
"min": 2,
|
|
3543
|
+
"max": 2
|
|
3544
|
+
}
|
|
3411
3545
|
}
|
|
3412
|
-
|
|
3546
|
+
]
|
|
3413
3547
|
]
|
|
3414
3548
|
},
|
|
3415
3549
|
{
|
|
@@ -3665,6 +3799,31 @@
|
|
|
3665
3799
|
"max": 1
|
|
3666
3800
|
}
|
|
3667
3801
|
},
|
|
3802
|
+
{
|
|
3803
|
+
"type": "function",
|
|
3804
|
+
"name": "hasvalue",
|
|
3805
|
+
"bundle": "core",
|
|
3806
|
+
"sinceVersion": "1.20",
|
|
3807
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
|
|
3808
|
+
"description": "Indicates whether a feature has a given field and if that field has a value.",
|
|
3809
|
+
"examples": "\n##### ตัวอย่าง\n\nReturn false if feature attribute does not exist or is empty\n\n```arcade\nif(HasValue($feature, \"population\")){\n return $feature.population / AreaGeodetic($feature)\n}\n// Returns the population density if population is available\n```\n\n",
|
|
3810
|
+
"completion": {
|
|
3811
|
+
"label": "HasValue",
|
|
3812
|
+
"detail": "HasValue(inputFeature, fieldName) -> Boolean",
|
|
3813
|
+
"insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
|
|
3814
|
+
"insertTextMode": 2,
|
|
3815
|
+
"insertTextFormat": 2,
|
|
3816
|
+
"kind": 3,
|
|
3817
|
+
"documentation": {
|
|
3818
|
+
"kind": "markdown",
|
|
3819
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether a feature has a given field and if that field has a value.\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The feature to check.\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The field name to check.\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3820
|
+
}
|
|
3821
|
+
},
|
|
3822
|
+
"parametersInfo": {
|
|
3823
|
+
"min": 2,
|
|
3824
|
+
"max": 2
|
|
3825
|
+
}
|
|
3826
|
+
},
|
|
3668
3827
|
{
|
|
3669
3828
|
"type": "function",
|
|
3670
3829
|
"name": "schema",
|
|
@@ -4177,6 +4336,57 @@
|
|
|
4177
4336
|
"max": 2
|
|
4178
4337
|
}
|
|
4179
4338
|
},
|
|
4339
|
+
[
|
|
4340
|
+
{
|
|
4341
|
+
"type": "function",
|
|
4342
|
+
"name": "defaultvalue",
|
|
4343
|
+
"bundle": "core",
|
|
4344
|
+
"sinceVersion": "1.26",
|
|
4345
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
|
|
4346
|
+
"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.",
|
|
4347
|
+
"examples": "\n##### ตัวอย่าง\n\nPoint that has a z-value\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is true\n// returns the value of Geometry($feature).z\n```\n\nPoint that does not have a z-value\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is false\n// returns 1000\n```\n\n",
|
|
4348
|
+
"completion": {
|
|
4349
|
+
"label": "DefaultValue",
|
|
4350
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
4351
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
4352
|
+
"insertTextMode": 2,
|
|
4353
|
+
"insertTextFormat": 2,
|
|
4354
|
+
"kind": 3,
|
|
4355
|
+
"documentation": {
|
|
4356
|
+
"kind": "markdown",
|
|
4357
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if a key in a geometry does not exist or the value at the specified key is `null` or an empty text value.\n\n**พารามิเตอร์**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The input geometry to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the key does not exist or the value at the specified key is `null` or an empty text value.\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
4358
|
+
}
|
|
4359
|
+
},
|
|
4360
|
+
"parametersInfo": {
|
|
4361
|
+
"min": 3,
|
|
4362
|
+
"max": 3
|
|
4363
|
+
}
|
|
4364
|
+
},
|
|
4365
|
+
{
|
|
4366
|
+
"type": "function",
|
|
4367
|
+
"name": "defaultvalue",
|
|
4368
|
+
"bundle": "core",
|
|
4369
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
|
|
4370
|
+
"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.",
|
|
4371
|
+
"examples": "\n##### ตัวอย่าง\n\nRing, coordinate, and x value all exist and have a value\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",0,0,\"z\"], 1000)\n// returns 100\n```\n\nRing does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",2,0,\"z\"], 1000)\n// returns 1000\n```\n\nRing and coordinate exist, but m-value does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",0,0,\"m\"], 100)\n// returns 100\n```\n\n",
|
|
4372
|
+
"completion": {
|
|
4373
|
+
"label": "DefaultValue",
|
|
4374
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
4375
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
4376
|
+
"insertTextMode": 2,
|
|
4377
|
+
"insertTextFormat": 2,
|
|
4378
|
+
"kind": 3,
|
|
4379
|
+
"documentation": {
|
|
4380
|
+
"kind": "markdown",
|
|
4381
|
+
"value": "Returns a specified default value if at least one of the keys in a geometry's nested properties does not exist or the value at the specified key is `null` or an empty text value.\n\n**พารามิเตอร์**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The input geometry to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key or index if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
4382
|
+
}
|
|
4383
|
+
},
|
|
4384
|
+
"parametersInfo": {
|
|
4385
|
+
"min": 3,
|
|
4386
|
+
"max": 3
|
|
4387
|
+
}
|
|
4388
|
+
}
|
|
4389
|
+
],
|
|
4180
4390
|
{
|
|
4181
4391
|
"type": "function",
|
|
4182
4392
|
"name": "densify",
|
|
@@ -4327,6 +4537,31 @@
|
|
|
4327
4537
|
"max": 3
|
|
4328
4538
|
}
|
|
4329
4539
|
},
|
|
4540
|
+
{
|
|
4541
|
+
"type": "function",
|
|
4542
|
+
"name": "distancetocoordinate",
|
|
4543
|
+
"bundle": "geometry",
|
|
4544
|
+
"sinceVersion": "1.26",
|
|
4545
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
|
|
4546
|
+
"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._",
|
|
4547
|
+
"examples": "\n##### ตัวอย่าง\n\nReturns the coordinate of the input polyline based on the given distance value\n\n```arcade\nvar result = DistanceToCoordinate(Geometry($feature), 1038);\n\nreturn result.coordinate;\n```\n\n",
|
|
4548
|
+
"completion": {
|
|
4549
|
+
"label": "DistanceToCoordinate",
|
|
4550
|
+
"detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
|
|
4551
|
+
"insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
|
|
4552
|
+
"insertTextMode": 2,
|
|
4553
|
+
"insertTextFormat": 2,
|
|
4554
|
+
"kind": 3,
|
|
4555
|
+
"documentation": {
|
|
4556
|
+
"kind": "markdown",
|
|
4557
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a coordinate along an input line based on a given distance. If the distance is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**พารามิเตอร์**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to find a coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **inputDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The distance used to find the coordinate along `inputLine` from the start of the line.\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturns a dictionary with the following properties. If the distance is not found along the input line, then the result will be `null`.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The coordinates of a point along `inputLine` based on the given distance value. The `searchPoint` must have `hasZ` equal to `true` for the resulting `coordinate` to include a z value.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the start of the `inputLine` measured along the line to the `coordinate`.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - In the case of a polyline input, the index of the path to which the `coordinate` belongs.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index (relative to the path) of the line segment to which the `coordinate` belongs. If `coordinate` represents a vertex of the input line, then `segmentId` will return the index of the previous vertex. If `coordinate` is the first vertex of `inputLine`, then the value of `segmentId` will be `0`."
|
|
4558
|
+
}
|
|
4559
|
+
},
|
|
4560
|
+
"parametersInfo": {
|
|
4561
|
+
"min": 2,
|
|
4562
|
+
"max": 2
|
|
4563
|
+
}
|
|
4564
|
+
},
|
|
4330
4565
|
{
|
|
4331
4566
|
"type": "function",
|
|
4332
4567
|
"name": "envelopeintersects",
|
|
@@ -4500,6 +4735,58 @@
|
|
|
4500
4735
|
"max": 1
|
|
4501
4736
|
}
|
|
4502
4737
|
},
|
|
4738
|
+
[
|
|
4739
|
+
{
|
|
4740
|
+
"type": "function",
|
|
4741
|
+
"name": "hasvalue",
|
|
4742
|
+
"bundle": "core",
|
|
4743
|
+
"sinceVersion": "1.26",
|
|
4744
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
|
|
4745
|
+
"description": "Indicates whether a geometry has a value at a given key or index.",
|
|
4746
|
+
"examples": "\n##### ตัวอย่าง\n\nPoint that has a z value\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Point\"){\n return HasValue(Geometry($feature), \"z\")\n // returns true\n}\n```\n\nPolygon with key that does not exist\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Polygon\"){\n return HasValue(Geometry($feature), \"verticalCoordinateSystem\")\n // returns false\n}\n```\n\n",
|
|
4747
|
+
"completion": {
|
|
4748
|
+
"label": "HasValue",
|
|
4749
|
+
"detail": "HasValue(inputGeometry, key) -> Boolean",
|
|
4750
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
|
|
4751
|
+
"insertTextMode": 2,
|
|
4752
|
+
"insertTextFormat": 2,
|
|
4753
|
+
"kind": 3,
|
|
4754
|
+
"documentation": {
|
|
4755
|
+
"kind": "markdown",
|
|
4756
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether a geometry has a value at a given key or index.\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The geometry to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key or property name to check.\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4757
|
+
}
|
|
4758
|
+
},
|
|
4759
|
+
"parametersInfo": {
|
|
4760
|
+
"min": 2,
|
|
4761
|
+
"max": 2
|
|
4762
|
+
}
|
|
4763
|
+
},
|
|
4764
|
+
{
|
|
4765
|
+
"type": "function",
|
|
4766
|
+
"name": "hasvalue",
|
|
4767
|
+
"bundle": "core",
|
|
4768
|
+
"sinceVersion": "1.26",
|
|
4769
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
|
|
4770
|
+
"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.",
|
|
4771
|
+
"examples": "\n##### ตัวอย่าง\n\nRing, coordinate, and x value all exist and have a value\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",0,0,\"x\"])){\n // if() evaluates to true, thus executing the return\n return shape.rings[0][0].x;\n // returns -97.06138\n}\n```\n\nRing does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",2,0,\"x\"])){\n // if() evaluates to false, thus not executing the return\n return shape.rings[2][0].x;\n // polygon only has one ring; there is not a third ring\n}\n```\n\nRing and coordinate exist, but m value does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",0,3,\"m\"])){\n // if() evaluates to false, thus not executing the return\n return shape.rings[0][3].m;\n // there is a coordinate at this location, but it does not have an m value\n}\n```\n\n",
|
|
4772
|
+
"completion": {
|
|
4773
|
+
"label": "HasValue",
|
|
4774
|
+
"detail": "HasValue(inputGeometry, keys) -> Boolean",
|
|
4775
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
|
|
4776
|
+
"insertTextMode": 2,
|
|
4777
|
+
"insertTextFormat": 2,
|
|
4778
|
+
"kind": 3,
|
|
4779
|
+
"documentation": {
|
|
4780
|
+
"kind": "markdown",
|
|
4781
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether a property or index nested several levels deep in a geometry has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The dictionary or feature to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the structure.\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4782
|
+
}
|
|
4783
|
+
},
|
|
4784
|
+
"parametersInfo": {
|
|
4785
|
+
"min": 2,
|
|
4786
|
+
"max": 2
|
|
4787
|
+
}
|
|
4788
|
+
}
|
|
4789
|
+
],
|
|
4503
4790
|
{
|
|
4504
4791
|
"type": "function",
|
|
4505
4792
|
"name": "intersection",
|
|
@@ -4675,6 +4962,31 @@
|
|
|
4675
4962
|
"max": 2
|
|
4676
4963
|
}
|
|
4677
4964
|
},
|
|
4965
|
+
{
|
|
4966
|
+
"type": "function",
|
|
4967
|
+
"name": "measuretocoordinate",
|
|
4968
|
+
"bundle": "geometry",
|
|
4969
|
+
"sinceVersion": "1.26",
|
|
4970
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
|
|
4971
|
+
"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._",
|
|
4972
|
+
"examples": "\n##### ตัวอย่าง\n\nReturns the coordinate of the input polyline based on the given measure value\n\n```arcade\nvar result = MeasureToCoordinate(Geometry($feature), 110);\n\nreturn result.coordinate;\n```\n\n",
|
|
4973
|
+
"completion": {
|
|
4974
|
+
"label": "MeasureToCoordinate",
|
|
4975
|
+
"detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
|
|
4976
|
+
"insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
|
|
4977
|
+
"insertTextMode": 2,
|
|
4978
|
+
"insertTextFormat": 2,
|
|
4979
|
+
"kind": 3,
|
|
4980
|
+
"documentation": {
|
|
4981
|
+
"kind": "markdown",
|
|
4982
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a coordinate along an input line based on a given measure, or m-value. If the measure is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**พารามิเตอร์**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to find a coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **inputMeasure**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The measure, or m-value, from which to find a coordinate along `inputLine` from the start of the line.\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturns a dictionary with the following properties. If the measure is not found along the input line, then the result will be `null`.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The coordinates of a point along `inputLine` based on the given measure value. The `searchPoint` must have `hasZ` equal to `true` for the resulting `coordinate` to include a z value.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the start of the `inputLine` measured along the line to the `coordinate`.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - In the case of a polyline input, the index of the path to which the `coordinate` belongs.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index (relative to the path) of the line segment to which the `coordinate` belongs. If `coordinate` represents a vertex of the input line, then `segmentId` will return the index of the previous vertex. If `coordinate` is the first vertex of `inputLine`, then the value of `segmentId` will be `0`."
|
|
4983
|
+
}
|
|
4984
|
+
},
|
|
4985
|
+
"parametersInfo": {
|
|
4986
|
+
"min": 2,
|
|
4987
|
+
"max": 2
|
|
4988
|
+
}
|
|
4989
|
+
},
|
|
4678
4990
|
{
|
|
4679
4991
|
"type": "function",
|
|
4680
4992
|
"name": "multiparttosinglepart",
|
|
@@ -4791,7 +5103,7 @@
|
|
|
4791
5103
|
"kind": 3,
|
|
4792
5104
|
"documentation": {
|
|
4793
5105
|
"kind": "markdown",
|
|
4794
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพิกัดที่ใกล้ที่สุด (ไม่ใช่เวอร์เท็กซ์) ของเรขาคณิตอินพุท ไปยังจุดค้นหา พจนานุกรมที่ส่งคืน จะมีระยะทางระนาบที่สั้นที่สุด จากจุดค้นหาไปยังพิกัดที่ใกล้ที่สุด หากจุดค้นหาตัดกับเรขาคณิตอินพุท จุดค้นหาจะถูกส่งคืนเป็นผลลัพธ์ที่มีระยะทางศูนย์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่จะรับพิกัดที่ใกล้ที่สุดจาก\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดที่จะค้นหาพิกัดที่ใกล้ที่สุดของ `inputGeometry` จาก\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nส่งคืนพจนานุกรมที่มีคุณสมบัติต่อไปนี้\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - พิกัดที่ใกล้ที่สุดจาก `inputGeometry` ไปยัง `searchPoint`\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ระยะทางระนาบจากพิกัดที่ใกล้ที่สุดไปยัง `searchPoint` ค่านี้จะแสดงระยะทางที่ใกล้ที่สุดระหว่าง `inputGeometry` และ `searchPoint
|
|
5106
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพิกัดที่ใกล้ที่สุด (ไม่ใช่เวอร์เท็กซ์) ของเรขาคณิตอินพุท ไปยังจุดค้นหา พจนานุกรมที่ส่งคืน จะมีระยะทางระนาบที่สั้นที่สุด จากจุดค้นหาไปยังพิกัดที่ใกล้ที่สุด หากจุดค้นหาตัดกับเรขาคณิตอินพุท จุดค้นหาจะถูกส่งคืนเป็นผลลัพธ์ที่มีระยะทางศูนย์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่จะรับพิกัดที่ใกล้ที่สุดจาก\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดที่จะค้นหาพิกัดที่ใกล้ที่สุดของ `inputGeometry` จาก\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nส่งคืนพจนานุกรมที่มีคุณสมบัติต่อไปนี้\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - พิกัดที่ใกล้ที่สุดจาก `inputGeometry` ไปยัง `searchPoint`\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ระยะทางระนาบจากพิกัดที่ใกล้ที่สุดไปยัง `searchPoint` ค่านี้จะแสดงระยะทางที่ใกล้ที่สุดระหว่าง `inputGeometry` และ `searchPoint`\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
4795
5107
|
}
|
|
4796
5108
|
},
|
|
4797
5109
|
"parametersInfo": {
|
|
@@ -4816,7 +5128,7 @@
|
|
|
4816
5128
|
"kind": 3,
|
|
4817
5129
|
"documentation": {
|
|
4818
5130
|
"kind": "markdown",
|
|
4819
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนเวอร์เท็กซ์ที่ใกล้ที่สุดของเรขาคณิตอินพุทไปยังจุดค้นหา พจนานุกรมที่ส่งคืน จะรวมระยะทางระนาบจากจุดค้นหาไปยังเวอร์เท็กซ์ที่ใกล้ที่สุด\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่จะรับเวอร์เท็กซ์ที่ใกล้ที่สุดจาก\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดที่จะค้นหาเวอร์เท็กซ์ที่ใกล้ที่สุดของ `inputGeometry` จาก\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nส่งคืนพจนานุกรมที่มีคุณสมบัติต่อไปนี้\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - ตำแหน่งจุดที่แสดงเวอร์เท็กซ์ที่ใกล้ที่สุดจาก `inputGeometry` ไปยัง `searchPoint`\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ระยะทางระนาบจากเวอร์เท็กซ์ที่ใกล้ที่สุดของเรขาคณิตอินพุทไปยัง `searchPoint
|
|
5131
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนเวอร์เท็กซ์ที่ใกล้ที่สุดของเรขาคณิตอินพุทไปยังจุดค้นหา พจนานุกรมที่ส่งคืน จะรวมระยะทางระนาบจากจุดค้นหาไปยังเวอร์เท็กซ์ที่ใกล้ที่สุด\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่จะรับเวอร์เท็กซ์ที่ใกล้ที่สุดจาก\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดที่จะค้นหาเวอร์เท็กซ์ที่ใกล้ที่สุดของ `inputGeometry` จาก\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nส่งคืนพจนานุกรมที่มีคุณสมบัติต่อไปนี้\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - ตำแหน่งจุดที่แสดงเวอร์เท็กซ์ที่ใกล้ที่สุดจาก `inputGeometry` ไปยัง `searchPoint`\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ระยะทางระนาบจากเวอร์เท็กซ์ที่ใกล้ที่สุดของเรขาคณิตอินพุทไปยัง `searchPoint`\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
4820
5132
|
}
|
|
4821
5133
|
},
|
|
4822
5134
|
"parametersInfo": {
|
|
@@ -4924,6 +5236,31 @@
|
|
|
4924
5236
|
}
|
|
4925
5237
|
}
|
|
4926
5238
|
],
|
|
5239
|
+
{
|
|
5240
|
+
"type": "function",
|
|
5241
|
+
"name": "pointtocoordinate",
|
|
5242
|
+
"bundle": "geometry",
|
|
5243
|
+
"sinceVersion": "1.26",
|
|
5244
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
|
|
5245
|
+
"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._",
|
|
5246
|
+
"examples": "\n##### ตัวอย่าง\n\nReturns the distance to the nearest coordinate along the input polyline based on the clicked location to open a popup\n\n```arcade\nvar result;\n\nif (TypeOf($userInput) == \"Point\"){\n result = PointToCoordinate(Geometry($feature), $userInput);\n}\n\nreturn result.distanceAlong;\n```\n\n",
|
|
5247
|
+
"completion": {
|
|
5248
|
+
"label": "PointToCoordinate",
|
|
5249
|
+
"detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
|
|
5250
|
+
"insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
|
|
5251
|
+
"insertTextMode": 2,
|
|
5252
|
+
"insertTextFormat": 2,
|
|
5253
|
+
"kind": 3,
|
|
5254
|
+
"documentation": {
|
|
5255
|
+
"kind": "markdown",
|
|
5256
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the nearest coordinate and distance to that coordinate of the search point to the input line.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**พารามิเตอร์**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to get the nearest coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The point from which to find the nearest coordinate of the `inputLine`.\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturns a dictionary with the following properties.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The point coordinate representing the nearest coordinate along the `inputLine` to the `searchPoint`. The `searchPoint` must have `hasZ` equal to `true` for the resulting `coordinate` to include a z value.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the `searchPoint` to the `coordinate`.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the start of the `inputLine` measured along the line to the `coordinate`.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - In the case of a polyline input, the index of the path to which the `coordinate` belongs.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index (relative to the path) of the line segment to which the `coordinate` belongs. If `coordinate` represents a vertex of the input line, then `segmentId` will return the index of the previous vertex. If `coordinate` is the first vertex of `inputLine`, then the value of `segmentId` will be `0`."
|
|
5257
|
+
}
|
|
5258
|
+
},
|
|
5259
|
+
"parametersInfo": {
|
|
5260
|
+
"min": 2,
|
|
5261
|
+
"max": 2
|
|
5262
|
+
}
|
|
5263
|
+
},
|
|
4927
5264
|
[
|
|
4928
5265
|
{
|
|
4929
5266
|
"type": "function",
|
|
@@ -6814,6 +7151,57 @@
|
|
|
6814
7151
|
"max": 1
|
|
6815
7152
|
}
|
|
6816
7153
|
},
|
|
7154
|
+
[
|
|
7155
|
+
{
|
|
7156
|
+
"type": "function",
|
|
7157
|
+
"name": "defaultvalue",
|
|
7158
|
+
"bundle": "core",
|
|
7159
|
+
"sinceVersion": "1.26",
|
|
7160
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
|
|
7161
|
+
"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.",
|
|
7162
|
+
"examples": "\n##### ตัวอย่าง\n\nArray with value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 4, \"No data\");\n// returns 901\n```\n\nArray with no value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 5, \"No data\");\n// returns \"No data\"\n```\n\nArray with a null value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 2, \"No data\");\n// returns \"No data\"\n```\n\n",
|
|
7163
|
+
"completion": {
|
|
7164
|
+
"label": "DefaultValue",
|
|
7165
|
+
"detail": "DefaultValue(container, index, defaultValue) -> Any",
|
|
7166
|
+
"insertText": "DefaultValue(${1:container_}, ${2:index_}, ${3:defaultValue_})$0",
|
|
7167
|
+
"insertTextMode": 2,
|
|
7168
|
+
"insertTextFormat": 2,
|
|
7169
|
+
"kind": 3,
|
|
7170
|
+
"documentation": {
|
|
7171
|
+
"kind": "markdown",
|
|
7172
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if an index in an array does not exist or the value at the specified index is `null` or an empty text value.\n\n**พารามิเตอร์**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The input array to check.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the index does not exist or the value at the specified index is `null` or an empty text value.\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified index if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
7173
|
+
}
|
|
7174
|
+
},
|
|
7175
|
+
"parametersInfo": {
|
|
7176
|
+
"min": 3,
|
|
7177
|
+
"max": 3
|
|
7178
|
+
}
|
|
7179
|
+
},
|
|
7180
|
+
{
|
|
7181
|
+
"type": "function",
|
|
7182
|
+
"name": "defaultvalue",
|
|
7183
|
+
"bundle": "core",
|
|
7184
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
|
|
7185
|
+
"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.",
|
|
7186
|
+
"examples": "\n##### ตัวอย่าง\n\nArray with a value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [2, 3], \"No data\");\n// returns 1\n```\n\nArray with no value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [2, 10], \"No data\");\n// returns \"No data\"\n```\n\nArray with no value at the parent index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [10, 3], \"No data\");\n// returns \"No data\"\n```\n\nArray of dictionaries with nested values\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nvar a = [ data, data2, data3 ]\nDefaultValue(a, [0, \"weather\",\"precipitation\",\"values\", 6], \"No data\");\n// returns 1\n```\n\n",
|
|
7187
|
+
"completion": {
|
|
7188
|
+
"label": "DefaultValue",
|
|
7189
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
7190
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
7191
|
+
"insertTextMode": 2,
|
|
7192
|
+
"insertTextFormat": 2,
|
|
7193
|
+
"kind": 3,
|
|
7194
|
+
"documentation": {
|
|
7195
|
+
"kind": "markdown",
|
|
7196
|
+
"value": "Checks whether an index nested several levels deep in a multidimensional array has a value and returns that value if present. Otherwise, this function returns a specified default value if at least one of the nested keys or indices does not exist or the value at the specified key or index is `null` or an empty text value. This allows you to drill into a nested structure in one step rather than check values within each array.\n\n**พารามิเตอร์**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The input array to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key or index if defined. Otherwise, returns the value specified in `defaultValue`."
|
|
7197
|
+
}
|
|
7198
|
+
},
|
|
7199
|
+
"parametersInfo": {
|
|
7200
|
+
"min": 3,
|
|
7201
|
+
"max": 3
|
|
7202
|
+
}
|
|
7203
|
+
}
|
|
7204
|
+
],
|
|
6817
7205
|
[
|
|
6818
7206
|
{
|
|
6819
7207
|
"type": "function",
|
|
@@ -6965,6 +7353,58 @@
|
|
|
6965
7353
|
"max": 1
|
|
6966
7354
|
}
|
|
6967
7355
|
},
|
|
7356
|
+
[
|
|
7357
|
+
{
|
|
7358
|
+
"type": "function",
|
|
7359
|
+
"name": "hasvalue",
|
|
7360
|
+
"bundle": "core",
|
|
7361
|
+
"sinceVersion": "1.26",
|
|
7362
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
|
|
7363
|
+
"description": "Indicates whether an array has a value at the given index.",
|
|
7364
|
+
"examples": "\n##### ตัวอย่าง\n\nArray with value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 4);\n// returns true\n```\n\nArray with no value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 5);\n// returns false\n```\n\nArray with a null value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 2);\n// returns false\n```\n\n",
|
|
7365
|
+
"completion": {
|
|
7366
|
+
"label": "HasValue",
|
|
7367
|
+
"detail": "HasValue(inputArray, index) -> Boolean",
|
|
7368
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:index_})$0",
|
|
7369
|
+
"insertTextMode": 2,
|
|
7370
|
+
"insertTextFormat": 2,
|
|
7371
|
+
"kind": 3,
|
|
7372
|
+
"documentation": {
|
|
7373
|
+
"kind": "markdown",
|
|
7374
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether an array has a value at the given index.\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The array to check.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index to check.\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7375
|
+
}
|
|
7376
|
+
},
|
|
7377
|
+
"parametersInfo": {
|
|
7378
|
+
"min": 2,
|
|
7379
|
+
"max": 2
|
|
7380
|
+
}
|
|
7381
|
+
},
|
|
7382
|
+
{
|
|
7383
|
+
"type": "function",
|
|
7384
|
+
"name": "hasvalue",
|
|
7385
|
+
"bundle": "core",
|
|
7386
|
+
"sinceVersion": "1.26",
|
|
7387
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
|
|
7388
|
+
"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.",
|
|
7389
|
+
"examples": "\n##### ตัวอย่าง\n\nArray with a value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 4]);\n// returns true\n```\n\nArray with no value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 10]);\n// returns false\n```\n\nArray with no value at the parent index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [10, 5]);\n// returns false\n```\n\nArray of dictionaries with nested values\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nvar a = [ data, data2, data3 ]\nif(HasValue(a, [0, \"weather\",\"precipitation\",\"values\", 6])){\n // This check succeeds so the value will be returned\n return a[0].weather.precipitation.values[6];\n // returns 1\n}\n```\n\n",
|
|
7390
|
+
"completion": {
|
|
7391
|
+
"label": "HasValue",
|
|
7392
|
+
"detail": "HasValue(inputArray, indexes) -> Boolean",
|
|
7393
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:indexes_})$0",
|
|
7394
|
+
"insertTextMode": 2,
|
|
7395
|
+
"insertTextFormat": 2,
|
|
7396
|
+
"kind": 3,
|
|
7397
|
+
"documentation": {
|
|
7398
|
+
"kind": "markdown",
|
|
7399
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether an index nested several levels deep in a multidimensional array has a value. This allows you to drill into a nested structure in one step rather than check values within each array. Returns `true` if the indexes at each level of the structure exist and include a non-null value.\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The array to check.\n- **indexes**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the structure.\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7400
|
+
}
|
|
7401
|
+
},
|
|
7402
|
+
"parametersInfo": {
|
|
7403
|
+
"min": 2,
|
|
7404
|
+
"max": 2
|
|
7405
|
+
}
|
|
7406
|
+
}
|
|
7407
|
+
],
|
|
6968
7408
|
{
|
|
6969
7409
|
"type": "function",
|
|
6970
7410
|
"name": "includes",
|