Can intersect be used within one service (in a web map) or do the endpoints have to be added individually?

153
0
09-16-2021 11:35 AM
Labels (1)
AdamGebhart
Occasional Contributor III

Is it possible to set up an Arcade expression with the intersect function that references another layer within the same service as the features in which the expression is applied?  Or, do you have to add each endpoint within the service individually in order to make the expression work?

For example, I have a service with three layers: address points, food inspector zones, and watershed inspector zones.  If I add each of the endpoints individually, the following expression (in the address points) returns the desired value (from the food inspector zone layer):

AdamGebhart_0-1631816860005.png

However, if I add the whole service to my map and set up the same expression on the address points there it does NOT work.  I get this error:

AdamGebhart_1-1631817031312.png

Does it simply not work within a service?  Or do I have a wrong parameter?

 

0 Kudos
0 Replies