Select to view content in your preferred language

Bullet Points when returning values in an Arcade array in ArcGIS Online

85
2
Jump to solution
Wednesday
Labels (1)
LDreyfuss
Occasional Contributor

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:

LDreyfuss_0-1727917263153.png

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');
}
0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

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')

jcarlson_0-1727924072230.png

 

- Josh Carlson
Kendall County GIS

View solution in original post

0 Kudos
2 Replies
jcarlson
MVP Esteemed Contributor

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')

jcarlson_0-1727924072230.png

 

- Josh Carlson
Kendall County GIS
0 Kudos
LDreyfuss
Occasional Contributor

Thanks so much, Josh! That worked!

0 Kudos