Esri / Geospatial-Center-Code

A repository for helpful scripts
Apache License 2.0
24 stars 8 forks source link

Example template for adding a new item to a folder #2

Open apfister opened 4 years ago

apfister commented 4 years ago

When a new script is added to a folder, the individual will create a sub-folder that will at least have a README.md that will follow the template below, along with any script files and/or supporting files, screenshots, etc.

/arcade
    |
    --> /predominance-map-lotsa-columns
         |
          --> script.js
          --> README.md
          --> screenshot.png          

example README.md

Create Predominance Map with a lot of columns

Original Author: Bonnie Stayer Ever wanted to create a predominance map but had too many columns to consider? I came up with this simple script to do just that. I'm back in the NAICS industry world, so the field names and output text reflect that (you'd obviously have to swap in whatever your working with)

View it Live

Considerations:

I'd be particularly interested to see if someone has more clever way of addressing the highlighted step (how you get the column name back once you've got the highest value). That's the most cumbersome part, and you're actually returning hardcoded text rather than the real column name.

Use Case

[optional]

Dependencies or Workspace requirements