dingi-gl
v0.1.4
Published
A WebGL interactive maps library for Dingi
Downloads
6
Readme
we can initialize a map by using dingi-gl.
Add dingi-gl by npm package manager
npm install dingi-gl --save
import dingigl from 'dingi-gl';
dingigl.apiToken = 'pk.eyJ1IjoidG9ycGVkbyIsImEiOiJjamtmMWpwOHYwM3o2M2ttbGttaHhkYWFsIn0.27u87f1bn5X0hfylI9JbIQ';
var map = new dingigl.Map({
container: 'map',
style: 'https://tiles.dingi.live/styles/Combined/style.json',
center: [90.4171, 23.7802],
zoom: 14 ,
});