fix modis layer

Are queries ever more complex than that? The API ones get hairy at times. 

> On Jul 10, 2014, at 8:22 AM, Aaron Steele <notifications@github.com> wrote:
> 
> In app/assets/javascripts/map/views/layers/ModisLayer.js:
> 
> > @@ -13,7 +13,10 @@ define([
> >    var ModisLayer = CartoDBLayerClass.extend({
> >  
> >      options: {
> > -      cartocss: modisCartoCSS
> > +      sql: 'SELECT cartodb_id||\':\' ||\'%(tableName)s\' as cartodb_id, the_geom_webmercator,' +
> could inject templates like:
> 
> SELECT * FROM {table} WHERE iso = '{iso}';
> Then just do:
> 
> params = dict(table='forma', iso='bra')
> sql = template.format(**params)
> —
> Reply to this email directly or view it on GitHub.