@mapbox/tile-decorator

4.0.0 • Public • Published

tile-decorator Build Status

A JavaScript module for decoding Mapbox vector tiles, doing various modifications in JS and reencoding back. It can:

  • add new properties to a layer (updateLayerProperties)
  • filter out features that don't have specific properties (filterLayerByKeys)
  • select properties to keep on each feature (selectLayerKeys)
  • merge features with the same properties and type into one, and sort geometries within one feature by proximity for better compression (mergeLayer)
  • get all values of a specific property in a layer (getLayerValues)
  • rename layers (layer.name = 'foo')
  • rename keys (layer.keys[2] = 'kittens')

Readme

Keywords

none

Package Sidebar

Install

npm i @mapbox/tile-decorator

Weekly Downloads

53

Version

4.0.0

License

ISC

Last publish

Collaborators

  • mbx-npm-ci-production
  • mbx-npm-ci-staging
  • mbx-npm-advanced-actions-production
  • mbx-npm-advanced-actions-staging
  • mbx-npm-09-production
  • mbx-npm-08-production
  • mbx-npm-07-production
  • mbx-npm-06-production
  • mbx-npm-05-production
  • mbx-npm-04-production
  • mbx-npm-03-production
  • mbx-npm-02-production
  • mbx-npm-01-production
  • mbx-npm-02-staging
  • mapbox-npm-01
  • mapbox-npm-02
  • mapbox-npm-07
  • mapbox-npm-03
  • mapbox-npm-04
  • mapbox-npm-09
  • mapbox-npm-05
  • mapbox-npm-06
  • mapbox-npm-08
  • mapbox-npm-advanced-actions
  • mapbox-npm-ci
  • mapbox-npm
  • mapbox-admin
  • mapbox-machine-user