diff --git a/README.md b/README.md index 738a30930..dc1e3c4ba 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ By default, installs binaries. On these platforms no external dependencies are n Just run: ``` -npm install mbgl +npm install mapbox-gl-native ``` However, other platforms will fall back to a source compile with `make build`. To compile this module, make sure all submodules are initialized. @@ -101,7 +101,7 @@ This is a very barebones implementation and you'll probably want a better implem A sample implementation that uses [`request`](https://github.com/request/request) to query data from HTTP: ```js -var mbgl = require('./'); +var mbgl = require('mapbox-gl-native'); var request = require('request'); var fileSource = new mbgl.FileSource(); diff --git a/binding.gyp b/binding.gyp index 263249bc9..05e9347c3 100644 --- a/binding.gyp +++ b/binding.gyp @@ -10,7 +10,7 @@ 'include_dirs': [ " #include @@ -11,7 +10,6 @@ namespace node_mbgl { - class NodeFileSource; class NodeMap : public node::ObjectWrap { @@ -55,6 +53,4 @@ private: uv_async_t *async; }; -} // end ns node_mbgl - -#endif +} diff --git a/src/mbgl.cpp b/src/node_mapbox_gl_native.cpp similarity index 96% rename from src/mbgl.cpp rename to src/node_mapbox_gl_native.cpp index f113fcd5a..435c446a6 100644 --- a/src/mbgl.cpp +++ b/src/node_mapbox_gl_native.cpp @@ -34,4 +34,4 @@ void RegisterModule(v8::Handle exports) { mbgl::Log::Set(exports); } -NODE_MODULE(mbgl, RegisterModule) +NODE_MODULE(mapbox_gl_native, RegisterModule) diff --git a/travis/travis-resources.template b/travis/travis-resources.template index ea7f12585..3ba9b9625 100644 --- a/travis/travis-resources.template +++ b/travis/travis-resources.template @@ -20,7 +20,7 @@ "s3:PutObjectAcl" ], "Resource": [ - "arn:aws:s3:::mapbox-node-binary/mbgl/*" + "arn:aws:s3:::mapbox-node-binary/mapbox-gl-native/*" ], "Effect": "Allow" }