NPM
Install ndamap-gl using NPM.
npm install ndamap-gl
You can then use the library in your project like this:
<div id="map"></div>
import ndamapgl from 'ndamap-gl';
import 'ndamap-gl/dist/ndamap-gl.css';
const map = new ndamapgl.Map({
container: 'map',
style: 'https://nda-tiles.openmap.vn/styles/ndamap/style.json',
center: [21.03024, 105.85237],
zoom: 15,
maplibreLogo: true
});