HOW TO
In ArcGIS Online, the total number of different point features can be determined in a selected polygon. This provides a visual representation to differentiate the total number of businesses and facilities in a selected region. It also enhances the clarity of information when analyzing the map.
This article provides the workflow to display a count of different point features in a selected polygon through a pop-up using ArcGIS Arcade in ArcGIS Online. In this workflow, Point1, Point2 and Point3 are different point layers while Polygon1 is the polygon layer as shown in the image below.
var <VariableName1> = FeaturesetByName($datastore, '<VariableName1>') var <VariableName2> = FeaturesetByName($datastore,'<VariableName2>') var <VariableName3> = FeaturesetByName($datastore,'<VariableName3>')
return Concatenate([
`Point1: ${Count(Intersects($feature, Point1))}`,
`Point2: ${Count(Intersects($feature, Point2))}`,
`Point3: ${Count(Intersects($feature, Point3))}`,
], TextFormatting.Newline)
var Point1 = FeaturesetByName($datastore, 'Point1') var Point2 = FeaturesetByName($datastore,'Point2') var Point3 = FeaturesetByName($datastore,'Point3') return Concatenate([
`Point1: ${Count(Intersects($feature, Point1))}`,
`Point2: ${Count(Intersects($feature, Point2))}`,
`Point3: ${Count(Intersects($feature, Point3))}`,
], TextFormatting.Newline)
The image below shows the count of different point features in a selected polygon through a pop-up.
Get help from ArcGIS experts
Download the Esri Support App