adapt to changes from

https://github.com/mapbox/mapbox-gl-native/pull/1065
This commit is contained in:
Mike Morris
2015-04-24 16:57:25 +02:00
parent ca897ce407
commit 840e22bf90
2 changed files with 2 additions and 6 deletions

View File

@@ -277,11 +277,9 @@ void NodeMap::renderFinished() {
NodeMap::NodeMap(v8::Handle<v8::Object> source_) :
view(sharedDisplay()),
fs(*ObjectWrap::Unwrap<NodeFileSource>(source_)),
map(view, fs),
map(view, fs, mbgl::MapMode::Still),
async(new uv_async_t) {
map.start(mbgl::Map::Mode::Still);
NanAssignPersistent(source, source_);
async->data = this;
@@ -294,8 +292,6 @@ NodeMap::NodeMap(v8::Handle<v8::Object> source_) :
}
NodeMap::~NodeMap() {
map.stop();
source.Dispose();
uv_close(reinterpret_cast<uv_handle_t *>(async), [] (uv_handle_t *handle) {