Using Arcade to label based off number of points in a grid square

237
1
04-15-2019 05:35 AM
AndrewHargreaves2
Occasional Contributor III

Hello ArcGIS Online‌ team

I'm wondering if it's possible to use #arcade‌ to label a feature service of grid squares with the number of points that fall within each square? The points are a different layer and change hourly.

Thanks

0 Kudos
1 Reply
ShelbyZemken1
New Contributor III

I can think of two examples of how this could be done with Arcade. 

I would read through KGerrow's blog post on how to intersect data from different layers.

A second relevant read that will help you is by xander bakker, who did something quite similar to what you want to do.

After you read through that, you will have an idea how to do it and you can use the API documentation to help you put together your code.