vendor/ember-leaflet-cartodb/cartodb_noleaflet.js
function(params, included) {
    if(!params) return '';
    var url_params = [];
    included = included || _.keys(params);
    for(var i in included) {
      var k = included[i]
      var p = params[k];
      if(p) {
        if (_.isArray(p)) {
          for (var j = 0, len = p.length; j < len; j++) {
            url_params.push(k + "[]=" + encodeURIComponent(p[j]));
          }
        } else {
          var q = encodeURIComponent(p);
          q = q.replace(/%7Bx%7D/g,"{x}").replace(/%7By%7D/g,"{y}").replace(/%7Bz%7D/g,"{z}");
          url_params.push(k + "=" + q);
        }
      }
    }
    return url_params.join('&')
  }
function(params, included) {
    if(!params) return '';
    var url_params = [];
    included = included || _.keys(params);
    for(var i in included) {
      var k = included[i]
      var p = params[k];
      if(p) {
        if (_.isArray(p)) {
          for (var j = 0, len = p.length; j < len; j++) {
            url_params.push(k + "[]=" + encodeURIComponent(p[j]));
          }
        } else {
          var q = encodeURIComponent(p);
          q = q.replace(/%7Bx%7D/g,"{x}").replace(/%7By%7D/g,"{y}").replace(/%7Bz%7D/g,"{z}");
          url_params.push(k + "=" + q);
        }
      }
    }
    return url_params.join('&')
  }
function ( params , included ) { if ( ! params ) return '' ; var url_params = [ ] ; included = included || _ . keys ( params ) ; for ( var i in included ) { var k = included [ i ] var p = params [ k ] ; if ( p ) { if ( _ . isArray ( p ) ) { for ( var j = 0 , len = p . length ; j < len ; j ++ ) { url_params . push ( k + "[]=" + encodeURIComponent ( p [ j ] ) ) ; } } else { var q = encodeURIComponent ( p ) ; q = q . replace ( / %7Bx%7D / g , "{x}" ) . replace ( / %7By%7D / g , "{y}" ) . replace ( / %7Bz%7D / g , "{z}" ) ; url_params . push ( k + "=" + q ) ; } } } return url_params . join ( '&' ) }
Change query of the tiles
@params {str} New sql for the tiles
Change query of the tiles