Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    faces-mappublic

    faces-map

    Fill a GeoJSON shape with photo thumbnails

    Created for the 2015 Myanmar elections

    Usage

    Put a GeoJSON FeatureCollection as static/country.json

    Put many images in the static/faces directory. Run imagemagick to make them smaller

    brew install imagemagick
    cd static/faces
    mogrify -path ./ -resize 20% -format jpg *.png
    rm *.png

    Run this to see the map on http://localhost:8080

    npm install
    npm start

    Run this to create an image from the command line

    npm install
    node cli.js

    Output is map.png

    License

    Open source with an MIT license

    install

    npm i faces-map

    Downloadsweekly downloads

    3

    version

    2.0.0

    license

    MIT

    last publish

    collaborators

    • avatar