simplespec-to-gl-style
v0.1.0
Published
Converts GeoJSON styled with simplestyle-spec to a GL Style
Downloads
15
Readme
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
});