Skip to content

dnomadb/colorpasta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colorpasta


Paste a color ramp - get CartoCSS

Installation

  1. git clone this
  2. npm install
  3. npm link

Usage

With colors copied to your clipboard:

copypasta --copy --classprefix <prefix> --template <template>

--copy write output to clipboard (vs printing) [default: false]

--classprefix prefix for name of color classes [default = class]

---template {"layer":<layername>,"min":<min>,"max":<max>,"params":[<style1>, <style2>]}

layer - the name of the layer in the mapid you want to style (string) min - the minimum value of your classes (number) max - the maximum value of your classes (number) params - an array of the classes: eg ["polygon-fill", "line-color"] (array of strings)

1. Make a color ramp

2. With the color ramp copied to your clip, run it, and style your map.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published