diff --git a/vendor/assets/javascripts/cartodb.uncompressed.js b/vendor/assets/javascripts/cartodb.uncompressed.js index f6caf0e0aa..607fefb2ae 100644 --- a/vendor/assets/javascripts/cartodb.uncompressed.js +++ b/vendor/assets/javascripts/cartodb.uncompressed.js @@ -1,6 +1,6 @@ // cartodb.js version: 3.15.12 // uncompressed version: cartodb.uncompressed.js -// sha: 77e8d5e7f13024a0fd2201dd4af71747ed366b5b +// sha: fd59cdbd94906f554d820cef55009ec795aaf5f0 (function() { var define; // Undefine define (require.js), see https://github.com/CartoDB/cartodb.js/issues/543 var root = this; @@ -26925,32 +26925,31 @@ cdb.geo.geocoder.MAPZEN = { } $.getJSON(protocol + '//search.mapzen.com/v1/search?text=' + encodeURIComponent(address) + '&api_key=' + this.keys.app_id, function(data) { - - var coordinates = []; - if (data && data.features && data.features.length > 0) { - var res = data.features; - for (var i in res){ - var r = res[i], - position; - position = { - lat: r.geometry.coordinates[1], - lon: r.geometry.coordinates[0] - }; - if(r.properties.layer){ - position.type = r.properties.layer; - } - - if(r.properties.label){ - position.title = r.properties.label; - } + var coordinates = []; + if (data && data.features && data.features.length > 0) { + var res = data.features; + for (var i in res){ + var r = res[i], + position; + position = { + lat: r.geometry.coordinates[1], + lon: r.geometry.coordinates[0] + }; + if(r.properties.layer){ + position.type = r.properties.layer; + } + + if(r.properties.label){ + position.title = r.properties.label; + } - coordinates.push(position); + coordinates.push(position); + } } - } - if (callback) { - callback.call(this, coordinates); - } - }); + if (callback) { + callback.call(this, coordinates); + } + }); } }; @@ -40078,6 +40077,8 @@ cdb.vis.Vis = Vis; this.no_cdn = options.no_cdn; + this.auth_tokens = options.auth_tokens; + this.userOptions = options; options = _.defaults({ vizjson: vizjson, temp_id: "s" + this._getUUID() }, this.defaults); @@ -40140,7 +40141,6 @@ cdb.vis.Vis = Vis; this.options.maps_api_template = dataLayer.options.maps_api_template; } - this.auth_tokens = data.auth_tokens; this.endPoint = "/api/v1/map"; var bbox = [];