Skip to content

bmathews/pingen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map Pin Generator

Generate map pins with font-awesome icons, text, and dynamic colors.

image

Install

with npm do npm install pingen

Uses node-canvas, which depends on Cairo.

Usage

var pingen = require('pingen');

// color, text, icon, twoX 
var stream = pingen("green", null, "fa-home", true);

stream = pingen("#fff", "13", null, false);

Example server api

GET localhost:3000/:size/:color/:icon/marker.png?text=string

image

/2x/ccc/fa-microphone/marker.png

image

/2x/2A94D6/fa-microphone/marker.png

image

/1x/green/fa-home/marker.png

image

/2x/F3AE4E/marker.png?text=5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published