# tile-decorator **Repository Path**: mirrors_mapbox/tile-decorator ## Basic Information - **Project Name**: tile-decorator - **Description**: Modify vector tiles in JavaScript and reencode back - **Primary Language**: Unknown - **License**: ISC - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-01-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## tile-decorator [![Build Status](https://travis-ci.org/mapbox/tile-decorator.svg?branch=master)](https://travis-ci.org/mapbox/tile-decorator) A JavaScript module for decoding [Mapbox vector tiles](https://github.com/mapbox/vector-tile-spec), 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'`)