From 51ebb96b1da5217d6742ba05ea67a66c7787f0da Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Mon, 10 Apr 2017 20:34:39 +0300 Subject: [node] Add map.cancel() Cancels an ongoing rendering. --- platform/node/src/node_map.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'platform/node/src/node_map.hpp') 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&); static void Render(const Nan::FunctionCallbackInfo&); static void Release(const Nan::FunctionCallbackInfo&); + static void Cancel(const Nan::FunctionCallbackInfo&); static void AddClass(const Nan::FunctionCallbackInfo&); static void AddSource(const Nan::FunctionCallbackInfo&); static void AddLayer(const Nan::FunctionCallbackInfo&); @@ -61,6 +62,7 @@ public: void renderFinished(); void release(); + void cancel(); static RenderOptions ParseOptions(v8::Local); -- cgit v1.2.1