@mapbox/simplespec-to-gl-style

    0.4.0 • Public • Published

    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
    });

    Keywords

    none

    Install

    npm i @mapbox/simplespec-to-gl-style

    DownloadsWeekly Downloads

    49

    Version

    0.4.0

    License

    ISC

    Unpacked Size

    18.1 kB

    Total Files

    8

    Last publish

    Collaborators

    • mapbox-admin
    • mapbox-machine-user
    • mapbox-npm
    • mapbox-npm-01
    • mapbox-npm-02
    • mapbox-npm-03
    • mapbox-npm-04
    • mapbox-npm-05
    • mapbox-npm-06
    • mapbox-npm-07
    • mapbox-npm-08
    • mapbox-npm-09
    • mapbox-npm-advanced-actions
    • mapbox-npm-ci