adapt to changes from
https://github.com/mapbox/mapbox-gl-native/pull/1065
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user