# @carto/carto-vl

> CARTO Vector library

Latest version **1.4.6** (published 2020-04-30) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @carto/carto-vl
pnpm add @carto/carto-vl
yarn add @carto/carto-vl
bun add @carto/carto-vl
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.6 |
| Published | 2020-04-30 |
| First published | 2018-04-12 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 5.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 129 |
| Author | CARTO |
| Maintainers | albertoag, alejandraarri, algunenano, alonsogarciapablo, cartodb, csubira, dgaubert, elenatorro, jesusbotella, neokore, oleurud, rtorre, sconde, victor.velarde |

## Links

- npm: https://www.npmjs.com/package/@carto/carto-vl
- Repository: https://github.com/CartoDB/carto-vl
- npm.io page: https://npm.io/package/@carto/carto-vl

## Dependencies (10)

- [pbf](https://npm.io/package/pbf.md) ^3.1.0
- [jsep](https://npm.io/package/jsep.md) CartoDB/jsep#additional-char-ids-packaged-update-1
- [mitt](https://npm.io/package/mitt.md) ^1.1.3
- [earcut](https://npm.io/package/earcut.md) ^2.1.2
- [lineclip](https://npm.io/package/lineclip.md) ^1.1.5
- [gl-matrix](https://npm.io/package/gl-matrix.md) ^2.8.1
- [lru-cache](https://npm.io/package/lru-cache.md) ^4.1.1
- [cartocolor](https://npm.io/package/cartocolor.md) ^4.0.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0
- [@mapbox/vector-tile](https://npm.io/package/@mapbox/vector-tile.md) ^1.3.0

## Recent versions

- 1.4.6 (latest) — 2020-04-30
- 1.4.6-rc.0 (prerelease) — 2020-04-30
- 1.4.5 — 2020-02-24
- 1.4.4 — 2020-01-02
- 1.4.3 — 2019-12-26
- 1.4.2 — 2019-10-25
- 1.4.1 — 2019-07-23
- 1.4.0 — 2019-07-16
- 1.3.1 — 2019-06-17
- 1.3.0 — 2019-06-03
- 1.2.6 — 2019-05-27
- 1.2.5 — 2019-04-25
- 1.2.4 — 2019-03-29
- 1.2.3 — 2019-03-21
- 1.1.1 — 2019-01-16
- … 18 more at https://npm.io/package/@carto/carto-vl/versions

## README

# **CARTO VL**

[![CircleCI](https://circleci.com/gh/CartoDB/carto-vl.svg?style=svg)](https://circleci.com/gh/CartoDB/carto-vl)

**CARTO VL** is an open source JavaScript library for developers to create vector-based visualizations inside Location Intelligence applications.

## Features

- Maps are rendered client-side, instead of being rendered on the server. As a result, we provide faster load times and overall app performance by eliminating potential server problems.
- Built-in smart point aggregations and geometry simplifications making it easier than ever to visualize and interact with larger datasets. CARTO VL does this in a dynamic and automatic way, meaning you don’t need to rerun costly and time-expensive pre-processing steps over the geometry.
- Ability to modify geometries directly in the browser. This is a powerful solution for animated visualizations of points, lines, and polygons.
- Full control over everything happening on the map and can provide rich reactions to user interactions.
- New and intuitive map styling language that is designed specifically for multi-scale, thematic cartography. With just a few lines, complex visualizations can be created. Non-programmers can create their first map easily, while programmers will still be able to exploit the full potential of the CARTO ecosystem.

![](https://carto.com/blog/img/posts/2018/2018-05-21-carto-vl-vector-library/interpolated-lines.gif)

![](https://carto.com/blog/img/posts/2018/2018-05-21-carto-vl-vector-library/interactivity.gif)

![](https://carto.com/blog/img/posts/2018/2018-05-21-carto-vl-vector-library/polygon-animation.gif)

![](https://carto.com/blog/img/posts/2018/2018-05-21-carto-vl-vector-library/line-animation.gif)

## Example

Run this

```
width: 8
color: ramp(buckets($dn, [80, 100, 140]), prism)
strokeWidth: 0
filter: $dn > 60
```

To see

![](https://raw.githubusercontent.com/CartoDB/carto-vl/master/docs/images/map-example.png)

## I want to make a map

To start, you will need a basic HTML file structure to display your map in a browser. We recommend you to follow this [Getting started](https://carto.com/developers/carto-vl/guides/getting-started/) guide to create a basic map. Then, you can get familiarized with the rest of the library following this link: https://carto.com/developers/carto-vl/guides/introduction/, which includes a list with more specific and advanced guides.

Also, take a look at our [examples](https://carto.com/developers/carto-vl/examples/) to understand the possibilities and inspire you!

An alternative way, if you already have a build system in your project (*webpack*, *rollup*...), is to use our [npm package](https://www.npmjs.com/package/@carto/carto-vl). You can install it with:
```
npm i @carto/carto-vl
```
Take a look at an example made with webpack [here](https://github.com/CartoDB/carto-vl-webpack-demo).

Happy mapping!

## I want to contribute to CARTO VL

That's great! We are more than happy to receive your contributions to the code and its documentation.

### Install

To clone and run this library, you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line:

```bash
# Clone this repository
$ git clone https://github.com/CartoDB/carto-vl

# Go into the repository
$ cd carto-vl

# Install dependencies (node >=6.11.5 is required)
$ yarn

# Bundle the library
$ yarn build
```

For more information, please read [DEVELOPERS.md](https://github.com/CartoDB/carto-vl/blob/master/DEVELOPERS.md).

### Start developing

Get started using CARTO VL's documentation at [CARTO's Developer Center](https://carto.com/developers/carto-vl/).

 - [Guides](https://carto.com/developers/carto-vl/guides/): get to know the library as a user!
 - [Full reference API](https://carto.com/developers/carto-vl/reference/): for specific methods, arguments, and sample code.

### Play with the examples

You can find all the [examples](https://carto.com/developers/carto-vl/examples/) on the documentation in the `examples` folder. There are also some developer focused examples on the `debug` folder.

Run the following commands to access them locally:

```bash
# Bundle the library with a watch dog
$ yarn build:watch

# Run a server
$ yarn serve
```

### Contributing

Lastly, check out [CONTRIBUTING.md](https://github.com/CartoDB/carto-vl/blob/master/CONTRIBUTING.md) for more information about submitting pull requests to us. You will need to sign a Contributor License Agreement (CLA) before making a submission. [Learn more here.](https://carto.com/contributions/)

## Feedback

We encourage you to start playing with CARTO VL and to please [send us feedback](https://github.com/CartoDB/carto-vl/issues) so we can create an even better library, suited to your needs.

## Works with

CARTO VL is a geo-spatial data visualization library. However it doesn't include basemap rendering capabilities. Therefore, CARTO VL needs to be used with [Mapbox GL](https://github.com/mapbox/mapbox-gl-js) as a basemap provider. You'll need to use Mapbox GL (>=v.0.50.0) for controlling the center and zoom level of your map too. The integration is seamless, check the examples!

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/CartoDB/carto-vl/tags).

## Authors

- [David Manzanares](https://github.com/davidmanzanares)
- [Jesús Arroyo Torrens](https://github.com/Jesus89)
- [Iago Lastra](https://github.com/IagoLast)
- [Javier Goizueta](https://github.com/jgoizueta)
- [Elena Torro](https://github.com/elenatorro)
- [Raúl Ochoa](https://github.com/rochoa)
- [Mamata Akella](https://github.com/makella)
- [Víctor Velarde](https://github.com/VictorVelarde)
- [Ariana Escobar](https://github.com/arianaescobar)
- [Jesús Botella](https://github.com/jesusbotella)

## License

This project is licensed under the BSD 3-clause "New" or "Revised" License - see the [LICENSE](LICENSE) file for details.

## BrowserStack

[BrowserStack](https://www.browserstack.com/) supports this OpenSource project, providing us with valuable tools to test CARTO VL over different systems and browsers configurations.

<img src="https://raw.githubusercontent.com/CartoDB/carto-vl/master/test/browserstack-logo.png" width="200" alt="BrowserStack Logo">

---
_Source: https://npm.io/package/@carto/carto-vl · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
