Skip to content

Latest commit

 

History

58 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplespec-to-gl-style

Converts GeoJSON styled with simplestyle-spec to a GL Style

Install

npm install @mapbox/simplespec-to-gl-style --save

Usage:

var convert = require('@mapbox/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
});

About

Converts GeoJSON styled with simplestyle-spec to a GL Style

Resources

Code of conduct

Contributing

Security policy

Stars

34 stars

Watchers

114 watching

Forks

Releases

Packages

Used by

Contributors

Languages