Quick ArcGIS JavaScript resources from conversations and personal tinkering
OAuth 2.0
code
End-to-end, server-based, user-based, oversimplified, OAuth 2.0 workflow. Shows: authenticating a named user, maintaining tokens & refresh tokens, and forwarding to the ArcGIS JS API when needed.
Note, this isn't ready for production--the tokens should be secured, associated with a legitimate identity system not a
json
file, etc
Select an area of interest based on GIS data. Demonstrates: sign in, drawing, drawing validation, pop-up actions, geocoding, input web maps and feature layers, and some really cool imagery
Animate a point (eg graphic)!
Display ~50k GeoJson building footprints and dynamically style / perform geospatial queries on the client. The GeoJson is converted to ArcGIS Json with Terraformer on load and the data is cut from Microsoft's open building footprints
Display 150k+ line features by displaying pre-computed bins that fade to the underlying feature layer as you zoom in. Once the feature layer is visible, you can select an area of interest to highlight features / query capacity statistics on the client
Same as
pipebins
, but with a hosted tile layer instead of a bin feature layer. To mix it up, you can also select an area of interest at any scale to query capacity / features on the server
Want to request a new sample? Have a question? Would love to hear from you.
And PRs always welcome!