|
POST
|
In a future release we'll add support for calculating area for a feature set of features. In the meantime you can do the following: var allVegetation = FeatureSetByName( ... );
var vegInBoundary = Intersects( allVegetation, $feature);
var totalArea = 0;
for (var veg in vegInBoundary){
totalArea += AreaGeodetic(veg, "square-meters");
}
return totalArea; This workflow is basically covered in this blog post - ArcGIS blog - Create powerful popups in web apps with Arcade feature sets in web apps
... View more
02-12-2019
09:00 AM
|
2
|
2
|
1721
|
|
POST
|
Ok. This looks like a bug. Have you logged a bug report with support so you can track the progress of it? I think we already have an issue internally for handling this, but we can link it to a bug report so you can track our progress.
... View more
01-08-2019
08:22 AM
|
1
|
3
|
5276
|
|
POST
|
What is the size of your symbols? We're enforcing a max size of 120 px, apparently not documented. We can discuss changing that based on use cases. If the icons are larger than 120px, then please reply with reasons for using sizes larger than that.
... View more
01-07-2019
04:00 PM
|
0
|
7
|
5276
|
|
IDEA
|
Thanks for the suggestions. We're actually in the process of redesigning the Arcade editor and have already made plans for most of these points. Something we don't yet have is the line number in error messages and the autocomplete capability. We'll evaluate these to see how feasible they are for the new editor.
... View more
01-02-2019
10:29 AM
|
1
|
0
|
1788
|
|
POST
|
Yes. Be sure you are using a Polyline and a Polygon geometry for your inputs instead of graphics. The geometryEngine only works with geometries.
... View more
10-22-2018
09:44 AM
|
1
|
4
|
4051
|
|
POST
|
In versions 4.5 and later of the API, highlight is enabled by default on features clicked by the user. You can alter the color of the highlight using MapView.highlightOptions - MapView | API Reference | ArcGIS API for JavaScript 4.9 Also not the highlightEnabled property on the popup - Popup | API Reference | ArcGIS API for JavaScript 4.9 This sample demonstrates the default popup highlight - Reference Arcade expressions in PopupTemplate | ArcGIS API for JavaScript 4.9 If you search "highlight" in the JavaScript samples, you'll also find several others that show how you can directly call the highlightFeatures() method on the layerview to implement your own highlight behavior outside the popup - Reference Arcade expressions in PopupTemplate | ArcGIS API for JavaScript 4.9
... View more
10-22-2018
09:41 AM
|
2
|
1
|
1174
|
|
POST
|
Here are the samples in the documentation for 3.x that show clustering. Samples | ArcGIS API for JavaScript 3.26 Take particular not of the setFeatureReduction() method on the FeatureLayer.
... View more
10-22-2018
09:37 AM
|
0
|
0
|
1341
|
|
POST
|
I personally find When() and Decode() easier to read in these cases. So this: IIF($feature.field == 'apple','fruit',
IIF($feature.field == 'carrot','ewwwwww',
IIF($feature.field == 'candy','yummy',''))) becomes... Decode( $feature.field,
'apple','fruit',
'carrot','ewwwwww',
'candy','yummy',
'none') and this: iif($feature.Class_2012 <=9 , 1,
iif($feature.Class_2012 <=19, 2,
iif($feature.Class_2012 <=29, 3,
iif($feature.Class_2012 == 30, 4,
iif($feature.Class_2012 == 33, 5,
iif($feature.Class_2012 <=41, 6,
iif($feature.Class_2012 <=44, 7,
iif($feature.Class_2012 <=46, 8,
iif($feature.Class_2012 == 47, 9,
iif($feature.Class_2012 <=59, 10,
iif($feature.Class_2012 >= 60, 11,0))))))))))) becomes: When( $feature.Class_2012 <=9, 1,
$feature.Class_2012 <=19, 2,
$feature.Class_2012 <=29, 3,
$feature.Class_2012 == 30, 4,
$feature.Class_2012 == 33, 5,
$feature.Class_2012 <=41, 6,
$feature.Class_2012 <=44, 7,
$feature.Class_2012 <=46, 8,
$feature.Class_2012 == 47, 9,
$feature.Class_2012 <=59, 10,
$feature.Class_2012 >= 60, 11,
0 ) That way you don't have to count a bunch of closing parentheses.
... View more
10-18-2018
08:33 AM
|
9
|
4
|
31224
|
|
POST
|
Hi Matt, Can you provide a link to a small app that demonstrates this issue? Thanks.
... View more
10-08-2018
09:06 AM
|
0
|
1
|
1860
|
|
POST
|
Andriy, If the renderer is null, you can pass a SimpleRenderer to it prior to calling the createFeatureLayer() method, and it should work.
... View more
08-30-2018
09:36 AM
|
1
|
0
|
1516
|
|
POST
|
Yeah. The WebGL implementation uses one context per feature layer that can be drawn with WebGL. As you've seen, this does have performance issues. We're currently working on using only a single WebGL context for all layers in the app. This will improve performance and allow you to draw all your layers without the 8 - 16 limitation depending on the browser.
... View more
08-30-2018
09:26 AM
|
2
|
1
|
4029
|
|
POST
|
This is a reply to all the questions in this post: 1. For Matthew - passing a function to a field for a Sublayer's renderer was never supported. The reason for this is because MapImageLayer renderers are created server-side, so passing a JS function to the server wouldn't make sense for this particular layer, not to mention introduce security vulnerabilities. This was a documentation error on our part. I apologize for that confusion. 2. For Matthew and Aaron - Similarly, WebGL rendered feature layers also never supported functions in renderers. As noted by the error message, in both of those scenarios the renderer needs to be serialized at some point in our rendering pipeline. In WebGL this is required when passing information from the main thread to workers, and back to the main thread. So we didn't commit to supporting JS functions in renderers at that point. Regarding access to additional data in Arcade - that functionality is coming. We hope to have it released in Arcade by the end of the year. That will provide you with access to other features within your layer and other layers in your map. If you need to access parameters from your application for your Arcade, you can already do this by constructing the Arcade with JavaScript then passing it to your renderer. This blog addresses one possible use case for this: https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/generate-arcade-expressions-for-data-exploration-web-app… And the limitation on Sublayer saying that Arcade expressions aren't supported in renderers and popups is incorrect. I apologize again for that miscommunication in the documentation. This sample demonstrates both cases: renderer with arcade and popupTemplate with Arcade in a Sublayer: MapImageLayer - Explore data from a dynamic workspace | ArcGIS API for JavaScript 4.8 I hope all this information helps!
... View more
08-30-2018
08:54 AM
|
2
|
4
|
4802
|
|
POST
|
Could you share the webmap? It could be because AGOL only symbolizes the first 10 values. All others are lumped into the "Other" category. You should still be able to see them listed when you open up the style options. There you can drag them out and give them proper symbols. Also, on a minor note, you can also take advantage of the When() function in Arcade to achieve the same result. I find it a little more readable, but it's totally up to whether or not you find it useful: When(
$feature.speed == 0 && $feature.messageType == "IGNITION OFF", "Position - Not Moving",
$feature.speed < 1 && $feature.messageType == "Position", "Stopped Position",
$feature.messageType == "POWER DISCONNECT", "Stopped Power Disconnect",
$feature.messageType == "Position", "Position-Moving",
$feature.messageType == "IGNITION ON", "Ignition On",
$feature.messageType == "IGNITION OFF", "Ignition Off",
$feature.messageType == "SPEEDING", "Speeding",
$feature.messageType == "IDLE", "Excessive Idle/Long Stop (5 minutes)",
$feature.messageType == "IDLE END w Duration", "Idle w Duration",
$feature.messageType == "HARSH ACCELERATION", "Harsh Acceleration",
$feature.messageType == "HARSH BRAKING", "Harsh Braking",
$feature.messageType == "POSSIBLE ACCIDENT", "Impact Possible Accident",
$feature.messageType == "POWER CONNECT", "External Power",
$feature.messageType == "POWER DISCONNECT", "Internal Power",
$feature.messageType == "LEFT TURN", "Harsh Left",
$feature.messageType == "RIGHT TURN", "Harsh Right",
"Other")
... View more
08-22-2018
12:30 PM
|
1
|
3
|
2188
|
|
POST
|
I don't have "official" news on this. But I will say we are very close on this one. I don't want to make any promises prematurely but I think you'll see this soon.
... View more
05-14-2018
10:50 AM
|
0
|
0
|
3285
|
|
POST
|
Hi Richard. The Geometry Engine only supports 2D geometric operations. While geometries with z values can be used, they will be ignored for all evaluations.
... View more
05-07-2018
08:33 AM
|
0
|
7
|
4830
|
| 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 |