1.0.3 • Published 2 years ago

mapcreator-gl v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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();
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago