static files for demo

pull/13290/head
Román Jiménez 7 years ago
parent 09bad90aaf
commit c38d333c9c

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
// cartodb.js version: 3.15.12
// uncompressed version: cartodb.uncompressed.js
// sha: fd59cdbd94906f554d820cef55009ec795aaf5f0
// sha: 77e8d5e7f13024a0fd2201dd4af71747ed366b5b
(function() {
var define; // Undefine define (require.js), see https://github.com/CartoDB/cartodb.js/issues/543
var root = this;
@ -26925,31 +26925,32 @@ 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);
}
});
}
};
@ -40077,8 +40078,6 @@ 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);
@ -40141,6 +40140,7 @@ 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