Permalink
Browse files

updated the range of zooms in forma

  • Loading branch information...
andrewxhill committed Jul 13, 2012
1 parent 7c2ddde commit 69b98f5d5d03bc5fed7722f518afe2f72c660e15
Showing with 3 additions and 3 deletions.
  1. +2 −2 app/assets/javascripts/gfw.js
  2. +1 −1 app/assets/javascripts/grid_layer.js
@@ -43,7 +43,7 @@ GFW.modules.app = function(gfw) {
this._precision = 2;
this._layers = [];
this._cloudfront_url = "dyynnn89u7nkm.cloudfront.net";
- this._global_version = 3;
+ this._global_version = 4;
gfw.log.enabled = options ? options.logging: false;
@@ -52,7 +52,7 @@ GFW.modules.app = function(gfw) {
this.queries = {};
// we can stop loading the blank (see limit=0 below) tileset here now that we are loading the animation. see todo on line 347
- this.queries.semi_monthly = "SELECT cartodb_id,alerts,z,the_geom_webmercator FROM gfw2_forma WHERE z=CASE WHEN 8 < {Z} THEN 16 ELSE {Z}+8 END limit 0";
+ this.queries.semi_monthly = "SELECT cartodb_id,alerts,z,the_geom_webmercator FROM gfw2_forma WHERE z=CASE WHEN 8 < {Z} THEN 17 ELSE {Z}+8 END limit 0";
this.queries.annual = "SELECT cartodb_id,alerts,z,the_geom_webmercator FROM gfw2_hansen WHERE z=CASE WHEN 9 < {Z} THEN 17 ELSE {Z}+8 END";
this.queries.brazilian_amazon = "SELECT CASE WHEN {Z}<12 THEN st_buffer(the_geom_webmercator,(16-{Z})^3.8) ELSE the_geom_webmercator END the_geom_webmercator, stage, cartodb_id FROM gfw2_imazon WHERE year = 2012";
@@ -211,7 +211,7 @@ TimePlayer.prototype.get_time_data = function(tile, coord, zoom) {
// for current zoom
// zoom + 8 is get because a tile in "zoom" zoom level is a pixel in "zoom + 8"
// level. Remember, it is a quadtree, 1^8 = 256 and tile size is 256px
- var pixel_zoom = Math.min(zoom + 8, 16);
+ var pixel_zoom = Math.min(zoom + 8, 17);
//pixel_zoom = zoom + 8;
sql += " z = {0} ".format(pixel_zoom);

0 comments on commit 69b98f5

Please sign in to comment.