|
POST
|
Ok. I see the issue, you'll need to reference the expression in an expressionInfos object, which will assign it a name. Then you need to refer to that name within the popup content in the following format: {expression/expression-name}. It's the same syntax as referring to field names except you need to prefix the expression name with "expression/". This is the live sample: https://developers.arcgis.com/javascript/latest/sample-code/popuptemplate-arcade/ Hopefully that helps.
... View more
02-17-2022
02:57 PM
|
3
|
0
|
1972
|
|
POST
|
Can you describe which issues you're seeing with the UTC calculation in Arcade? Was this the expression you used? ToUTC($feature.data_project_create)
... View more
02-17-2022
01:39 PM
|
2
|
0
|
1996
|
|
POST
|
Can you share a code pen with just the geometries involved in this image? That way I can take a closer look at what might be going on.
... View more
02-14-2022
10:23 AM
|
0
|
1
|
1546
|
|
POST
|
Yep. +1 to John's suggestion. I wrote about this in some detail here: https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/how-and-why-to-adjust-size-by-scale-in-web-maps/
... View more
02-08-2022
03:58 PM
|
2
|
0
|
1537
|
|
POST
|
Ah. Sorry about that. Yes, opening the panel on load is supported in 4.22. That example is showing the legend for each sublayer in a MapImageLayer. That was not fixed until 4.23, which technically isn't supported yet. You can still display legend for layers at 4.22, but not for sublayers. Here's how it would work at 4.22: https://codepen.io/kekenes/pen/ExbyPBb?editors=1000
... View more
02-02-2022
12:06 PM
|
1
|
2
|
5614
|
|
POST
|
Also, how often are you making updates to the layer? Is it on every scale change, view pan, or using some other method?
... View more
02-02-2022
12:02 PM
|
0
|
0
|
648
|
|
POST
|
Yes. There is a way to have panel content initialize in an open state. You need to set the open property on the ListItemPanel to true. See this example here: https://codepen.io/kekenes/pen/VwMPaLL?editors=1000 Specifically on lines 104-107...
... View more
02-01-2022
04:27 PM
|
1
|
5
|
5641
|
|
POST
|
There's a couple of things you can do. First, I would try what has already been suggested...to paginate the queries. To do this, check for the exceededTransferLimit property of the result. If the value is true, then you make another query offsetting by the objectIds or extent or some other method. The start and num params in the query object are designed to help with pagination like this. You can also set the maxRecordCountFactor to a value between 1 and 5. This will request the number of features in the maxRecordCount by the value set here. So in your case you can request up to 10,000 features in a single request. That may be OK, but paginating the queries is likely the better option for performance. We document this param in the 4x doc, but I imagine it should work in 3x query as well... Here's the doc: https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#maxRecordCountFactor And a 4.x example: https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query-pagination/ Again, the same pattern applies to 3.39, you would just be using a slightly different syntax.
... View more
01-31-2022
09:34 AM
|
2
|
0
|
4827
|
|
POST
|
For 3D webstyles like the tree, we provide some utility functions for changing color and size. I highly recommend reading this guide: https://developers.arcgis.com/javascript/latest/visualization/3d-visualization/visualizing-points-3d/. The code you're looking for is specifically at this location: https://developers.arcgis.com/javascript/latest/visualization/3d-visualization/visualizing-points-3d/#changing-webstylesymbol-size-and-color Here's the full chapter on 3D visualization: https://developers.arcgis.com/javascript/latest/visualization/3d-visualization/ And if you want to read about all data viz capabilities in the JS API, here's the overall chapter: https://developers.arcgis.com/javascript/latest/visualization/
... View more
01-21-2022
09:04 AM
|
0
|
1
|
2402
|
|
POST
|
You can't pass a symbol to the smart mapping creator functions. These functions rely on schemes (symbol properties) instead of symbol objects. You just need to swap out the symbol in the resulting renderer with the try symbol. See this for example: https://codepen.io/kekenes/pen/PoJrmyN Note that you also need to set the symbolType to "3d-volumetric-uniform" in the method params. This will generate the proper size variables so the rendering is correct and the slider will work well alongside it.
... View more
01-20-2022
05:23 PM
|
1
|
3
|
2417
|
|
POST
|
Hey Andy, I recommend you check out the Query Clusters sample - https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster-query/. It demonstrates how you can query all features within a cluster. Basically you will do something like this when the action executes: const query = layerView.createQuery();
query.aggregateIds = [graphic.getObjectId()];
const { features } = await layerView.queryFeatures(query);
// features are the features included in a cluster
// they contain the attributes
... View more
01-19-2022
09:29 AM
|
1
|
1
|
855
|
|
POST
|
Ah yes. That is a known issue. Some of the clusters are broken apart on tile boundaries. We have an open ticket for fixing this, but no timeline has been set for it. I'll link this thread to the issue. Thanks for bringing it up again.
... View more
01-14-2022
09:44 AM
|
1
|
0
|
1835
|
|
IDEA
|
See also this idea post: https://community.esri.com/t5/arcgis-api-for-javascript-ideas/arcgis-javascript-4-cluster-renderer/idi-p/937654/jump-to/first-unread-message
... View more
01-13-2022
04:33 PM
|
0
|
0
|
1556
|
|
IDEA
|
Hey. Thanks for the idea. We actually have an undocumented "symbol" property on FeatureReductionCluster today. I want to emphasize that it is not supported, so I don't advise using it in production code. We are actively working on a solution that will allow you to change the rendering of clusters. No set timeframe yet, but coming soon. Before releasing a symbol property, we want to look at other rendering solutions to see the best way we can expose this information while minimizing potential breaking changes in the future.
... View more
01-13-2022
04:30 PM
|
0
|
0
|
1558
|
|
IDEA
|
Yes. This is already offered in the LayerList widget panels. // displays the legend for each layer list item
const layerList = new LayerList({
view: view,
listItemCreatedFunction: function(event){
const item = event.item;
item.panel = {
content: "legend"
};
}
});
... View more
01-13-2022
04:25 PM
|
0
|
0
|
2012
|
| 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
|