@esri/arcgis-rest-demographics

Demographics data helpers for ArcGIS REST JS.

Install

Use dark colors for code blocksCopy
1
npm install @esri/arcgis-rest-demographics

Import

@esri/arcgis-rest-demographics is distributed as both ES Modules and Common JS modules.

Use dark colors for code blocksCopy
1
import * as demographicsTools from "@esri/arcgis-rest-demographics"
Use dark colors for code blocksCopy
1
const demographicsTools = require("@esri/arcgis-rest-demographics");

CDN

You can use @esri/arcgis-rest-demographics as an ES Module from the Skypack CDN.

Use dark colors for code blocksCopy
1
2
3
<script type="module">
  import * as demographicsTools from "https://cdn.skypack.dev/@esri/arcgis-rest-demographics@4.0.2";
</script>

You can also use @esri/arcgis-rest-demographics from a script tag. All exports will be added to a global arcgisRest object.

Use dark colors for code blocksCopy
1
2
3
4
<script
  src="https://unpkg.com/@esri/arcgis-rest-demographics@4.0.2/dist/bundled/demographics.umd.min.js"
  integrity="sha512-YFKpZqYqYIWLIjwDMLG3DYRNlPs5kcTITqNjn7+dzEwh+1Z2/oNxtWXI+Z1rejozoPhdqXiV92/o/pXiY/F9pg==">
</script>

Exports

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.