[core] Use mbgl::style::conversion in node bindings
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "node_style.hpp"
|
||||
|
||||
#include <mbgl/map/map.hpp>
|
||||
#include <mbgl/storage/file_source.hpp>
|
||||
#include <mbgl/platform/default/headless_view.hpp>
|
||||
@@ -10,8 +12,6 @@
|
||||
#include <nan.h>
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#include <queue>
|
||||
|
||||
namespace node_mbgl {
|
||||
|
||||
class NodeMap : public Nan::ObjectWrap,
|
||||
@@ -28,10 +28,13 @@ public:
|
||||
static NAN_METHOD(Render);
|
||||
static NAN_METHOD(Release);
|
||||
static NAN_METHOD(AddClass);
|
||||
static NAN_METHOD(SetLayoutProperty);
|
||||
static NAN_METHOD(SetPaintProperty);
|
||||
static NAN_METHOD(DumpDebugLogs);
|
||||
static NAN_METHOD(QueryRenderedFeatures);
|
||||
|
||||
static void setProperty(const Nan::FunctionCallbackInfo<v8::Value>&, const PropertySetters&);
|
||||
|
||||
void startRender(RenderOptions options);
|
||||
void renderFinished();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user