API Docs for: 0.1.0
Show:

File: src\Utils.js

/**
 @module L
 **/

/**
 @class L.PtvUtils
 @static
 **/
L.PtvUtils = L.PtvUtils || {};

/**
 Prefix map for data URIs.
 @attribute L.PtvUtils._prefixMap
 @type Object
 @private
 **/
L.PtvUtils._prefixMap = {
  "iVBOR": "data:image/png;base64,",
  "R0lGO": "data:image/gif;base64,",
  "/9j/4": "data:image/jpeg;base64,",
  "Qk02U": "data:image/bmp;base64,"
};

/**
 Returns the raw image with prefixed data URI.
 @method L.PtvUtils.createDataURI
 @return {String} the raw image with prefixed data URI.
 **/
L.PtvUtils.createDataURI = function(rawImage) {
  return this._prefixMap[rawImage.substr(0, 5)] + rawImage;
};