Skip to content

Commit

Permalink
Merge branch 'master' into 679-mvt-pass-variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafa de la Torre committed Nov 2, 2017
2 parents 569fbee + 68237cd commit 24160d9
Show file tree
Hide file tree
Showing 25 changed files with 431 additions and 476 deletions.
2 changes: 1 addition & 1 deletion binding.gyp
Expand Up @@ -100,7 +100,7 @@
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'MACOSX_DEPLOYMENT_TARGET':'10.8',
'CLANG_CXX_LIBRARY': 'libc++',
'CLANG_CXX_LANGUAGE_STANDARD':'c++11',
'CLANG_CXX_LANGUAGE_STANDARD':'c++14',
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0'
}
},
Expand Down
2 changes: 1 addition & 1 deletion common.gypi
Expand Up @@ -5,7 +5,7 @@
'msbuild_toolset':'v140',
'msvs_disabled_warnings': [ 4503, 4068,4244,4005,4506,4345,4804,4805,4661 ],
'cflags_cc' : [
'-std=c++11',
'-std=c++14',
],
'cflags_cc!': ['-std=gnu++0x','-fno-rtti', '-fno-exceptions'],
'configurations': {
Expand Down
2 changes: 1 addition & 1 deletion deps/geometry
2 changes: 1 addition & 1 deletion deps/wagyu
4 changes: 2 additions & 2 deletions install_mason.sh
Expand Up @@ -12,7 +12,7 @@ ICU_VERSION="57.1"

if [ ! -f ./mason/mason.sh ]; then
mkdir -p ./mason
curl -sSfL https://github.com/mapbox/mason/archive/e319a75b05838ca99bce1745f9d6c2fde1139b16.tar.gz | tar --gunzip --extract --strip-components=1 --exclude="*md" --exclude="test*" --directory=./mason
curl -sSfL https://github.com/mapbox/mason/archive/841eedd6e3ed2b53e16e630fac8918257b6a5fd7.tar.gz | tar --gunzip --extract --strip-components=1 --exclude="*md" --exclude="test*" --directory=./mason
fi

if [ ! -f ./mason_packages/.link/bin/mapnik-config ]; then
Expand All @@ -38,5 +38,5 @@ if [ ! -f ./mason_packages/.link/bin/mapnik-config ]; then
# NOTE: sync this version with the `mapnik_version` in package.json (which is used for windows builds)
# In the future we could pull from that version automatically if mason were to support knowing the right dep
# versions to install automatically. Until then there is not much point since the deps are still hardcoded here.
install mapnik 249d6cc
install mapnik 304cce8ef
fi
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -4,8 +4,8 @@
"url": "http://github.com/mapnik/node-mapnik",
"homepage": "http://mapnik.org",
"author": "Dane Springmeyer <dane@mapbox.com> (mapnik.org)",
"version": "3.6.2-dev-249d6cc",
"mapnik_version":"249d6cc",
"version": "3.7.0-dev-304cce8ef",
"mapnik_version": "304cce8ef",
"main": "./lib/mapnik.js",
"binary": {
"module_name": "mapnik",
Expand Down Expand Up @@ -36,16 +36,16 @@
],
"license": "BSD-3-Clause",
"dependencies": {
"mapnik-vector-tile": "1.5.0",
"mapnik-vector-tile": "https://github.com/mapbox/mapnik-vector-tile/tarball/master",
"protozero": "1.5.1",
"nan": "~2.5.0",
"node-pre-gyp": "~0.6.30"
},
"bundledDependencies": [
"node-pre-gyp"
"node-pre-gyp"
],
"bin": {
"mapnik-index.js": "./bin/mapnik-index.js",
"mapnik-index.js": "./bin/mapnik-index.js",
"mapnik-inspect.js": "./bin/mapnik-inspect.js",
"mapnik-render.js": "./bin/mapnik-render.js",
"mapnik-shapeindex.js": "./bin/mapnik-shapeindex.js"
Expand Down
2 changes: 1 addition & 1 deletion src/mapnik_color.cpp
Expand Up @@ -183,7 +183,7 @@ v8::Local<v8::Value> Color::NewInstance(mapnik::color const& color) {
Color* c = new Color();
c->this_ = std::make_shared<mapnik::color>(color);
v8::Local<v8::Value> ext = Nan::New<v8::External>(c);
Nan::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
v8::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
if (maybe_local.IsEmpty()) Nan::ThrowError("Could not create new Color instance");
return scope.Escape(maybe_local.ToLocalChecked());
}
Expand Down
4 changes: 2 additions & 2 deletions src/mapnik_datasource.cpp
Expand Up @@ -5,7 +5,7 @@

// mapnik
#include <mapnik/attribute_descriptor.hpp> // for attribute_descriptor
#include <mapnik/box2d.hpp> // for box2d
#include <mapnik/geometry/box2d.hpp> // for box2d
#include <mapnik/datasource.hpp> // for datasource, datasource_ptr, etc
#include <mapnik/datasource_cache.hpp> // for datasource_cache
#include <mapnik/feature_layer_desc.hpp> // for layer_descriptor
Expand Down Expand Up @@ -147,7 +147,7 @@ v8::Local<v8::Value> Datasource::NewInstance(mapnik::datasource_ptr ds_ptr) {
Datasource* d = new Datasource();
d->datasource_ = ds_ptr;
v8::Local<v8::Value> ext = Nan::New<v8::External>(d);
Nan::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
v8::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
if (maybe_local.IsEmpty()) Nan::ThrowError("Could not create new Datasource instance");
return scope.Escape(maybe_local.ToLocalChecked());
}
Expand Down
6 changes: 3 additions & 3 deletions src/mapnik_feature.cpp
Expand Up @@ -7,7 +7,7 @@
#include <mapnik/unicode.hpp>
#include <mapnik/feature_factory.hpp>
#include <mapnik/json/feature_parser.hpp>
#include <mapnik/value_types.hpp>
#include <mapnik/value/types.hpp>
#include <mapnik/util/feature_to_geojson.hpp>

Nan::Persistent<v8::FunctionTemplate> Feature::constructor;
Expand Down Expand Up @@ -114,7 +114,7 @@ NAN_METHOD(Feature::fromJSON)
}
Feature* feat = new Feature(f);
v8::Local<v8::Value> ext = Nan::New<v8::External>(feat);
Nan::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
v8::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
if (maybe_local.IsEmpty()) Nan::ThrowError("Could not create new Feature instance");
else info.GetReturnValue().Set(maybe_local.ToLocalChecked());
}
Expand All @@ -134,7 +134,7 @@ v8::Local<v8::Value> Feature::NewInstance(mapnik::feature_ptr f_ptr)
Nan::EscapableHandleScope scope;
Feature* f = new Feature(f_ptr);
v8::Local<v8::Value> ext = Nan::New<v8::External>(f);
Nan::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
v8::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
if (maybe_local.IsEmpty()) Nan::ThrowError("Could not create new Feature instance");
return scope.Escape(maybe_local.ToLocalChecked());
}
Expand Down
2 changes: 1 addition & 1 deletion src/mapnik_featureset.cpp
Expand Up @@ -98,7 +98,7 @@ v8::Local<v8::Value> Featureset::NewInstance(mapnik::featureset_ptr fsp)
Featureset* fs = new Featureset();
fs->this_ = fsp;
v8::Local<v8::Value> ext = Nan::New<v8::External>(fs);
Nan::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
v8::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
if (maybe_local.IsEmpty()) Nan::ThrowError("Could not create new Featureset instance");
return scope.Escape(maybe_local.ToLocalChecked());
}
4 changes: 2 additions & 2 deletions src/mapnik_geometry.cpp
Expand Up @@ -3,7 +3,7 @@
#include "mapnik_projection.hpp"

#include <mapnik/datasource.hpp>
#include <mapnik/geometry_reprojection.hpp>
#include <mapnik/geometry/reprojection.hpp>
#include <mapnik/util/geometry_to_geojson.hpp>
#include <mapnik/util/geometry_to_wkt.hpp>
#include <mapnik/util/geometry_to_wkb.hpp>
Expand Down Expand Up @@ -88,7 +88,7 @@ v8::Local<v8::Value> Geometry::NewInstance(mapnik::feature_ptr f) {
Nan::EscapableHandleScope scope;
Geometry* g = new Geometry(f);
v8::Local<v8::Value> ext = Nan::New<v8::External>(g);
Nan::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
v8::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
if (maybe_local.IsEmpty()) Nan::ThrowError("Could not create new Geometry instance");
return scope.Escape(maybe_local.ToLocalChecked());
}
Expand Down
2 changes: 1 addition & 1 deletion src/mapnik_grid_view.cpp
Expand Up @@ -83,7 +83,7 @@ v8::Local<v8::Value> GridView::NewInstance(Grid * JSGrid,
GridView* gv = new GridView(JSGrid);
gv->this_ = std::make_shared<mapnik::grid_view>(JSGrid->get()->get_view(x,y,w,h));
v8::Local<v8::Value> ext = Nan::New<v8::External>(gv);
Nan::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
v8::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
if (maybe_local.IsEmpty()) Nan::ThrowError("Could not create new GridView instance");
return scope.Escape(maybe_local.ToLocalChecked());
}
Expand Down

0 comments on commit 24160d9

Please sign in to comment.