Hello,
Is there anything I can change to the below arcade popup syntax to optimize it and make it more efficient? We are getting ready to launch this app and want to make sure the syntax for this is good. The current output is also below. This is the app: https://experience.arcgis.com/experience/0eecc2d2d0b944a787f282420c8b290c
var customdiv = "style='background-color:#c6c2c1;color:black;padding:3px;'"
var border = "style='border: .5px solid #bdbdbd;'"
var textcolor = "style='color: #0066ff;'"
var featBuffer = Buffer($feature, -20, "feet");
var GeneralIntersect = Intersects(FeatureSetByName($map, "ZNET_Public - Zoning (Hidden from Map. Used in near me)"), featBuffer);
var SP_Intersect = Intersects(FeatureSetByName($map, "ZNET_Public - Zoning SP Category (Hidden from Map)"), featBuffer);
var zone_link = ``;
var zone_list = ``
var sp_zone = ``
for (var f in GeneralIntersect){
zone_list += f.ZONE + ':'
zone_link = `https://library.municode.com/ca/los_angeles_county/codes/code_of_ordinances?nodeId=TIT22PLZO_${f.TITLE_22}`
var zone_info = f
}
for (var g in SP_Intersect){
sp_zone = `- ${g.PLAN_LEG}`
}
return {
type : 'text',
text : `<br>
<table style='table-layout: fixed; width: 100%;'>
<div ${customdiv}><b> Zone ${zone_list}</b></br>
${zone_info.Z_DESC} Zone (${zone_info.Z_CATEGORY}${sp_zone}), <a ${textcolor} href='${zone_link}'>Learn more↗</a></div>
<tr>
<td ${border}><b>Main Address</b></td>
<td ${border}>${$feature.SitusFullAddress}</td>
</tr>
<tr>
<td ${border}><b>Parcel Number</b></td>
<td ${border}>${$feature.AIN}</td>
</tr>
<tr>
<td ${border}><b>Community</b></td>
<td ${border}>${Proper(zone_info.NAME)}</td>
</tr>
<tr>
<td ${border}><b>Planning Area</b></td>
<td ${border}>${zone_info.PLNG_AREA}</td>
</tr>
</table><br>
<a ${textcolor} href='https://portal.assessor.lacounty.gov/parceldetail/${$feature.AIN}'>Go to the Assessor Portal for this Property↗</a><br>
<a ${textcolor} href='https://rpgis.isd.lacounty.gov/Html5Viewer/index.html?viewer=GISNET_Public.GIS-NET_Public&run=UrlSearch&term=${$feature.AIN}'>Go to this Property in GIS-NET↗</a><br>
<a ${textcolor} href='https://planning.lacounty.gov/land-use-zoning/'><font>Basic Info About Zoning↗</font></a><br>
<a ${textcolor} href='https://outlook.office365.com/book/RegionalPlanningVirtualOnlineAppointments@lacounty.onmicrosoft.com/'>Schedule an Appointment↗</a></span>`
}