Hello all,
I'm getting bullet points when I return the values in an Array. Does anyone know why they're appearing and how to get rid of them? The pop-up looks like this:
We'd prefer no bullets, as the rest of the pop-up doesn't have any. Any ideas?
Here's the code:
var intersectLayer = Intersects(Buffer($feature, -5, "feet"), FeatureSetByName($map, "City Zoning"));
var biggest_overlap = '';
var overlap_amount =50;
var zoning = [];
If(Count(intersectLayer) >= 0){
for (var g in intersectLayer) {
var xs = Intersection($feature, g)
var xs_overlap = Area(xs)
if (xs_overlap > overlap_amount) {
biggest_overlap =[`Zone: ${g['ZONE']}
Base Zone: ${g['BASE_ZONE']}
Ordinance: ${g['ORDINANCE']}
Ordinance Date: ${g['ORD_DATE']}
Change Date: ${g['CHANG_DATE']}
Description: ${g['DESCRIPTION']}`+
TextFormatting.NewLine+
TextFormatting.NewLine];
}
Push(zoning,biggest_overlap[0])}
return Distinct(zoning)
}
else {
return Text('No intersecting feature');
}
Solved! Go to Solution.
Distinct(zoning) will return an Array, which the popup renders as a list. To remove the bullet points, you'll need to convert your array to a single string.
Try Concatenate(Distinct(zoning), '\n\n')
Distinct(zoning) will return an Array, which the popup renders as a list. To remove the bullet points, you'll need to convert your array to a single string.
Try Concatenate(Distinct(zoning), '\n\n')
Thanks so much, Josh! That worked!