summaryrefslogtreecommitdiff
path: root/platform/node/src/node_map.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2017-04-10 20:34:39 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-04-20 18:46:35 +0300
commit51ebb96b1da5217d6742ba05ea67a66c7787f0da (patch)
tree1871a944f7abd6bc35db4a8126e704f8981ef87d /platform/node/src/node_map.hpp
parentd767545f72e5a3e05d37e1d71b2c1f9a86522ca9 (diff)
downloadqtlocation-mapboxgl-51ebb96b1da5217d6742ba05ea67a66c7787f0da.tar.gz
[node] Add map.cancel()
Cancels an ongoing rendering.
Diffstat (limited to 'platform/node/src/node_map.hpp')
-rw-r--r--platform/node/src/node_map.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/node/src/node_map.hpp b/platform/node/src/node_map.hpp
index bfc0a7eab6..cdc8f1e51f 100644
--- a/platform/node/src/node_map.hpp
+++ b/platform/node/src/node_map.hpp
@@ -41,6 +41,7 @@ public:
static void Loaded(const Nan::FunctionCallbackInfo<v8::Value>&);
static void Render(const Nan::FunctionCallbackInfo<v8::Value>&);
static void Release(const Nan::FunctionCallbackInfo<v8::Value>&);
+ static void Cancel(const Nan::FunctionCallbackInfo<v8::Value>&);
static void AddClass(const Nan::FunctionCallbackInfo<v8::Value>&);
static void AddSource(const Nan::FunctionCallbackInfo<v8::Value>&);
static void AddLayer(const Nan::FunctionCallbackInfo<v8::Value>&);
@@ -61,6 +62,7 @@ public:
void renderFinished();
void release();
+ void cancel();
static RenderOptions ParseOptions(v8::Local<v8::Object>);