Use the MapLibre ArcGIS plugin to create a basemap session and display a map for 12 hours.
What you'll learn
You will learn how to:
- Create an API key credential for basemaps.
- Start a basemap session that is valid for 12 hours.
- Display a basemap style from the ArcGIS Basemap Styles service with a session token.
- Start a new basemap session when it expires.
- Change basemap styles with the same session token.
- Provide geocoding functionality to find places around the world.
- Support unlimited user interactions such as map zoom, pan, and tilt.
- Create an app that uses the basemap session usage model. Learn more here.
What you'll use
- MapLibre ArcGIS plugin
- ArcGIS Basemap Styles service
- API key authentication
- Session token
What you'll need
Before you begin, you need the following:
- An ArcGIS Location Platform account. ArcGIS Online or ArcGIS Enterprise accounts are not supported for this how-to.
- A modern web browser, such as recent versions of Chrome, Firefox, Safari, or Edge.
- Basic knowledge of HTML, CSS, and JavaScript.
- A code editor, such as CodePen (recommended for this how-to).
Steps
Step 1

Create an API key
Step 2

Create a basemap session
Step 3

Change the basemap style
Step 4
