From e41205864949e3dddcdee7fa69f0331d4117b027 Mon Sep 17 00:00:00 2001 From: Koenig Romain Date: Mon, 11 Jan 2016 16:51:19 +0100 Subject: [PATCH] Update mapbox.js for grunt concatenation Add a ; so the concatenation in grunt build can work --- mapbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapbox.js b/mapbox.js index 597e8e2..d68f78b 100644 --- a/mapbox.js +++ b/mapbox.js @@ -61,7 +61,7 @@ module.exports=window.L=require("leaflet/dist/leaflet-src"); "use strict";var util=require("./util"),formatPattern=/\.((?:png|jpg)\d*)(?=$|\?)/,TileLayer=L.TileLayer.extend({includes:[require("./load_tilejson")],options:{sanitizer:require("sanitize-caja")},formats:["png","jpg","png32","png64","png128","png256","jpg70","jpg80","jpg90"],scalePrefix:"@2x.",initialize:function(t,i){L.TileLayer.prototype.initialize.call(this,void 0,i),this._tilejson={},i&&i.format&&util.strict_oneof(i.format,this.formats),this._loadTileJSON(t)},setFormat:function(t){return util.strict(t,"string"),this.options.format=t,this.redraw(),this},setUrl:null,_setTileJSON:function(t){return util.strict(t,"object"),this.options.format=this.options.format||t.tiles[0].match(formatPattern)[1],L.extend(this.options,{tiles:t.tiles,attribution:this.options.sanitizer(t.attribution),minZoom:t.minzoom||0,maxZoom:t.maxzoom||18,tms:"tms"===t.scheme,bounds:t.bounds&&util.lbounds(t.bounds)}),this._tilejson=t,this.redraw(),this},getTileJSON:function(){return this._tilejson},getTileUrl:function(t){var i=this.options.tiles,e=Math.floor(Math.abs(t.x+t.y)%i.length),o=i[e],r=L.Util.template(o,t);return r?r.replace(formatPattern,(L.Browser.retina?this.scalePrefix:".")+this.options.format):r},_update:function(){this.options.tiles&&L.TileLayer.prototype._update.call(this)}});module.exports.TileLayer=TileLayer,module.exports.tileLayer=function(t,i){return new TileLayer(t,i)}; },{"./load_tilejson":21,"./util":30,"sanitize-caja":5}],30:[function(require,module,exports){ "use strict";function contains(n,t){if(!t||!t.length)return!1;for(var r=0;r/g,"")},lbounds:function(n){return new L.LatLngBounds([[n[1],n[0]],[n[3],n[2]]])}}; -},{}]},{},[17]) +},{}]},{},[17]); -//# sourceMappingURL=mapbox.js.map \ No newline at end of file +//# sourceMappingURL=mapbox.js.map