Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for...
Transcript of Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for...
![Page 1: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/1.jpg)
Making Smarter Maps with ArcadePaul Barker, Jeremy Bartley
![Page 2: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/2.jpg)
Agenda
• Arcade
- What is Arcade?
- Getting Started and Easy Wins
- Adding complexity
- Tips & Tricks
- Troubleshooting
- What’s Next?
![Page 3: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/3.jpg)
What is Arcade?
• common language for expressions in ArcGIS (think
excel for ArcGIS with JavaScript like flow control)
• Allows you to build simple or complex expressions from
your data
• Not intended to be a geoprocessing replacement or a
Python replacement
• Supported in popups, rendering, labeling, rotation, and
attribute rules (Utility Network)
![Page 4: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/4.jpg)
Where to find it in the Web Map
Symbology
Pop-up Configuration
Labels
Rotation
Transparency
![Page 5: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/5.jpg)
Paul Barker
Getting Started and Easy Wins
![Page 6: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/6.jpg)
Getting Started & Easy Wins
• Arcade expressions don’t have to be complicated to be
useful.
- Combine fields together to create a new visualization variable
- Format existing values in fields
- Unit conversion
- Rotate symbology
- Arcade based rendering styles
- Improve the presentation for you audience
![Page 7: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/7.jpg)
Paul Barker, Jeremey Bartley
Demo
![Page 8: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/8.jpg)
Jeremy Bartley, Paul Barker
Adding Complexity
![Page 9: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/9.jpg)
Getting Fancy• Discover and clean-up your data
- Variables
- User-built functions
- Boolean logic
- For loops
- Conditional statements
- Geometry functions
- Feature Sets
• Examples:
- Access related data in your popup
- Complex calculations such as an index created
from multiple fields
- Render based on geographic relationships
![Page 10: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/10.jpg)
- Feature sets are a way to access information
from multiple features
- From the same layer or any layer within your map
($map) or service ($datastore)
- Work with data that is related either informally or
formally
- Can be very powerful when used responsibly
What's a FeatureSet
![Page 11: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/11.jpg)
Considerations
- Check your network traffic – how big are your
queries?
- When using feature sets, don’t make heavy
queries (heavy = slow)
- Use attribute queries instead of spatial queries
when possible
- If you don’t need it, don’t request it!
- Chain functions as much as possible
![Page 12: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/12.jpg)
Jeremy Bartley
Demo
![Page 13: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/13.jpg)
Paul Barker
Tips & Tricks
![Page 14: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/14.jpg)
Tips & Tricks
• Flexibility always comes with responsibility. Balance
complexity and performance
• Reuse expressions across different areas
• Take advantage of constants
• Accessing domains based on value or name
• Use the Github repo for inspiration and share
expressions
![Page 15: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/15.jpg)
Troubleshooting
- Plan things out in your head or on paper before
you start
- The test feature and button are your friend
- Leverage log statements to debug code
- Factor out logic into functions in larger
expressions
- Reference variables in filter via @
![Page 16: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/16.jpg)
• Expanding attribute rules
• Using arcade to make popups smarter
• Optimizing performance (esp. Calc)
• Revamped Arcade expression editor
• Templating (popups)
What’s Next?
?
![Page 17: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/17.jpg)
Resources for
Arcadehttp://esriurl.com/ArcadeResources
Blogs about Arcade
Documentation GitHub – Arcade Examples
Story Map Tutorial
![Page 18: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/18.jpg)
Please Take Our Survey on the App
Download the Esri Events
app and find your event
Select the session
you attended
Scroll down to find the
feedback section
Complete answers
and select “Submit”
![Page 19: Making Smarter Maps with Arcade - Esri...-Arcade based rendering styles-Improve the presentation for you audience Paul Barker, Jeremey Bartley Demo Jeremy Bartley, Paul Barker Adding](https://reader031.fdocuments.us/reader031/viewer/2022011901/5f09ad5b7e708231d427fc0b/html5/thumbnails/19.jpg)