From 050d33ff140aaf9b1b4975f0ac0bbc650dd04a4a Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Thu, 2 Jun 2016 20:39:15 +0200 Subject: [PATCH] Use the_geom_webmercator; srid=3857 for the bounding box filter --- lib/cartodb/backends/dataview.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cartodb/backends/dataview.js b/lib/cartodb/backends/dataview.js index f6b78acd..d8a62d24 100644 --- a/lib/cartodb/backends/dataview.js +++ b/lib/cartodb/backends/dataview.js @@ -137,14 +137,14 @@ DataviewBackend.prototype.getDataview = function (mapConfigProvider, user, param } if (params.bbox) { - var bboxFilter = new BBoxFilter({column: 'the_geom', srid: 4326}, {bbox: params.bbox}); + var bboxFilter = new BBoxFilter({column: 'the_geom_webmercator', srid: 3857}, {bbox: params.bbox}); query = bboxFilter.sql(query); if ( queryRewriteData ) { var bbox_filter_definition = { type: 'bbox', options: { - column: 'the_geom', - srid: 4326, + column: 'the_geom_webmercator', + srid: 3857 }, params: { bbox: params.bbox