index.js
function getMarker(options, callback) {
    // prevent .parsedTint from being attached to options
    options = xtend({}, options);
    if (options.tint) {
        // Expand hex shorthand (3 chars) to 6, e.g. 333 => 333333.
        // This is not done upstream in `node-tint` as some such
        // shorthand cannot be disambiguated from other tintspec strings,
        // e.g. 123 (rgb shorthand) vs. 123 (hue).
        if (options.tint.length === 3) {
            options.tint =
                options.tint[0] + options.tint[0] +
                options.tint[1] + options.tint[1] +
                options.tint[2] + options.tint[2];
        }
        options.parsedTint = blend.parseTintString(options.tint);
    }

    if (!options.symbol ||
        (options.symbol && options.symbol.length === 1) ||
        (options.symbol.length === 2 && !isNaN(parseInt(options.symbol)))) {
        loadCached(options, callback);
    } else {
        loadMaki(options, callback);
    }
}
function getMarker(options, callback) {
    // prevent .parsedTint from being attached to options
    options = xtend({}, options);
    if (options.tint) {
        // Expand hex shorthand (3 chars) to 6, e.g. 333 => 333333.
        // This is not done upstream in `node-tint` as some such
        // shorthand cannot be disambiguated from other tintspec strings,
        // e.g. 123 (rgb shorthand) vs. 123 (hue).
        if (options.tint.length === 3) {
            options.tint =
                options.tint[0] + options.tint[0] +
                options.tint[1] + options.tint[1] +
                options.tint[2] + options.tint[2];
        }
        options.parsedTint = blend.parseTintString(options.tint);
    }

    if (!options.symbol ||
        (options.symbol && options.symbol.length === 1) ||
        (options.symbol.length === 2 && !isNaN(parseInt(options.symbol)))) {
        loadCached(options, callback);
    } else {
        loadMaki(options, callback);
    }
}
function getMarker ( options , callback ) { // prevent .parsedTint from being attached to options options = xtend ( { } , options ) ; if ( options . tint ) { // Expand hex shorthand (3 chars) to 6, e.g. 333 => 333333. // This is not done upstream in `node-tint` as some such // shorthand cannot be disambiguated from other tintspec strings, // e.g. 123 (rgb shorthand) vs. 123 (hue). if ( options . tint . length === 3 ) { options . tint = options . tint [ 0 ] + options . tint [ 0 ] + options . tint [ 1 ] + options . tint [ 1 ] + options . tint [ 2 ] + options . tint [ 2 ] ; } options . parsedTint = blend . parseTintString ( options . tint ) ; } if ( ! options . symbol || ( options . symbol && options . symbol . length === 1 ) || ( options . symbol . length === 2 && ! isNaN ( parseInt ( options . symbol ) ) ) ) { loadCached ( options , callback ) ; } else { loadMaki ( options , callback ) ; } }
Given a marker object like

{ base, tint, symbol, name }

Call callback with buffer.

@param {object} options
@param {function} callback
Given a marker object like