Skip to content

mapbox/path-gradients

Repository files navigation

Initial Setup

  1. Clone this module
  2. Run npm ci

Running

Run node main.js to get the path gradient in a URL encoded fashion.

Other options:

node main.js -r  # returns the path gradient in a RAW form that is not URL encoded
node main.js -f  # returns a FULL URL that you can use with your Mapbox token

Video Tutorial

Video cover image with a route line that begins in a green color, then transitions smoothly into blue.

You can watch a 5-minute video tutorial here.

About

Transforms a single-color path into one with a color gradient

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published