0.9.0 • Published 5 years ago

@mapbox/style-templates v0.9.0

Weekly downloads
9
License
Copyright © Mapbo...
Repository
github
Last release
5 years ago

Style templates

A list of template and designer styles to share for accuracy across projects.

Build Status

Usage

import { getTemplates } from '@mapbox/style-templates';
const templates = getTemplates('production');

console.log(templates);

Contributing

Add any new entry to templates.json. Styles are grouped in template or designer arrays and each entry should be formatted in the following way:

{
    /* Required fields */

    "title": "Title of the style",
    "description": "Description of the style. Keep it pithy",
    "id": {
        "production": "A valid style url (i.e mapbox://styles/mapbox/streets-v9)",
        "staging": "A valid style url from staging"
    },
    "center": {
      "lng": -122.4241,
      "lat": 37.78,
      "zoom": 9
    },


    /* Required fields for designer styles */

    "author": "Name of author",
    "color": "as valid hex (i.e #333)"
}

Verify how your style will look from the static API by running the test site:

npm install && npm start

Open http://localhost:9966/ and thumbnails for each entry should be generated from the staging environment. To verify styles render correctly in production, replace npm start with:

npm run start-production

Releasing

$ npm version {major|minor|patch}
$ git push --follow-tags
$ mbx npm publish
0.9.0

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago