- Add language code "all" #136
- Add language code "local" #133
- Fixes a bug where
worldview
value in a non-localized tile can be truncated #133
- Fixes a bug in
localize
where the class and worldview key prefixes were true for soft matches, which unintentionally filters out features whereclass = class*
. Now the logic uses an exact match soclass != classes
. #134
- Fixes a bug in
localize
function that throws an error when languages or worldviews is an empty array #131
- Updates the
localize
function to return features with either all properties localized or features with no properties localized; nothing in between #129.
- Updates the
localize
function to translate_mbx_class
toclass
when_mbx_worldview
is provided along with matching worldview filtering
BREAKING Module now returns an object with two functions #127
const { composite, localize } = require('@mapbox/vtcomposite');
- Adds a new function
localize
which finds and removes unused translations and worldviews from features. - Update mvt-fixtures@3.9.0
- Update tape@4.15.1
- Move tutorial from README.md into TUTORIAL.md
- Move benchmarking from README.md into CONTRIBUTING.md
- Build binaries with node v16 -> works at runtime with node v8 -> v16 (and likely others)
- Remove
-D_GLIBCXX_USE_CXX11_ABI=0
build flag - Upgrade dependencies #119
node-addon-api
^4.3.0@mapbox/node-pre-gyp
^1.0.8@mapbox/cloudfriend
^5.1.0@mapbox/mvt-fixtures
^3.7.0@mapbox/sphericalmercator
^1.2.0@mapbox/tilebelt
^1.0.2aws-sdk
^2.1074.0bytes
^3.1.2d3-queue
^3.0.mapnik
^4.5.9pbf
^3.2.1tape
^4.5.2
- Return empty
Buffer
if a composite operation results in a empty tile, even ifcompress: true
is set. This can happen if a tile is overzoomed and results in no layers, but the resulting buffer was gzipped, which leads to a non-empty gzipped buffer with no data, specifically:<Buffer 1f 8b 08 00 00 00 00 00 00 13 03 00 00 00 00 00 00 00 00 00>
. The result of this change is that users should check the responsebuffer.length > 0
if they need to handle empty tiles separately from non-empty tiles.
- Bugfix for v0.5.0 to fix an issue where compositing multiple tiles with specific layers included would drop same-named layers #114
- Add
buffers[n].layers
array to allow keeping of specific layers during compositing #113 - Remove copied documentation from node-cpp-skel #113
- Upgrade to use
@mapbox/node-pre-gyp
>= v1.0.0 #108 - Upgrade to use
node-addon-api
>= v3.1.0 #108 - Upgrade to use
node-mapnik
>= 4.5.6 #108 - Check
tile_buffer
is not empty before accessing internal data info
- Now supporting node v12/v14 by switching to "universal" binaries that work across all major node major versions that support N-API. Binaries were built using node v12, but work at runtime with node v8 -> v14 (and likely others)
- Upgraded dependencies including node-addon-api, node-pre-gyp, boost, geometry.hpp, protozero, variant and vtzero
- Binaries are now compiled with clang 10.x
- Revert polygon decoding PR that snuck into 0.2.0 release #91
- Remove
valid=false
, which fixes a linestring clipping bug #98 - Polygon clipping fix #101
- Upgrade to use N-API and remove nan/node-pre-gyp deps
- Fix issue with comparison operators in feature builder 942a560
- Upgrade nan and node-pre-gyp
- Reduced the package size
- Upgraded to latest @mapbox/mvt-fixtures and @mapbox/mason-js
- Add memory stats option to bench tests
- Add doc note about remote vs local coverage using
LCOV
- Add liftoff script, setup docs, and more contributing details per mapbox/node-cpp-skel#87
- Add sanitzer flag doc
- Add sanitizer script and enable leak sanitizer
- Add code of conduct
- Add CC0 license
- Point to cpp glossary
- Update compiler flags per best practices per mapbox/cpp#37
- Clang tidy updates
- Add bench scripts for async examples
- Add comments about "new" allocation
- Add clang-format
- Use Nan's safer and high performance
Nan::Utf8String
when accepting string args per mapbox/node-cpp-skel#55
- Reorganize documentation
-
Add build docs
-
It begins