The MapLibre ArcGIS plugin allows you to easily access and work with the ArcGIS Basemap Styles service, feature services, and vector tile services. To use the library you must first install the MapLibre GL JS library in your project.
Current version: 1.3.1
Install
Below are the steps to install the maplibre-gl and maplibre-arcgis package via NPM or to include it directly using CDN links.
NPM
Install the following packages:
npm install maplibre-gl
npm install @esri/maplibre-arcgisCDN
You can use maplibre-arcgis as an ES Module.
index.html
<script type="importmap">
{
"imports": {
"maplibre-gl": "https://unpkg.com/maplibre-gl@6.5.0/dist/maplibre-gl.mjs",
"@esri/maplibre-arcgis": "https://unpkg.com/@esri/maplibre-arcgis@1.3.1/dist/esm/maplibre-arcgis.min.js"
}
}
</script>app.js
import * as maplibregl from "maplibre-gl";
import * as maplibreArcGIS from "@esri/maplibre-arcgis";