@arcgis/coding-components 4.29.0-beta.99 → 4.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +113 -113
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +19 -19
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +4 -4
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-e1cb02b3.js → p-0a2edf01.js} +2 -2
- package/dist/arcgis-coding-components/p-11e79992.js +6 -0
- package/dist/arcgis-coding-components/{p-f75beb80.js → p-36e2cbc2.js} +3 -3
- package/dist/arcgis-coding-components/{p-457e3916.js → p-4406b5a8.js} +2 -2
- package/dist/arcgis-coding-components/{p-87d7ad9e.js → p-4eb30e60.js} +1 -1
- package/dist/arcgis-coding-components/{p-7f9d3fdc.js → p-619ca372.js} +1 -1
- package/dist/arcgis-coding-components/{p-7e0e8ecc.js → p-71125c69.js} +2 -2
- package/dist/arcgis-coding-components/{p-0bab0228.js → p-8d7f0979.js} +2 -2
- package/dist/arcgis-coding-components/p-9b8091c1.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-ad86a5f5.js → p-bd81fdff.js} +11 -11
- package/dist/arcgis-coding-components/{p-f23f7fee.js → p-ecc8dd8a.js} +2 -2
- package/dist/arcgis-coding-components/{p-4648782b.js → p-f9016c56.js} +2 -2
- package/dist/cjs/{arcade-defaults-5dd9ebb7.js → arcade-defaults-b30ccec8.js} +271 -236
- package/dist/cjs/{arcade-mode-0b4c53a1.js → arcade-mode-eb755260.js} +11 -14
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +160 -184
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/{css-fe7f8980.js → css-9e907aa0.js} +1 -1
- package/dist/cjs/{cssMode-4c9b3a32.js → cssMode-e4189b13.js} +3 -3
- package/dist/cjs/{html-b044fbba.js → html-2582ae43.js} +3 -3
- package/dist/cjs/{htmlMode-956a6ffa.js → htmlMode-0edcf1ee.js} +3 -3
- package/dist/cjs/{index-aaceaf1f.js → index-54d6f9be.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-6c55ac8b.js → javascript-425c653a.js} +4 -4
- package/dist/cjs/{jsonMode-d83e322c.js → jsonMode-eea03515.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tsMode-5c5ffa3e.js → tsMode-b92c9221.js} +3 -3
- package/dist/cjs/{typescript-6143656a.js → typescript-cfc1221c.js} +3 -3
- package/dist/components/arcade-api.js +20 -18
- package/dist/components/arcade-contribution.js +9 -8
- package/dist/components/arcade-defaults.js +188 -168
- package/dist/components/arcade-mode.js +10 -12
- package/dist/components/arcade-results.js +29 -83
- package/dist/components/arcade-suggestions.js +15 -12
- package/dist/components/arcade-variables.js +30 -21
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +61 -49
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/fields.js +37 -23
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +3 -3
- package/dist/components/markdown.js +10 -1
- package/dist/components/utilities.js +4 -4
- package/dist/esm/{arcade-defaults-2d7283d4.js → arcade-defaults-a5dc6132.js} +267 -233
- package/dist/esm/{arcade-mode-a8abe5af.js → arcade-mode-d06b6e4f.js} +11 -14
- package/dist/esm/arcgis-arcade-api_6.entry.js +160 -184
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/{css-d31a02ca.js → css-59b4804d.js} +1 -1
- package/dist/esm/{cssMode-5ee45e91.js → cssMode-2bce7da7.js} +3 -3
- package/dist/esm/{html-5c2e488c.js → html-3ad47fc0.js} +3 -3
- package/dist/esm/{htmlMode-376cd5e8.js → htmlMode-6cb73c91.js} +3 -3
- package/dist/esm/{index-1b265749.js → index-ee54d182.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-13ddec2b.js → javascript-8917f926.js} +4 -4
- package/dist/esm/{jsonMode-674e89d6.js → jsonMode-9a1dbf00.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{tsMode-4c4398d7.js → tsMode-2caf1509.js} +3 -3
- package/dist/esm/{typescript-b328b622.js → typescript-a3abccc0.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +2 -7
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +0 -1
- package/dist/types/components.d.ts +2 -7
- package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +2 -2
- package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +1 -0
- package/dist/types/utils/constants.d.ts +2 -2
- package/dist/types/utils/fields.d.ts +1 -0
- package/dist/types/utils/markdown.d.ts +3 -0
- package/dist/types/utils/profile/editor-profile.d.ts +49 -63
- package/dist/types/utils/profile/types.d.ts +122 -1
- package/dist/types/utils/profile/utils.d.ts +22 -9
- package/package.json +8 -8
- package/dist/arcgis-coding-components/p-6d56a4b8.entry.js +0 -6
- package/dist/arcgis-coding-components/p-a75f5087.js +0 -6
- package/dist/components/functional-components.js +0 -15
- package/dist/types/utils/functional-components.d.ts +0 -7
- package/dist/types/utils/json-format.d.ts +0 -1
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
"bundle": "core",
|
|
382
382
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
383
383
|
"description": "Odečte dvě data a vrátí rozdíl v určených jednotkách.",
|
|
384
|
-
"examples": "\n##### Příklady\n\nOdečte dvě data a vrátí stáří\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\
|
|
384
|
+
"examples": "\n##### Příklady\n\nOdečte dvě data a vrátí stáří\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\nOdečte dvě data a vrátí rozdíl.\n\n```arcade\nvar startDate = Date(2022,2,23,2,23,22,0, \"America/New_York\"); // Mar 23, 2022, 2:23:22 AM EDT\nvar endDate = Date(2022,2,23,5,23,22,0, \"unknown\"); // Mar 23, 2022, 5:23:22 AM\n\nDateDiff(endDate, startDate, 'hours')\n// returns 3, since the Date with an unknown time zone is assumed to be New York time before the difference is calculated\n\nDateDiff(endDate, startDate, 'hours', \"America/Los_Angeles\");\n// returns 6, since the Date with an unknown time zone is now considered to be Los Angeles time before the difference is calculated\n```\n\n",
|
|
385
385
|
"completion": {
|
|
386
386
|
"label": "DateDiff",
|
|
387
387
|
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
@@ -1254,6 +1254,62 @@
|
|
|
1254
1254
|
}
|
|
1255
1255
|
]
|
|
1256
1256
|
},
|
|
1257
|
+
{
|
|
1258
|
+
"id": "knowledge-graph_functions",
|
|
1259
|
+
"title": "Funkce diagramu znalostí",
|
|
1260
|
+
"items": [
|
|
1261
|
+
{
|
|
1262
|
+
"type": "function",
|
|
1263
|
+
"name": "knowledgegraphbyportalitem",
|
|
1264
|
+
"bundle": "knowledge-graph",
|
|
1265
|
+
"sinceVersion": "1.26",
|
|
1266
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#knowledgegraphbyportalitem",
|
|
1267
|
+
"description": "Vrátí diagram znalostí z položky portálu.",
|
|
1268
|
+
"examples": "\n##### Příklad\n\nVrátí diagram znalostí z položky portálu.\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n);\n```\n\n",
|
|
1269
|
+
"completion": {
|
|
1270
|
+
"label": "KnowledgeGraphByPortalItem",
|
|
1271
|
+
"detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
|
|
1272
|
+
"insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
|
|
1273
|
+
"insertTextMode": 2,
|
|
1274
|
+
"insertTextFormat": 2,
|
|
1275
|
+
"kind": 3,
|
|
1276
|
+
"documentation": {
|
|
1277
|
+
"kind": "markdown",
|
|
1278
|
+
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrátí diagram znalostí z položky portálu.\n\n**Parametry**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - Portál, z něhož se provádí dotazování prvků.\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - GUID položky portálu odkazující na službu diagramu znalostí. _Tato hodnota musí být textový literál._\n\n**Vrácená hodnota**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1281
|
+
"parametersInfo": {
|
|
1282
|
+
"min": 2,
|
|
1283
|
+
"max": 2
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"type": "function",
|
|
1288
|
+
"name": "querygraph",
|
|
1289
|
+
"bundle": "knowledge-graph",
|
|
1290
|
+
"sinceVersion": "1.26",
|
|
1291
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#querygraph",
|
|
1292
|
+
"description": "Dotazuje se na diagram znalostí pomocí dotazu openCypher a vrátí množinu entit a vztahů v grafu spolu s jejich vlastnostmi.",
|
|
1293
|
+
"examples": "\n##### Příklady\n\nDotazuje diagram znalostí na informace o entitách `Student`, které obsahuje.\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\nDotazuje diagram znalostí pomocí vázaných parametrů.\n\n```arcade\n// searches for entities with a `name` property that matches the given string in the query parameters\n// OR falls within the given geom bounding box\n// query returns both the supplier and the part that it buys\nvar query = `MATCH (s:Supplier)-[:buys_part]-(p:Part)\n WHERE s.name=$name OR esri.graph.ST_Intersects($geom, s.geometry)\n RETURN s,p`;\n \n var results = QueryGraph(\n $graph,\n query,\n {\n \"name\": \"Supplier 1\",\n \"geom\": Polygon({\n rings: [[\n [38,-78],\n [39,-79],\n [39,-76],\n [-38,-76],\n [-38,-78]\n ]]\n })\n }\n );\n```\n\n",
|
|
1294
|
+
"completion": {
|
|
1295
|
+
"label": "QueryGraph",
|
|
1296
|
+
"detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Array",
|
|
1297
|
+
"insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
|
|
1298
|
+
"insertTextMode": 2,
|
|
1299
|
+
"insertTextFormat": 2,
|
|
1300
|
+
"kind": 3,
|
|
1301
|
+
"documentation": {
|
|
1302
|
+
"kind": "markdown",
|
|
1303
|
+
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nDotazuje se na diagram znalostí pomocí dotazu openCypher a vrátí množinu entit a vztahů v grafu spolu s jejich vlastnostmi.\n\n**Parametry**\n\n- **graph**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph) - Diagram znalostí pro dotazování.\n- **openCypherQuery**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Dotaz openCypher, který má být proveden na diagram znalostí.\n- **queryParameters** (_Optional_): [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - Slovník pojmenovaných parametrů dotazu pro dotaz openCypher. U názvů parametrů nebo klíčů ve slovníku se rozlišují velká a malá písmena. Přijaté parametry závisí na externím úložišti grafů a mohou být typu: `Array`, `Date`, `Dictionary`, `Geometry`, `Number`, `Text`\n\n**Vrácená hodnota**: Array"
|
|
1304
|
+
}
|
|
1305
|
+
},
|
|
1306
|
+
"parametersInfo": {
|
|
1307
|
+
"min": 2,
|
|
1308
|
+
"max": 3
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
]
|
|
1312
|
+
},
|
|
1257
1313
|
{
|
|
1258
1314
|
"id": "enterprise_functions",
|
|
1259
1315
|
"title": "Funkce Enterprise",
|
|
@@ -1502,8 +1558,8 @@
|
|
|
1502
1558
|
"bundle": "core",
|
|
1503
1559
|
"sinceVersion": "1.26",
|
|
1504
1560
|
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
|
|
1505
|
-
"description": "
|
|
1506
|
-
"examples": "\n##### Příklady\n\
|
|
1561
|
+
"description": "Vrátí zadanou výchozí hodnotu, pokud index v poli neexistuje nebo je hodnota na zadaném indexu `null` nebo prázdná textová hodnota.",
|
|
1562
|
+
"examples": "\n##### Příklady\n\nPole s hodnotou na daném indexu\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 4, \"No data\");\n// returns 901\n```\n\nPole bez hodnoty na daném indexu\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 5, \"No data\");\n// returns \"No data\"\n```\n\nPole s hodnotou null na daném indexu\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 2, \"No data\");\n// returns \"No data\"\n```\n\n",
|
|
1507
1563
|
"completion": {
|
|
1508
1564
|
"label": "DefaultValue",
|
|
1509
1565
|
"detail": "DefaultValue(container, index, defaultValue) -> Any",
|
|
@@ -1513,7 +1569,7 @@
|
|
|
1513
1569
|
"kind": 3,
|
|
1514
1570
|
"documentation": {
|
|
1515
1571
|
"kind": "markdown",
|
|
1516
|
-
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
1572
|
+
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrátí zadanou výchozí hodnotu, pokud index v poli neexistuje nebo je hodnota na zadaném indexu `null` nebo prázdná textová hodnota.\n\n**Parametry**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - Vstupní pole ke kontrole.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Index ke kontrole.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Tato hodnota je vrácena, pokud index neexistuje nebo je hodnota na zadaném indexu `null` nebo prázdná textová hodnota.\n\n**Vrácená hodnota**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nVrací hodnotu na zadaném indexu, pokud je definován. V opačném případě vrátí hodnotu zadanou v `defaultValue`."
|
|
1517
1573
|
}
|
|
1518
1574
|
},
|
|
1519
1575
|
"parametersInfo": {
|
|
@@ -1526,8 +1582,8 @@
|
|
|
1526
1582
|
"name": "defaultvalue",
|
|
1527
1583
|
"bundle": "core",
|
|
1528
1584
|
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
|
|
1529
|
-
"description": "
|
|
1530
|
-
"examples": "\n##### Příklady\n\
|
|
1585
|
+
"description": "Zkontroluje, zda má index vnořený několik úrovní hluboko ve vícerozměrném poli hodnotu, a pokud ji má, vrátí ji. V opačném případě funkce vrátí zadanou výchozí hodnotu, pokud alespoň jeden z vnořených klíčů nebo indexů neexistuje nebo je hodnota u zadaného klíče nebo indexu `null` nebo prázdná textová hodnota. To vám umožní proniknout do vnořené struktury najednou, místo abyste kontrolovali hodnoty v každém poli.",
|
|
1586
|
+
"examples": "\n##### Příklady\n\nPole s hodnotou na vnořeném indexu\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\nPole bez hodnoty na vnořeném indexu\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\nPole bez hodnoty na nadřazeném indexu\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\nPole slovníků s vnořenými hodnotami\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",
|
|
1531
1587
|
"completion": {
|
|
1532
1588
|
"label": "DefaultValue",
|
|
1533
1589
|
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
@@ -1537,7 +1593,7 @@
|
|
|
1537
1593
|
"kind": 3,
|
|
1538
1594
|
"documentation": {
|
|
1539
1595
|
"kind": "markdown",
|
|
1540
|
-
"value": "
|
|
1596
|
+
"value": "Zkontroluje, zda má index vnořený několik úrovní hluboko ve vícerozměrném poli hodnotu, a pokud ji má, vrátí ji. V opačném případě funkce vrátí zadanou výchozí hodnotu, pokud alespoň jeden z vnořených klíčů nebo indexů neexistuje nebo je hodnota u zadaného klíče nebo indexu `null` nebo prázdná textová hodnota. To vám umožní proniknout do vnořené struktury najednou, místo abyste kontrolovali hodnoty v každém poli.\n\n**Parametry**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - Vstupní pole ke kontrole.\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)> - Pole klíčů nebo indexů, které se mají kontrolovat v každé úrovni struktury kontejneru.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Tato hodnota je vrácena, pokud alespoň jeden z klíčů nebo indexů neexistuje nebo je hodnota u zadaného klíče `null` nebo prázdná textová hodnota.\n\n**Vrácená hodnota**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nVrátí hodnotu na zadaném klíči nebo indexu, je-li definován. V opačném případě vrátí hodnotu zadanou v `defaultValue`."
|
|
1541
1597
|
}
|
|
1542
1598
|
},
|
|
1543
1599
|
"parametersInfo": {
|
|
@@ -1704,8 +1760,8 @@
|
|
|
1704
1760
|
"bundle": "core",
|
|
1705
1761
|
"sinceVersion": "1.26",
|
|
1706
1762
|
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
|
|
1707
|
-
"description": "
|
|
1708
|
-
"examples": "\n##### Příklady\n\
|
|
1763
|
+
"description": "Ukazuje, zda má pole hodnotu na daném indexu.",
|
|
1764
|
+
"examples": "\n##### Příklady\n\nPole s hodnotou na daném indexu\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 4);\n// returns true\n```\n\nPole bez hodnoty na daném indexu\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 5);\n// returns false\n```\n\nPole s hodnotou null na daném indexu\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 2);\n// returns false\n```\n\n",
|
|
1709
1765
|
"completion": {
|
|
1710
1766
|
"label": "HasValue",
|
|
1711
1767
|
"detail": "HasValue(inputArray, index) -> Boolean",
|
|
@@ -1715,7 +1771,7 @@
|
|
|
1715
1771
|
"kind": 3,
|
|
1716
1772
|
"documentation": {
|
|
1717
1773
|
"kind": "markdown",
|
|
1718
|
-
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
1774
|
+
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUkazuje, zda má pole hodnotu na daném indexu.\n\n**Parametry**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - Pole ke kontrole.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Index ke kontrole.\n\n**Vrácená hodnota**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
1719
1775
|
}
|
|
1720
1776
|
},
|
|
1721
1777
|
"parametersInfo": {
|
|
@@ -1729,8 +1785,8 @@
|
|
|
1729
1785
|
"bundle": "core",
|
|
1730
1786
|
"sinceVersion": "1.26",
|
|
1731
1787
|
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
|
|
1732
|
-
"description": "
|
|
1733
|
-
"examples": "\n##### Příklady\n\
|
|
1788
|
+
"description": "Zkontroluje, zda má index vnořený několik úrovní hluboko ve vícerozměrném poli hodnotu. To vám umožní proniknout do vnořené struktury najednou, místo abyste kontrolovali hodnoty v každém poli. Vrací hodnotu `true`, pokud indexy na každé úrovni struktury existují a obsahují nenulovou hodnotu.",
|
|
1789
|
+
"examples": "\n##### Příklady\n\nPole s hodnotou na vnořeném indexu\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 4]);\n// returns true\n```\n\nPole bez hodnoty na vnořeném indexu\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 10]);\n// returns false\n```\n\nPole bez hodnoty na nadřazeném indexu\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [10, 5]);\n// returns false\n```\n\nPole slovníků s vnořenými hodnotami\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",
|
|
1734
1790
|
"completion": {
|
|
1735
1791
|
"label": "HasValue",
|
|
1736
1792
|
"detail": "HasValue(inputArray, indexes) -> Boolean",
|
|
@@ -1740,7 +1796,7 @@
|
|
|
1740
1796
|
"kind": 3,
|
|
1741
1797
|
"documentation": {
|
|
1742
1798
|
"kind": "markdown",
|
|
1743
|
-
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
1799
|
+
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nZkontroluje, zda má index vnořený několik úrovní hluboko ve vícerozměrném poli hodnotu. To vám umožní proniknout do vnořené struktury najednou, místo abyste kontrolovali hodnoty v každém poli. Vrací hodnotu `true`, pokud indexy na každé úrovni struktury existují a obsahují nenulovou hodnotu.\n\n**Parametry**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - Pole ke kontrole.\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)> - Pole klíčů nebo indexů, které se mají kontrolovat v každé úrovni struktury.\n\n**Vrácená hodnota**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
1744
1800
|
}
|
|
1745
1801
|
},
|
|
1746
1802
|
"parametersInfo": {
|
|
@@ -2242,7 +2298,7 @@
|
|
|
2242
2298
|
"sinceVersion": "1.7",
|
|
2243
2299
|
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#domaincode",
|
|
2244
2300
|
"description": "Vrátí kód přidruženého popisu domény v prvku.",
|
|
2245
|
-
"examples": "\n##### Příklad\n\
|
|
2301
|
+
"examples": "\n##### Příklad\n\nvypíše kód domény pro odkazované pole.\n\n```arcade\nDomainCode($feature, 'Enabled', 'True')\n```\n\n",
|
|
2246
2302
|
"completion": {
|
|
2247
2303
|
"label": "DomainCode",
|
|
2248
2304
|
"detail": "DomainCode(inputFeature, fieldName, value?, subtype?) -> Number,Text",
|
|
@@ -2465,8 +2521,8 @@
|
|
|
2465
2521
|
"bundle": "core",
|
|
2466
2522
|
"sinceVersion": "1.20",
|
|
2467
2523
|
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
|
|
2468
|
-
"description": "
|
|
2469
|
-
"examples": "\n##### Příklad\n\
|
|
2524
|
+
"description": "Označuje, zda má prvek dané pole a zda má toto pole hodnotu.",
|
|
2525
|
+
"examples": "\n##### Příklad\n\nVrátit false, pokud atribut prvku neexistuje nebo je prázdný\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",
|
|
2470
2526
|
"completion": {
|
|
2471
2527
|
"label": "HasValue",
|
|
2472
2528
|
"detail": "HasValue(inputFeature, fieldName) -> Boolean",
|
|
@@ -2476,7 +2532,7 @@
|
|
|
2476
2532
|
"kind": 3,
|
|
2477
2533
|
"documentation": {
|
|
2478
2534
|
"kind": "markdown",
|
|
2479
|
-
"value": "**[Od verze 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
2535
|
+
"value": "**[Od verze 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nOznačuje, zda má prvek dané pole a zda má toto pole hodnotu.\n\n**Parametry**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Prvek, u kterého proběhne kontrola.\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Název pole, u kterého proběhne kontrola.\n\n**Vrácená hodnota**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
2480
2536
|
}
|
|
2481
2537
|
},
|
|
2482
2538
|
"parametersInfo": {
|
|
@@ -3096,8 +3152,8 @@
|
|
|
3096
3152
|
"bundle": "data-access",
|
|
3097
3153
|
"sinceVersion": "1.25",
|
|
3098
3154
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#filterbysubtypecode",
|
|
3099
|
-
"description": "
|
|
3100
|
-
"examples": "\n##### Příklad\n\
|
|
3155
|
+
"description": "Vytvoří novou sadu prvků se všemi prvky odpovídajícími zadanému kódu podtypu.",
|
|
3156
|
+
"examples": "\n##### Příklad\n\nFiltrování prvků pomocí kódu podtypu\n\n```arcade\n// Returns all features that have the given subtype code\nFilterBySubtypeCode($layer, 5)\n```\n\n",
|
|
3101
3157
|
"completion": {
|
|
3102
3158
|
"label": "FilterBySubtypeCode",
|
|
3103
3159
|
"detail": "FilterBySubtypeCode(features, subtypeCode) -> FeatureSet",
|
|
@@ -3107,7 +3163,7 @@
|
|
|
3107
3163
|
"kind": 3,
|
|
3108
3164
|
"documentation": {
|
|
3109
3165
|
"kind": "markdown",
|
|
3110
|
-
"value": "**[Od verze 1.25](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
3166
|
+
"value": "**[Od verze 1.25](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVytvoří novou sadu prvků se všemi prvky odpovídajícími zadanému kódu podtypu.\n\n**Parametry**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - Sada prvků nebo vrstva, které mají být filtrovány.\n- **subtypeCode**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Kód podtypu používaný k filtrování prvků v sadě prvků nebo vrstvě.\n\n**Vrácená hodnota**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
3111
3167
|
}
|
|
3112
3168
|
},
|
|
3113
3169
|
"parametersInfo": {
|
|
@@ -4130,8 +4186,8 @@
|
|
|
4130
4186
|
"bundle": "core",
|
|
4131
4187
|
"sinceVersion": "1.26",
|
|
4132
4188
|
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
|
|
4133
|
-
"description": "
|
|
4134
|
-
"examples": "\n##### Příklady\n\nDefaultValue
|
|
4189
|
+
"description": "Vrátí zadanou výchozí hodnotu, pokud klíč ve slovníku neexistuje nebo je hodnota u zadaného klíče `null` nebo prázdná textová hodnota.",
|
|
4190
|
+
"examples": "\n##### Příklady\n\nDefaultValue vrací zadanou hodnotu\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 vrací výchozí hodnotu, pokud u zadaného klíče neexistuje žádná hodnota.\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 vrací výchozí hodnotu, pokud klíč neexistuje.\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",
|
|
4135
4191
|
"completion": {
|
|
4136
4192
|
"label": "DefaultValue",
|
|
4137
4193
|
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
@@ -4141,7 +4197,7 @@
|
|
|
4141
4197
|
"kind": 3,
|
|
4142
4198
|
"documentation": {
|
|
4143
4199
|
"kind": "markdown",
|
|
4144
|
-
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
4200
|
+
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrátí zadanou výchozí hodnotu, pokud klíč ve slovníku neexistuje nebo je hodnota u zadaného klíče `null` nebo prázdná textová hodnota.\n\n**Parametry**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - Slovník nebo příloha ke kontrole.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Klíč ke kontrole.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Tato hodnota je vrácena, pokud klíč neexistuje nebo je hodnota u zadaného klíče `null` nebo prázdná textová hodnota.\n\n**Vrácená hodnota**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nVrací hodnotu na zadaném klíči, pokud je definován. V opačném případě vrátí hodnotu zadanou v `defaultValue`."
|
|
4145
4201
|
}
|
|
4146
4202
|
},
|
|
4147
4203
|
"parametersInfo": {
|
|
@@ -4154,8 +4210,8 @@
|
|
|
4154
4210
|
"name": "defaultvalue",
|
|
4155
4211
|
"bundle": "core",
|
|
4156
4212
|
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
|
|
4157
|
-
"description": "
|
|
4158
|
-
"examples": "\n##### Příklady\n\nDefaultValue
|
|
4213
|
+
"description": "Vrátí zadanou výchozí hodnotu, pokud alespoň jeden z klíčů ve vnořeném slovníku neexistuje nebo je hodnota u zadaného klíče `null` nebo prázdná textová hodnota.",
|
|
4214
|
+
"examples": "\n##### Příklady\n\nDefaultValue vrací zadanou hodnotu\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 vrací výchozí hodnotu, pokud u zadaného klíče neexistuje žádná hodnota.\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 vrací výchozí hodnotu, pokud klíč neexistuje.\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\nZkontroluje nulové hodnoty v poli v rámci slovníku s existujícím klíčem\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",
|
|
4159
4215
|
"completion": {
|
|
4160
4216
|
"label": "DefaultValue",
|
|
4161
4217
|
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
@@ -4165,7 +4221,7 @@
|
|
|
4165
4221
|
"kind": 3,
|
|
4166
4222
|
"documentation": {
|
|
4167
4223
|
"kind": "markdown",
|
|
4168
|
-
"value": "
|
|
4224
|
+
"value": "Vrátí zadanou výchozí hodnotu, pokud alespoň jeden z klíčů ve vnořeném slovníku neexistuje nebo je hodnota u zadaného klíče `null` nebo prázdná textová hodnota.\n\n**Parametry**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - Slovník nebo příloha ke kontrole.\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)> - Pole klíčů nebo indexů, které se mají kontrolovat v každé úrovni struktury kontejneru.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Tato hodnota je vrácena, pokud alespoň jeden z klíčů nebo indexů neexistuje nebo je hodnota u zadaného klíče `null` nebo prázdná textová hodnota.\n\n**Vrácená hodnota**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nVrátí hodnotu na zadaném klíči nebo indexu, je-li definován. V opačném případě vrátí hodnotu zadanou v `defaultValue`."
|
|
4169
4225
|
}
|
|
4170
4226
|
},
|
|
4171
4227
|
"parametersInfo": {
|
|
@@ -4356,8 +4412,8 @@
|
|
|
4356
4412
|
"bundle": "core",
|
|
4357
4413
|
"sinceVersion": "1.20",
|
|
4358
4414
|
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
|
|
4359
|
-
"description": "
|
|
4360
|
-
"examples": "\n##### Příklady\n\
|
|
4415
|
+
"description": "Označuje, zda má slovník daný klíč a zda má tento klíč hodnotu.",
|
|
4416
|
+
"examples": "\n##### Příklady\n\nSlovník s klíčem, který má hodnotu\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', 18519);\nHasValue(d, 'Cobourg');\n// returns true\n```\n\nSlovník s klíčem, který nemá hodnotu\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', null);\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nSlovník bez zadaného klíče\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000');\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nSlovník bez zadaného klíče\n\n```arcade\nif ( HasValue( Schema($feature).fields[0], \"domain\" ) ) {\n // Do something with the value if true\n}\n```\n\n",
|
|
4361
4417
|
"completion": {
|
|
4362
4418
|
"label": "HasValue",
|
|
4363
4419
|
"detail": "HasValue(inputDictionary, key) -> Boolean",
|
|
@@ -4367,7 +4423,7 @@
|
|
|
4367
4423
|
"kind": 3,
|
|
4368
4424
|
"documentation": {
|
|
4369
4425
|
"kind": "markdown",
|
|
4370
|
-
"value": "**[Od verze 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
4426
|
+
"value": "**[Od verze 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nOznačuje, zda má slovník daný klíč a zda má tento klíč hodnotu.\n\n**Parametry**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - Slovník nebo příloha ke kontrole.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Název klíče nebo pole, jehož existence bude zkontrolována.\n\n**Vrácená hodnota**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4371
4427
|
}
|
|
4372
4428
|
},
|
|
4373
4429
|
"parametersInfo": {
|
|
@@ -4381,8 +4437,8 @@
|
|
|
4381
4437
|
"bundle": "core",
|
|
4382
4438
|
"sinceVersion": "1.26",
|
|
4383
4439
|
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
|
|
4384
|
-
"description": "
|
|
4385
|
-
"examples": "\n##### Příklady\n\
|
|
4440
|
+
"description": "Zkontroluje, zda má vlastnost vnořená několik úrovní hluboko do slovníku hodnotu. To vám umožní proniknout do vnořené struktury najednou, místo abyste kontrolovali hodnoty na každé úrovni. Vrací hodnotu `true`, pokud klíče a indexy na každé úrovni struktury existují a obsahují nenulovou hodnotu.",
|
|
4441
|
+
"examples": "\n##### Příklady\n\nZkontrolovat slovník s klíčem, který má vnořenou hodnotu\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\nZkontrolovat hodnoty ve slovníku s neexistujícím klíčem\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\nZkontrolovat hodnoty v poli v rámci slovníku s klíčem, který existuje\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",
|
|
4386
4442
|
"completion": {
|
|
4387
4443
|
"label": "HasValue",
|
|
4388
4444
|
"detail": "HasValue(inputDictionary, keys) -> Boolean",
|
|
@@ -4392,7 +4448,7 @@
|
|
|
4392
4448
|
"kind": 3,
|
|
4393
4449
|
"documentation": {
|
|
4394
4450
|
"kind": "markdown",
|
|
4395
|
-
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
4451
|
+
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nZkontroluje, zda má vlastnost vnořená několik úrovní hluboko do slovníku hodnotu. To vám umožní proniknout do vnořené struktury najednou, místo abyste kontrolovali hodnoty na každé úrovni. Vrací hodnotu `true`, pokud klíče a indexy na každé úrovni struktury existují a obsahují nenulovou hodnotu.\n\n**Parametry**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - Slovník nebo příloha ke kontrole.\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)> - Pole klíčů nebo indexů, které se mají kontrolovat v každé úrovni struktury.\n\n**Vrácená hodnota**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4396
4452
|
}
|
|
4397
4453
|
},
|
|
4398
4454
|
"parametersInfo": {
|
|
@@ -4820,8 +4876,8 @@
|
|
|
4820
4876
|
"bundle": "core",
|
|
4821
4877
|
"sinceVersion": "1.26",
|
|
4822
4878
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
|
|
4823
|
-
"description": "
|
|
4824
|
-
"examples": "\n##### Příklady\n\
|
|
4879
|
+
"description": "Vrátí zadanou výchozí hodnotu, pokud klíč v geometrii neexistuje nebo je hodnota u zadaného klíče `null` nebo prázdná textová hodnota.",
|
|
4880
|
+
"examples": "\n##### Příklady\n\nBod s hodnotou z\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is true\n// returns the value of Geometry($feature).z\n```\n\nBod bez hodnoty z\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is false\n// returns 1000\n```\n\n",
|
|
4825
4881
|
"completion": {
|
|
4826
4882
|
"label": "DefaultValue",
|
|
4827
4883
|
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
@@ -4831,7 +4887,7 @@
|
|
|
4831
4887
|
"kind": 3,
|
|
4832
4888
|
"documentation": {
|
|
4833
4889
|
"kind": "markdown",
|
|
4834
|
-
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
4890
|
+
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrátí zadanou výchozí hodnotu, pokud klíč v geometrii neexistuje nebo je hodnota u zadaného klíče `null` nebo prázdná textová hodnota.\n\n**Parametry**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Vstupní geometrie, u které proběhne kontrola.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Klíč ke kontrole.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Tato hodnota je vrácena, pokud klíč neexistuje nebo je hodnota u zadaného klíče `null` nebo prázdná textová hodnota.\n\n**Vrácená hodnota**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nVrací hodnotu na zadaném klíči, pokud je definován. V opačném případě vrátí hodnotu zadanou v `defaultValue`."
|
|
4835
4891
|
}
|
|
4836
4892
|
},
|
|
4837
4893
|
"parametersInfo": {
|
|
@@ -4844,8 +4900,8 @@
|
|
|
4844
4900
|
"name": "defaultvalue",
|
|
4845
4901
|
"bundle": "core",
|
|
4846
4902
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
|
|
4847
|
-
"description": "
|
|
4848
|
-
"examples": "\n##### Příklady\n\
|
|
4903
|
+
"description": "Vrátí zadanou výchozí hodnotu, pokud alespoň jeden z klíčů ve vnořených vlastnostech geometrie neexistuje nebo je hodnota u zadaného klíče `null` nebo prázdná textová hodnota.",
|
|
4904
|
+
"examples": "\n##### Příklady\n\nKruh, souřadnice a hodnota X existují a mají hodnotu\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\nKruh neexistuje\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\nKruh a souřadnice existují, ale hodnota m neexistuje\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",
|
|
4849
4905
|
"completion": {
|
|
4850
4906
|
"label": "DefaultValue",
|
|
4851
4907
|
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
@@ -4855,7 +4911,7 @@
|
|
|
4855
4911
|
"kind": 3,
|
|
4856
4912
|
"documentation": {
|
|
4857
4913
|
"kind": "markdown",
|
|
4858
|
-
"value": "
|
|
4914
|
+
"value": "Vrátí zadanou výchozí hodnotu, pokud alespoň jeden z klíčů ve vnořených vlastnostech geometrie neexistuje nebo je hodnota u zadaného klíče `null` nebo prázdná textová hodnota.\n\n**Parametry**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Vstupní geometrie, u které proběhne kontrola.\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)> - Pole klíčů nebo indexů, které se mají kontrolovat v každé úrovni struktury kontejneru.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Tato hodnota je vrácena, pokud alespoň jeden z klíčů nebo indexů neexistuje nebo je hodnota u zadaného klíče `null` nebo prázdná textová hodnota.\n\n**Vrácená hodnota**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nVrátí hodnotu na zadaném klíči nebo indexu, je-li definován. V opačném případě vrátí hodnotu zadanou v `defaultValue`."
|
|
4859
4915
|
}
|
|
4860
4916
|
},
|
|
4861
4917
|
"parametersInfo": {
|
|
@@ -5020,8 +5076,8 @@
|
|
|
5020
5076
|
"bundle": "geometry",
|
|
5021
5077
|
"sinceVersion": "1.26",
|
|
5022
5078
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
|
|
5023
|
-
"description": "
|
|
5024
|
-
"examples": "\n##### Příklad\n\
|
|
5079
|
+
"description": "Vrátí souřadnici podél vstupní linie na základě zadané vzdálenosti. Při pokusu o nalezení souřadnice v dané vzdálenosti se berou v úvahu všechny části linie. Do vzdálenosti se nezapočítávají mezery mezi cestami (nebo jejich částmi). Pokud nebude vzdálenost na vstupní linii nalezena, bude výsledkem `null`.\n\n_Geometrie prvků v profilech vizualizace a vytváření popisků jsou generalizovány podle rozlišení měřítka zobrazení, za účelem lepšího výkonu vykreslování. Použití geometrie prvku (tj. `$feature`) jako vstupu pro jakoukoli funkci geometrie v těchto souvislostech vrátí různé výsledky na každé úrovni měřítka. Jiné profily, jako například vyskakovací okna, poskytují geometrii v plném rozlišení._",
|
|
5080
|
+
"examples": "\n##### Příklad\n\nVrátí souřadnici vstupní polylinie na základě zadané hodnoty vzdálenosti.\n\n```arcade\nvar result = DistanceToCoordinate($feature, 1038);\n\nreturn result.coordinate;\n```\n\n",
|
|
5025
5081
|
"completion": {
|
|
5026
5082
|
"label": "DistanceToCoordinate",
|
|
5027
5083
|
"detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
|
|
@@ -5031,7 +5087,7 @@
|
|
|
5031
5087
|
"kind": 3,
|
|
5032
5088
|
"documentation": {
|
|
5033
5089
|
"kind": "markdown",
|
|
5034
|
-
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5090
|
+
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrátí souřadnici podél vstupní linie na základě zadané vzdálenosti. Při pokusu o nalezení souřadnice v dané vzdálenosti se berou v úvahu všechny části linie. Do vzdálenosti se nezapočítávají mezery mezi cestami (nebo jejich částmi). Pokud nebude vzdálenost na vstupní linii nalezena, bude výsledkem `null`.\n\n_Geometrie prvků v profilech vizualizace a vytváření popisků jsou generalizovány podle rozlišení měřítka zobrazení, za účelem lepšího výkonu vykreslování. Použití geometrie prvku (tj. `$feature`) jako vstupu pro jakoukoli funkci geometrie v těchto souvislostech vrátí různé výsledky na každé úrovni měřítka. Jiné profily, jako například vyskakovací okna, poskytují geometrii v plném rozlišení._\n\n**Parametry**\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) - Linie nebo cesta, ze které se vyhledá souřadnice. Při použití prvku jako vstupu musí být geometrie prvku polylinie.\n- **inputDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Vzdálenost použitá k nalezení souřadnice podél `inputLine` od začátku linie. Při pokusu o nalezení souřadnice v dané vzdálenosti se berou v úvahu všechny části linie. Do vzdálenosti se nezapočítávají mezery mezi cestami (nebo jejich částmi). \n\n**Vrácená hodnota**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nVrátí slovník s následujícími vlastnostmi. Pokud nebude vzdálenost na vstupní linii nalezena, bude výsledkem `null`.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Souřadnice bodu podél `inputLine` na základě zadané hodnoty vzdálenosti.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Rovinná vzdálenost od začátku `inputLine` měřená podél linie k `coordinate`. U polylinií, kde se cesty nespojují, nezahrnuje hodnota `distanceAlong` vzdálenost mezer mezi počátečními a koncovými lomovými body cest.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - V případě, že je vstupem polylinie, index cesty, ke které patří `coordinate`.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Index (relativní vůči cestě) segmentu linie, ke které patří `coordinate`. Pokud `coordinate` představuje lomový bod vstupní linie, pak `segmentId` vrátí index předchozího lomového bodu. Pokud je `coordinate` prvním lomovým bodem `inputLine`, pak hodnota `segmentId` bude `0`."
|
|
5035
5091
|
}
|
|
5036
5092
|
},
|
|
5037
5093
|
"parametersInfo": {
|
|
@@ -5219,8 +5275,8 @@
|
|
|
5219
5275
|
"bundle": "core",
|
|
5220
5276
|
"sinceVersion": "1.26",
|
|
5221
5277
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
|
|
5222
|
-
"description": "
|
|
5223
|
-
"examples": "\n##### Příklady\n\
|
|
5278
|
+
"description": "Označuje, zda má geometrie hodnotu v daném klíči nebo indexu.",
|
|
5279
|
+
"examples": "\n##### Příklady\n\nBod s hodnotou z\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Point\"){\n return HasValue(Geometry($feature), \"z\")\n // returns true\n}\n```\n\nPolygon s neexistujícím klíčem\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Polygon\"){\n return HasValue(Geometry($feature), \"verticalCoordinateSystem\")\n // returns false\n}\n```\n\n",
|
|
5224
5280
|
"completion": {
|
|
5225
5281
|
"label": "HasValue",
|
|
5226
5282
|
"detail": "HasValue(inputGeometry, key) -> Boolean",
|
|
@@ -5230,7 +5286,7 @@
|
|
|
5230
5286
|
"kind": 3,
|
|
5231
5287
|
"documentation": {
|
|
5232
5288
|
"kind": "markdown",
|
|
5233
|
-
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5289
|
+
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nOznačuje, zda má geometrie hodnotu v daném klíči nebo indexu.\n\n**Parametry**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Geometrie, u které bude provedena kontrola.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Název klíče nebo vlastnosti, u kterého bude provedena kontrola\n\n**Vrácená hodnota**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
5234
5290
|
}
|
|
5235
5291
|
},
|
|
5236
5292
|
"parametersInfo": {
|
|
@@ -5244,8 +5300,8 @@
|
|
|
5244
5300
|
"bundle": "core",
|
|
5245
5301
|
"sinceVersion": "1.26",
|
|
5246
5302
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
|
|
5247
|
-
"description": "
|
|
5248
|
-
"examples": "\n##### Příklady\n\
|
|
5303
|
+
"description": "Zkontroluje, zda má vlastnost nebo index vnořený do geometrie v několika úrovních hodnotu. To vám umožní proniknout do vnořené struktury najednou, místo abyste kontrolovali hodnoty na každé úrovni. Vrací hodnotu `true`, pokud klíče a indexy na každé úrovni struktury existují a obsahují nenulovou hodnotu.",
|
|
5304
|
+
"examples": "\n##### Příklady\n\nKruh, souřadnice a hodnota X existují a mají hodnotu\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\nKruh neexistuje\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\nKruh a souřadnice existují, ale hodnota m neexistuje\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",
|
|
5249
5305
|
"completion": {
|
|
5250
5306
|
"label": "HasValue",
|
|
5251
5307
|
"detail": "HasValue(inputGeometry, keys) -> Boolean",
|
|
@@ -5255,7 +5311,7 @@
|
|
|
5255
5311
|
"kind": 3,
|
|
5256
5312
|
"documentation": {
|
|
5257
5313
|
"kind": "markdown",
|
|
5258
|
-
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5314
|
+
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nZkontroluje, zda má vlastnost nebo index vnořený do geometrie v několika úrovních hodnotu. To vám umožní proniknout do vnořené struktury najednou, místo abyste kontrolovali hodnoty na každé úrovni. Vrací hodnotu `true`, pokud klíče a indexy na každé úrovni struktury existují a obsahují nenulovou hodnotu.\n\n**Parametry**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Slovník nebo prvek, u kterého proběhne kontrola\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)> - Pole klíčů nebo indexů, které se mají kontrolovat v každé úrovni struktury.\n\n**Vrácená hodnota**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
5259
5315
|
}
|
|
5260
5316
|
},
|
|
5261
5317
|
"parametersInfo": {
|
|
@@ -5445,8 +5501,8 @@
|
|
|
5445
5501
|
"bundle": "geometry",
|
|
5446
5502
|
"sinceVersion": "1.26",
|
|
5447
5503
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
|
|
5448
|
-
"description": "
|
|
5449
|
-
"examples": "\n##### Příklad\n\
|
|
5504
|
+
"description": "Vrátí první souřadnici podél vstupní linie na základě zadané míry nebo hodnoty m. Pokud není měření na vstupní linii k nalezení, bude výsledkem `null`. Při pokusu o nalezení souřadnice v daném měření se berou v úvahu všechny části linie. Do měření se nezapočítávají mezery mezi cestami (nebo jejich částmi).\n\n_Geometrie prvků v profilech vizualizace a vytváření popisků jsou generalizovány podle rozlišení měřítka zobrazení, za účelem lepšího výkonu vykreslování. Použití geometrie prvku (tj. `$feature`) jako vstupu pro jakoukoli funkci geometrie v těchto souvislostech vrátí různé výsledky na každé úrovni měřítka. Jiné profily, jako například vyskakovací okna, poskytují geometrii v plném rozlišení._",
|
|
5505
|
+
"examples": "\n##### Příklad\n\nVrátí souřadnici vstupní polylinie na základě zadané hodnoty měření.\n\n```arcade\nvar result = MeasureToCoordinate(Geometry($feature), 110);\n\nreturn result.coordinate;\n```\n\n",
|
|
5450
5506
|
"completion": {
|
|
5451
5507
|
"label": "MeasureToCoordinate",
|
|
5452
5508
|
"detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
|
|
@@ -5456,7 +5512,7 @@
|
|
|
5456
5512
|
"kind": 3,
|
|
5457
5513
|
"documentation": {
|
|
5458
5514
|
"kind": "markdown",
|
|
5459
|
-
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5515
|
+
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrátí první souřadnici podél vstupní linie na základě zadané míry nebo hodnoty m. Pokud není měření na vstupní linii k nalezení, bude výsledkem `null`. Při pokusu o nalezení souřadnice v daném měření se berou v úvahu všechny části linie. Do měření se nezapočítávají mezery mezi cestami (nebo jejich částmi).\n\n_Geometrie prvků v profilech vizualizace a vytváření popisků jsou generalizovány podle rozlišení měřítka zobrazení, za účelem lepšího výkonu vykreslování. Použití geometrie prvku (tj. `$feature`) jako vstupu pro jakoukoli funkci geometrie v těchto souvislostech vrátí různé výsledky na každé úrovni měřítka. Jiné profily, jako například vyskakovací okna, poskytují geometrii v plném rozlišení._\n\n**Parametry**\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) - Linie nebo cesta, ze které se vyhledá souřadnice. Vstupní linie musí mít `hasM` odpovídající hodnotě `true`. Pokud je `hasM` `false`, bude vráceno `null`. Při použití prvku jako vstupu musí být geometrie prvku polylinie.\n- **inputMeasure**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Měření nebo hodnota m, ze které se zjistí souřadnice podél `inputLine` od začátku linie. Při pokusu o nalezení souřadnice v daném měření se berou v úvahu všechny části linie. Do měření se nezapočítávají mezery mezi cestami (nebo jejich částmi).\n\n**Vrácená hodnota**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nVrátí slovník s následujícími vlastnostmi. Pokud není měření na vstupní linii k nalezení, bude výsledkem `null`.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - První souřadnice bodu podél `inputLine` na základě zadané hodnoty měření.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Rovinná vzdálenost od začátku `inputLine` měřená podél linie k `coordinate`. U polylinií, kde se cesty nespojují, nezahrnuje hodnota `distanceAlong` vzdálenost mezer mezi počátečními a koncovými lomovými body cest.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - V případě, že je vstupem polylinie, index cesty, ke které patří `coordinate`.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Index (relativní vůči cestě) segmentu linie, ke které patří `coordinate`. Pokud `coordinate` představuje lomový bod vstupní linie, pak `segmentId` vrátí index předchozího lomového bodu. Pokud je `coordinate` prvním lomovým bodem `inputLine`, pak hodnota `segmentId` bude `0`."
|
|
5460
5516
|
}
|
|
5461
5517
|
},
|
|
5462
5518
|
"parametersInfo": {
|
|
@@ -5580,7 +5636,7 @@
|
|
|
5580
5636
|
"kind": 3,
|
|
5581
5637
|
"documentation": {
|
|
5582
5638
|
"kind": "markdown",
|
|
5583
|
-
"value": "**[Od verze 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrátí nejbližší souřadnici (nikoli lomový bod) vstupní geometrie k hledanému bodu. Vrácený slovník obsahuje také nejkratší rovinnou vzdálenost od hledaného bodu k nejbližší souřadnici. Pokud hledaný bod protíná vstupní geometrii, bude jako výsledek vrácen hledaný bod s nulovou vzdáleností.\n\n_Geometrie prvků v profilech vizualizace a vytváření popisků jsou generalizovány podle rozlišení měřítka zobrazení, za účelem lepšího výkonu vykreslování. Použití geometrie prvku (tj. `$feature`) jako vstupu pro jakoukoli funkci geometrie v těchto souvislostech vrátí různé výsledky na každé úrovni měřítka. Jiné profily, jako například vyskakovací okna, poskytují geometrii v plném rozlišení._\n\n**Parametry**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometrie, ze které se získá nejbližší souřadnice.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Bod, od něhož se bude hledat nejbližší souřadnice `inputGeometry`.\n\n**Vrácená hodnota**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nVrátí slovník s následujícími vlastnostmi.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Nejbližší souřadnice od `inputGeometry` k `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Rovinná vzdálenost od nejbližší souřadnice k `searchPoint`. Představuje nejkratší vzdálenost mezi `inputGeometry` a `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
5639
|
+
"value": "**[Od verze 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrátí nejbližší souřadnici (nikoli lomový bod) vstupní geometrie k hledanému bodu. Vrácený slovník obsahuje také nejkratší rovinnou vzdálenost od hledaného bodu k nejbližší souřadnici. Pokud hledaný bod protíná vstupní geometrii, bude jako výsledek vrácen hledaný bod s nulovou vzdáleností.\n\n_Geometrie prvků v profilech vizualizace a vytváření popisků jsou generalizovány podle rozlišení měřítka zobrazení, za účelem lepšího výkonu vykreslování. Použití geometrie prvku (tj. `$feature`) jako vstupu pro jakoukoli funkci geometrie v těchto souvislostech vrátí různé výsledky na každé úrovni měřítka. Jiné profily, jako například vyskakovací okna, poskytují geometrii v plném rozlišení._\n\n**Parametry**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometrie, ze které se získá nejbližší souřadnice.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Bod, od něhož se bude hledat nejbližší souřadnice `inputGeometry`.\n\n**Vrácená hodnota**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nVrátí slovník s následujícími vlastnostmi.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Nejbližší souřadnice od `inputGeometry` k `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Rovinná vzdálenost od nejbližší souřadnice k `searchPoint`. Představuje nejkratší vzdálenost mezi `inputGeometry` a `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Prostorový vztah mezi segmentem `searchPoint` a `inputGeometry` vedoucí k nejbližší souřadnici. Možné hodnoty: \n\n`left` - `searchPoint` se nachází na levé straně `inputGeometry`.\n\n`right` - `searchPoint` se nachází na pravé straně `inputGeometry`.\n\n`straddle` - `searchPoint` se nachází na vrcholu `inputGeometry`."
|
|
5584
5640
|
}
|
|
5585
5641
|
},
|
|
5586
5642
|
"parametersInfo": {
|
|
@@ -5605,7 +5661,7 @@
|
|
|
5605
5661
|
"kind": 3,
|
|
5606
5662
|
"documentation": {
|
|
5607
5663
|
"kind": "markdown",
|
|
5608
|
-
"value": "**[Od verze 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrátí nejbližší lomový bod vstupní geometrie k hledanému bodu. Vrácený slovník obsahuje rovinnou vzdálenost od hledaného bodu k nejbližšímu lomovému bodu.\n\n_Geometrie prvků v profilech vizualizace a vytváření popisků jsou generalizovány podle rozlišení měřítka zobrazení, za účelem lepšího výkonu vykreslování. Použití geometrie prvku (tj. `$feature`) jako vstupu pro jakoukoli funkci geometrie v těchto souvislostech vrátí různé výsledky na každé úrovni měřítka. Jiné profily, jako například vyskakovací okna, poskytují geometrii v plném rozlišení._\n\n**Parametry**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometrie, ze které se získá nejbližší lomový bod.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Bod, od něhož se bude hledat nejbližší lomový bod `inputGeometry`.\n\n**Vrácená hodnota**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nVrátí slovník s následujícími vlastnostmi.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Umístění bodu představující nejbližší lomový bod `inputGeometry` k `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Rovinná vzdálenost od nejbližšího lomového bodu vstupní geometrie k `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
5664
|
+
"value": "**[Od verze 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrátí nejbližší lomový bod vstupní geometrie k hledanému bodu. Vrácený slovník obsahuje rovinnou vzdálenost od hledaného bodu k nejbližšímu lomovému bodu.\n\n_Geometrie prvků v profilech vizualizace a vytváření popisků jsou generalizovány podle rozlišení měřítka zobrazení, za účelem lepšího výkonu vykreslování. Použití geometrie prvku (tj. `$feature`) jako vstupu pro jakoukoli funkci geometrie v těchto souvislostech vrátí různé výsledky na každé úrovni měřítka. Jiné profily, jako například vyskakovací okna, poskytují geometrii v plném rozlišení._\n\n**Parametry**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometrie, ze které se získá nejbližší lomový bod.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Bod, od něhož se bude hledat nejbližší lomový bod `inputGeometry`.\n\n**Vrácená hodnota**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nVrátí slovník s následujícími vlastnostmi.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Umístění bodu představující nejbližší lomový bod `inputGeometry` k `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Rovinná vzdálenost od nejbližšího lomového bodu vstupní geometrie k `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Prostorový vztah mezi segmentem `searchPoint` a `inputGeometry` vedoucí k nejbližšímu lomovému bodu. Možné hodnoty: \n\n`left` - `searchPoint` se nachází na levé straně `inputGeometry`.\n\n`right` - `searchPoint` se nachází na pravé straně `inputGeometry`.\n\n`straddle` - `searchPoint` se nachází na vrcholu `inputGeometry`."
|
|
5609
5665
|
}
|
|
5610
5666
|
},
|
|
5611
5667
|
"parametersInfo": {
|
|
@@ -5719,8 +5775,8 @@
|
|
|
5719
5775
|
"bundle": "geometry",
|
|
5720
5776
|
"sinceVersion": "1.26",
|
|
5721
5777
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
|
|
5722
|
-
"description": "
|
|
5723
|
-
"examples": "\n##### Příklad\n\
|
|
5778
|
+
"description": "Vrátí nejbližší souřadnici a vzdálenost hledaného bodu od vstupní linie.\n\n_Geometrie prvků v profilech vizualizace a vytváření popisků jsou generalizovány podle rozlišení měřítka zobrazení, za účelem lepšího výkonu vykreslování. Použití geometrie prvku (tj. `$feature`) jako vstupu pro jakoukoli funkci geometrie v těchto souvislostech vrátí různé výsledky na každé úrovni měřítka. Jiné profily, jako například vyskakovací okna, poskytují geometrii v plném rozlišení._",
|
|
5779
|
+
"examples": "\n##### Příklad\n\nVrátí vzdálenost k nejbližší souřadnici podél vstupní polylinie, na základě umístění, na které bylo kliknuto, aby se otevřelo vyskakovací okno\n\n```arcade\nvar result;\n\nif (TypeOf($userInput) == \"Point\"){\n result = PointToCoordinate(Geometry($feature), $userInput);\n}\n\nreturn result.distanceAlong;\n```\n\n",
|
|
5724
5780
|
"completion": {
|
|
5725
5781
|
"label": "PointToCoordinate",
|
|
5726
5782
|
"detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
|
|
@@ -5730,7 +5786,7 @@
|
|
|
5730
5786
|
"kind": 3,
|
|
5731
5787
|
"documentation": {
|
|
5732
5788
|
"kind": "markdown",
|
|
5733
|
-
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5789
|
+
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrátí nejbližší souřadnici a vzdálenost hledaného bodu od vstupní linie.\n\n_Geometrie prvků v profilech vizualizace a vytváření popisků jsou generalizovány podle rozlišení měřítka zobrazení, za účelem lepšího výkonu vykreslování. Použití geometrie prvku (tj. `$feature`) jako vstupu pro jakoukoli funkci geometrie v těchto souvislostech vrátí různé výsledky na každé úrovni měřítka. Jiné profily, jako například vyskakovací okna, poskytují geometrii v plném rozlišení._\n\n**Parametry**\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) - Linie nebo cesta, ze které se získá nejbližší souřadnice. Při použití prvku jako vstupu musí být geometrie prvku polylinie.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Bod, od něhož se bude hledat nejbližší souřadnice `inputLine`.\n\n**Vrácená hodnota**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nVrátí slovník s následujícími vlastnostmi.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Bod souřadnice představující nejbližší souřadnici podél `inputLine` k `searchPoint`. Pokud je `hasZ` v `searchPoint` rovno `false`, hledání bude provedeno v souřadnicích x/y a hodnota z se interpoluje.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Rovinná vzdálenost od `searchPoint` k `coordinate`.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Rovinná vzdálenost od začátku `inputLine` měřená podél linie k `coordinate`. U polylinií, kde se cesty nespojují, nezahrnuje hodnota `distanceAlong` vzdálenost mezer mezi počátečními a koncovými lomovými body cest.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - V případě, že je vstupem polylinie, index cesty, ke které patří `coordinate`.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Index (relativní vůči cestě) segmentu linie, ke které patří `coordinate`. Pokud `coordinate` představuje lomový bod vstupní linie, pak `segmentId` vrátí index předchozího lomového bodu. Pokud je `coordinate` prvním lomovým bodem `inputLine`, pak hodnota `segmentId` bude `0`."
|
|
5734
5790
|
}
|
|
5735
5791
|
},
|
|
5736
5792
|
"parametersInfo": {
|
|
@@ -7180,62 +7236,6 @@
|
|
|
7180
7236
|
]
|
|
7181
7237
|
]
|
|
7182
7238
|
},
|
|
7183
|
-
{
|
|
7184
|
-
"id": "knowledgegraph_functions",
|
|
7185
|
-
"title": "Ř_Knowledge graph functions__________________________ů",
|
|
7186
|
-
"items": [
|
|
7187
|
-
{
|
|
7188
|
-
"type": "function",
|
|
7189
|
-
"name": "knowledgegraphbyportalitem",
|
|
7190
|
-
"bundle": "knowledge-graph",
|
|
7191
|
-
"sinceVersion": "1.26",
|
|
7192
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#knowledgegraphbyportalitem",
|
|
7193
|
-
"description": "Ř_Returns a knowledge graph from a portal item________________________ů.",
|
|
7194
|
-
"examples": "\n##### Příklad\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",
|
|
7195
|
-
"completion": {
|
|
7196
|
-
"label": "KnowledgeGraphByPortalItem",
|
|
7197
|
-
"detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
|
|
7198
|
-
"insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
|
|
7199
|
-
"insertTextMode": 2,
|
|
7200
|
-
"insertTextFormat": 2,
|
|
7201
|
-
"kind": 3,
|
|
7202
|
-
"documentation": {
|
|
7203
|
-
"kind": "markdown",
|
|
7204
|
-
"value": "**[Od verze 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nŘ_Returns a knowledge graph from a portal item________________________ů.\n\n**Parametry**\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**Vrácená hodnota**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
|
|
7205
|
-
}
|
|
7206
|
-
},
|
|
7207
|
-
"parametersInfo": {
|
|
7208
|
-
"min": 2,
|
|
7209
|
-
"max": 2
|
|
7210
|
-
}
|
|
7211
|
-
},
|
|
7212
|
-
{
|
|
7213
|
-
"type": "function",
|
|
7214
|
-
"name": "querygraph",
|
|
7215
|
-
"bundle": "knowledge-graph",
|
|
7216
|
-
"sinceVersion": "1.26",
|
|
7217
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#querygraph",
|
|
7218
|
-
"description": "Ř_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________ů.",
|
|
7219
|
-
"examples": "\n##### Příklad\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",
|
|
7220
|
-
"completion": {
|
|
7221
|
-
"label": "QueryGraph",
|
|
7222
|
-
"detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Dictionary",
|
|
7223
|
-
"insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
|
|
7224
|
-
"insertTextMode": 2,
|
|
7225
|
-
"insertTextFormat": 2,
|
|
7226
|
-
"kind": 3,
|
|
7227
|
-
"documentation": {
|
|
7228
|
-
"kind": "markdown",
|
|
7229
|
-
"value": "**[Od verze 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**Parametry**\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**Vrácená hodnota**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"
|
|
7230
|
-
}
|
|
7231
|
-
},
|
|
7232
|
-
"parametersInfo": {
|
|
7233
|
-
"min": 2,
|
|
7234
|
-
"max": 3
|
|
7235
|
-
}
|
|
7236
|
-
}
|
|
7237
|
-
]
|
|
7238
|
-
},
|
|
7239
7239
|
{
|
|
7240
7240
|
"id": "text_functions",
|
|
7241
7241
|
"title": "Textové funkce",
|