@esri/arcgis-rest-portal

ArcGIS Online and Enterprise content and user helpers for ArcGIS REST JS.

Install

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

Import

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

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

CDN

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

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

You can also use @esri/arcgis-rest-portal 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-portal@4.1.0/dist/bundled/portal.umd.js"
  integrity="sha512-M65ICTwXAa/FNFJuMq9yms8BMz+So2pu/7135Yeyep/iwq3jUTYjeFE42xzR2v9Pdz66jh0S4DLhQ4yI53y83A==">
</script>

Exports

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