diff --git a/lib/carto/renderer_js.js b/lib/carto/renderer_js.js index 716ed29..8064f2b 100644 --- a/lib/carto/renderer_js.js +++ b/lib/carto/renderer_js.js @@ -5,6 +5,7 @@ var _ = global._ || require('underscore'); function CartoCSS(style, options) { this.options = options || {}; + this.imageURLs = []; if(style) { this.setStyle(style); } @@ -164,6 +165,9 @@ CartoCSS.prototype = { } } }, + getIconURLs: function(){ + return this.imageURLs; + }, parse: function(cartocss) { var parse_env = { @@ -198,6 +202,13 @@ CartoCSS.prototype = { var layer = layers[key] = (layers[key] || { symbolizers: [] }); + this.imageURLs = _getImageURLs(def); + for(var u = 0; u