Select to view content in your preferred language

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

566
1
04-15-2019 05:35 AM
AndrewHargreaves2
Deactivated User

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
Regular Contributor

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.