[core] Use mbgl::style::conversion in node bindings

This commit is contained in:
John Firebaugh
2016-06-19 20:05:05 -07:00
parent a18d6dda5d
commit 8a9ee26b0e
7 changed files with 117 additions and 127 deletions

View File

@@ -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();