Skip to content

@esri/arcgis-rest-basemap-sessions

Helpers for starting and managing basemap sessions in ArcGIS REST JS.

Install

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

Import

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

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

CDN

You can use @esri/arcgis-rest-basemap-sessions as an ES Module from the esm.run CDN.

Use dark colors for code blocksCopy
1
2
3
<script type="module">
  import * as basemapSessionsTools from "https://esm.run/@esri/arcgis-rest-basemap-sessions@1.1.0";
</script>

You can also use @esri/arcgis-rest-basemap-sessions 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-basemap-sessions@1.1.0/dist/bundled/basemap-sessions.umd.min.js"
  integrity="sha512-k3vhhp0N0UQIdwMsd6pxMQBLD2g6864TGCJHnBen0mjjT5Xxll2Ef+d7S0J8rua+fKBAfNOGpMEf0HJLlG7ENQ==">
</script>

Exports

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