<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Arcade - Pull Attributes From Multiple Layers In Map in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-pull-attributes-from-multiple-layers-in-map/m-p/1044385#M734</link>
    <description>&lt;P&gt;I have a layer in my map (point layer), and I am trying to pull attributes from other layers in the same map (these layers are a combination of point, lines and polygon). I am currently using the below expression to pull through the attributes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var intersectLayerWoodlandAsset =Intersects(Buffer($feature, 0.5, 'meters'),FeatureSetByName($map,"Woodland Asset"))

for (var f in intersectLayerWoodlandAsset){
    return f.FAILURECLASS
}
var intersectLayerVergeAsset =Intersects(Buffer($feature, 0.5, 'meters'),FeatureSetByName($map,"Verge Asset"))

for (var f in intersectLayerVergeAsset){
    return f.FAILURECLASS
}
var intersectLayerVentShaftAsset =Intersects(Buffer($feature, 0.5, 'meters'),FeatureSetByName($map,"Vent Shaft Asset"))

for (var f in intersectLayerVentShaftAsset){
    return f.FAILURECLASS
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The issue I'm facing is that I only want to pull through the field from the given layer when it is only turned on in the map, because there are instances where features in the multiple layers overlap, and I want to be able to dictate which layer the attribute is pulled from.&lt;/P&gt;&lt;P&gt;I'm not sure if this is even possible or maybe I need to re-write the script, but any help is much appreciated!&lt;/P&gt;</description>
    <pubDate>Tue, 06 Apr 2021 21:29:20 GMT</pubDate>
    <dc:creator>RonParis</dc:creator>
    <dc:date>2021-04-06T21:29:20Z</dc:date>
    <item>
      <title>Arcade - Pull Attributes From Multiple Layers In Map</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-pull-attributes-from-multiple-layers-in-map/m-p/1044385#M734</link>
      <description>&lt;P&gt;I have a layer in my map (point layer), and I am trying to pull attributes from other layers in the same map (these layers are a combination of point, lines and polygon). I am currently using the below expression to pull through the attributes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var intersectLayerWoodlandAsset =Intersects(Buffer($feature, 0.5, 'meters'),FeatureSetByName($map,"Woodland Asset"))

for (var f in intersectLayerWoodlandAsset){
    return f.FAILURECLASS
}
var intersectLayerVergeAsset =Intersects(Buffer($feature, 0.5, 'meters'),FeatureSetByName($map,"Verge Asset"))

for (var f in intersectLayerVergeAsset){
    return f.FAILURECLASS
}
var intersectLayerVentShaftAsset =Intersects(Buffer($feature, 0.5, 'meters'),FeatureSetByName($map,"Vent Shaft Asset"))

for (var f in intersectLayerVentShaftAsset){
    return f.FAILURECLASS
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The issue I'm facing is that I only want to pull through the field from the given layer when it is only turned on in the map, because there are instances where features in the multiple layers overlap, and I want to be able to dictate which layer the attribute is pulled from.&lt;/P&gt;&lt;P&gt;I'm not sure if this is even possible or maybe I need to re-write the script, but any help is much appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 21:29:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-pull-attributes-from-multiple-layers-in-map/m-p/1044385#M734</guid>
      <dc:creator>RonParis</dc:creator>
      <dc:date>2021-04-06T21:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - Pull Attributes From Multiple Layers In Map</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-pull-attributes-from-multiple-layers-in-map/m-p/1044473#M737</link>
      <description>&lt;P&gt;This isn't possible in Arcade, unfortunately. The property of whether a layer is visible or not is defined in the map itself as opposed to the individual layer, where Arcade is operating.&lt;/P&gt;&lt;P&gt;That isn't to say that what you're aiming for isn't possible at all, however. But it would require a deep dive into a custom JavaScript map.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 00:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-pull-attributes-from-multiple-layers-in-map/m-p/1044473#M737</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-04-07T00:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - Pull Attributes From Multiple Layers In Map</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-pull-attributes-from-multiple-layers-in-map/m-p/1046041#M752</link>
      <description>&lt;P&gt;Only thing I can think of is to have a drop down where the user specifies which layer to do the lookup on.&amp;nbsp; Then use that choice in your code to return the correct one.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 19:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-pull-attributes-from-multiple-layers-in-map/m-p/1046041#M752</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-04-12T19:07:30Z</dc:date>
    </item>
  </channel>
</rss>

