simplespec-to-gl-style

0.1.0 • Public • Published

simplespec-to-gl-style

Converts GeoJSON styled with simplestyle-spec to a GL Style

Usage:

var convert = require('simplespec-to-gl-style');

var style = convert(myGeoJSON);

var map = new mapboxgl.Map({
    container: 'map',
    style: style, // add style to a map
    center: [-74.50, 40],
    zoom: 9
});

Readme

Keywords

none

Package Sidebar

Install

npm i simplespec-to-gl-style

Weekly Downloads

0

Version

0.1.0

License

ISC

Last publish

Collaborators

  • bsudekum