DOC
|
Hi Xander, I am back with another scenario which is one step further from my last request. Now that we have multiple overlapping features being displayed in pop ups, I want to display only one most relevant route name on one selected pipe segment. For that, I have a common attribute in both feature classes, "Pipes.EngrouteID", and "Route.RouteID". And I want this function to work as, when I click on a pipe segment it matches its EngrouteID attrbute with RouteID attribute in Route Feature class, and displays its relevant record from "RouteName" attribute of Route Feature Class. How can we achieve that with arcade? Thanks Hassan
... View more
09-26-2019
01:42 PM
|
0
|
0
|
8522
|
POST
|
Hi Chris, Thanks for replying! I get an error message: Execution Error:Must have a default value result. When I run the following code: var material = $feature["material"]; var materialLabel = When( material == 0,"Unknown", material == 13,"Aluminum", material == 14,"Steel", material == 15,"Cast Iron", material == 16,"Plastic") return materialLabel Is there anything in my code which is not right? Thanks Hassan
... View more
07-30-2019
06:59 AM
|
0
|
2
|
990
|
POST
|
Hi Chris, What if we have multiple attributes in a field, how can we combine all below in one statement/expression? IIf($feature.Material == 10, "Steel", "") IIf($feature.Material == 11, "Aluminum", "") IIf($feature.Material == 12, "Plastic", "") The statement like below doesn't work for me. IIf($feature.Material == 10, "Steel", IIf($feature.Material == 11, "Aluminum", "")) Thanks Hassan
... View more
07-29-2019
09:30 AM
|
0
|
4
|
4387
|
DOC
|
Thanks for replying Xander! I get a count of intersecting lines and their names (System Name). Thanks Hassan
... View more
07-23-2019
07:00 AM
|
1
|
0
|
8522
|
DOC
|
Hi Xander, I am trying to intersect two overlapping polyline layers to bring attributes of one layer to other layer's pop up, but unable to get any results. I guess my solution is hidden in using buffers but I don't know how to use that due to my very limited knowledge of Arcade. Can you please add a buffer in the following code to achieve what I want. var intersectLayer =Intersects(FeatureSetByName($map,"Route"), $feature) for (var f in intersectLayer){ return f.systemname } Strange enough that exactly similar code works for point over polygon, and line over polygon layers. It also shows "custom" field in the pop up window. But for line over line, same code doesn't even show custom field in the pop up window. Is there something else required to do other than buffer? Thanks Hassan
... View more
07-22-2019
08:29 AM
|
0
|
0
|
8522
|
Title | Kudos | Posted |
---|---|---|
1 | 07-30-2019 07:14 AM | |
1 | 07-23-2019 07:00 AM |
Online Status |
Offline
|
Date Last Visited |
08-17-2022
05:54 PM
|