1.0.3 • Published 2 years ago
mapcreator-gl v1.0.3
Mapcreator interactive maps library. Uses Maplibre GL JS internally and adds Mapcreator-specific features to it.
Installation
npm i --save mapcreator-gl
Usage
// Import library scripts
import { init } from 'mapcreator-gl';
// Import library styles
import 'mapcreator-gl/dist/lib/style.css';
// Initialize the map
const map = await init({
container: '<map container element or its id>',
jobId: '<interactive map id>',
accessToken: '<mapcreator access token>',
});
// map is now an instance of MapLibre GL JS:
//
// map.setZoom(10);
// map.getZoom();