|
POST
|
You can use escape characters. This is documented on this page: Arcade | ArcGIS API for JavaScript 4.16 beginning with the line: "You can use template literals (ES6 or later) to write multi-line Arcade expressions." For example: layer.popupTemplate = {
content: "{expression/percent-unemployed}",
expressionInfos: [
{
name: "top-crimes",
title: "Top crimes",
expression: `
var unemploymentRate = ( $feature.UNEMP_CY / $feature.LABOR_FORCE ) * 100;
var population = $feature.POP_16UP;
var populationNotWorking = ( ( $feature.UNEMP_CY + $feature.NOT_LABORFORCE_16 ) / $feature.POP_16UP ) * 100;
// returns a string built using an Arcade template literal
return \`\${$feature.COUNTY} County
- Unemployment rate: \${Text(unemploymentRate, "##.#")}%
- % population not working: \${Text(populationNotWorking, "##.#")}%
- Population: \${Text(population, "#,###")}\`
`
}
]
}
... View more
09-18-2020
02:38 PM
|
0
|
2
|
4487
|
|
POST
|
Hi Ken, This app stores most of the Arcade scripts in a different location: GitHub - ekenes/covid19viz: Visualization of COVID-19 cases over time. More specifically here: covid19viz/expressionUtils.ts at master · ekenes/covid19viz · GitHub And it's written in TypeScript. Hopefully that helps. Kristian
... View more
09-18-2020
11:32 AM
|
1
|
7
|
4487
|
|
POST
|
Hi Anand, Can you provide some more information about the expected workflow for your end users? What is the primary purpose of clustering in the apps you're writing? Are users going to be toggling clustering on and off? Something to give me a better idea of the context of the above requirements. Regarding the different cluster renderer, is there another renderer type you have in mind beyond just showing everything with the same color? We likely wouldn't use that as a case for exposing a separate cluster renderer since there is already a development workflow for that scenario. Thanks for the feedback! It's very helpful. Kristian
... View more
08-11-2020
09:33 AM
|
0
|
1
|
3377
|
|
POST
|
Hi Anand, To change the color of the cluster point, you will need to switch the layer's renderer to a simple renderer with a single color at the time of cluster. Here's an example - https://codepen.io/kekenes/pen/GRZJLGM?editable=true&editors=100 I configure the behavior so that when clustering is enabled, all clusters have the same symbol. When you disable clustering, the type renderer is returned to the layer. Regarding getChildGraphics, we don't support querying features by cluster at the moment. It's something we're still in design discussions about. Hopefully that helps!
... View more
08-10-2020
09:42 AM
|
0
|
9
|
3377
|
|
POST
|
ok. So we have it fixed, but it won't make it into our 4.16 July release. It will be available in September/4.17. We're doing some major rendering refactoring that was too risky to install in 4.16. That work fixed this issue.
... View more
07-07-2020
04:53 PM
|
2
|
2
|
3969
|
|
POST
|
We're still looking at it. We also noticed other odd popup behavior. I thought a previous install would fix this particular case along with the other issues, but this one still appears to be broken.
... View more
07-07-2020
11:28 AM
|
0
|
0
|
3969
|
|
POST
|
Hi Christian, There currently isn't a way to do this other than creating separate layers with filters based on the status field and clustering each of those. I'll take this back to the team and we'll discuss it. Kristian
... View more
06-09-2020
03:57 PM
|
2
|
0
|
1759
|
|
POST
|
Hey George, I agree with John's suggestion. It might be better to try FeatureEffect in this case. That way you can set a renderer that's less complicated, and have a cleaner way of de-emphasizing non-selected values. If you're still going down the renderer route...the Arcade expression is referring to DOM elements which technically isn't allowed in arcade. You're already half way there using a template literal, but you need to wrap the JS parts in ${} to make this valid arcade: `When($feature.PRODUCT = "OIL" && $feature.ROUTE_NAME != '${routeName}', 'OIL', $feature.PRODUCT = "GAS" && $feature.ROUTE_NAME != '${routeName}', 'GAS', 'OTHERS')`, Kristian
... View more
06-03-2020
11:42 AM
|
1
|
1
|
2679
|
|
POST
|
Thanks. I can reproduce now. Going to look into it.
... View more
05-29-2020
11:56 AM
|
0
|
5
|
3969
|
|
POST
|
Hi John, I'm not able to reproduce this issue with your code. Can you provide a reproducible workflow, like where to pan to a particular cluster, perhaps using a video or some other way? I know you said you can't find a pattern, but I'm not able to see this behavior at all. Also, which browser are you using?
... View more
05-28-2020
08:50 AM
|
0
|
7
|
3969
|
|
POST
|
Clustering has been available in 4.x for about 6 months now - Point clustering | ArcGIS API for JavaScript 4.15 . You can use our next API to test labeling cluster counts on clusters - feedback-js-api-next/CHANGELOG.md at master · Esri/feedback-js-api-next · GitHub
... View more
05-15-2020
10:46 AM
|
0
|
0
|
1136
|
|
POST
|
You can try this out now using the next JS API - feedback-js-api-next/CHANGELOG.md at master · Esri/feedback-js-api-next · GitHub
... View more
05-15-2020
10:42 AM
|
0
|
0
|
969
|
|
POST
|
When I say "full support", I mean full within the context of what makes sense for enterprise. CDN caching wouldn't apply there for example.
... View more
04-24-2020
03:07 PM
|
2
|
1
|
3303
|
|
POST
|
Not fully. Full support will eventually be rolled out in Enterprise. I'm not sure on those timelines.
... View more
04-24-2020
03:07 PM
|
0
|
2
|
3303
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-06-2025 03:09 PM | |
| 1 | 04-29-2025 08:36 AM | |
| 1 | 08-20-2024 08:06 AM | |
| 1 | 08-13-2024 11:53 AM | |
| 1 | 07-22-2024 11:04 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-06-2025
03:01 PM
|