Hi @KenBuja Happy Friday,
Hope all is well; So when I add Address next to counter, the code also outputs it multiple times as in the screenshot below. Is there a way to have the Address string to appear only once even if there are more than one address?
Current code:
// Create a variable that is the FeatureSet of intersecting feature attributes
var Parcels = FeatureSetByname($map,"PARCEL")
// Create a new variable for address layer, this layer also intersects the parcel layer
var address = FeatureSetByname($map,"ADDRESS")
var intersectLayer = Intersects(address,$feature)
// First heading
var popup = '<h3>Property Summary</h3>';
var counter = 1;
for (var f in intersectLayer){
popup += `<b>Address:</b> ${counter}) ${f.FullAddress} <br>`;
counter++;
}
popup += `<b>PIN:</b> ${$feature.PIN} <br><br>
<b>Tract#:</b> ${$feature.TRACT} <br><br>
<b>Block:</b> ${$feature.BLOCK} <br><br>
<b>ARB:</b> ${$feature.ARB} <br> <br>
<b>BPP:</b> ${$feature.BPP} <br> <br>
<b>LOT#:</b> ${$feature.LOT} <br> <br>
`
return {
type : 'text',
text : popup
}
Current output:
Question | Analyze | Visualize