Skip to content

Converts GeoJSON styled with simplestyle-spec to a GL Style

License

Notifications You must be signed in to change notification settings

mapbox/simplespec-to-gl-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published