Skip to content

Latest commit

 

History

History
41 lines (21 loc) · 2.79 KB

README.md

File metadata and controls

41 lines (21 loc) · 2.79 KB

ArcGIS JS Res

Quick ArcGIS JavaScript resources from conversations and personal tinkering

Workflows

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

User Interactions

selectaoi code | live

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 code | live

Animate a point (eg graphic)!

Vector Data

exploreGeoJson code | live

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

pipebins code | live

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

pipetiles code | live

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

Issues and Contributing

Want to request a new sample? Have a question? Would love to hear from you.

And PRs always welcome!