summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json2
-rw-r--r--platform/node/src/node_map.cpp5
-rw-r--r--platform/node/test/suite_implementation.js3
3 files changed, 8 insertions, 2 deletions
diff --git a/package.json b/package.json
index 08e666dec6..e1a8229fd1 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
"express": "^4.11.1",
"mapbox-gl-shaders": "mapbox/mapbox-gl-shaders#59e998295d548f208ee3ec10cdd21ff2630e2079",
"mapbox-gl-style-spec": "mapbox/mapbox-gl-style-spec#194fc55b6a7dd54c1e2cf2dd9048fbb5e836716d",
- "mapbox-gl-test-suite": "mapbox/mapbox-gl-test-suite#3a6baea2f364410e6d0873b71babfe0484870a72",
+ "mapbox-gl-test-suite": "mapbox/mapbox-gl-test-suite#85d2319dd5ad75da1f39b8cd9e08f1e51ede58cb",
"node-gyp": "^3.3.1",
"request": "^2.72.0",
"tape": "^4.5.1"
diff --git a/platform/node/src/node_map.cpp b/platform/node/src/node_map.cpp
index e629bb2149..b4ea77000b 100644
--- a/platform/node/src/node_map.cpp
+++ b/platform/node/src/node_map.cpp
@@ -285,6 +285,11 @@ NodeMap::RenderOptions NodeMap::ParseOptions(v8::Local<v8::Object> obj) {
options.debugOptions = options.debugOptions | mbgl::MapDebugOptions::Collision;
}
}
+ if (Nan::Has(debug, Nan::New("overdraw").ToLocalChecked()).FromJust()) {
+ if (Nan::Get(debug, Nan::New("overdraw").ToLocalChecked()).ToLocalChecked()->BooleanValue()) {
+ options.debugOptions = mbgl::MapDebugOptions::Overdraw;
+ }
+ }
}
return options;
diff --git a/platform/node/test/suite_implementation.js b/platform/node/test/suite_implementation.js
index 4369c81ffc..05c2da0a6d 100644
--- a/platform/node/test/suite_implementation.js
+++ b/platform/node/test/suite_implementation.js
@@ -36,7 +36,8 @@ module.exports = function (style, options, callback) {
options.pitch = style.pitch;
options.debug = {
tileBorders: options.debug,
- collision: options.collisionDebug
+ collision: options.collisionDebug,
+ overdraw: options.showOverdrawInspector,
};
map.load(style);