Updating cartodb.uncompressed.js with last changes from CartoDB.js v3

pull/13126/head
Javier Álvarez Medina 7 years ago
parent 782268d533
commit 5b8d4ed905

@ -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 = [];

Loading…
Cancel
Save