Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Simple demo about how to use CARTO VL with webpack

Notifications You must be signed in to change notification settings

CartoDB/carto-vl-webpack-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using CARTO VL

Working example

If you just want to try with this already configured webpack project just build the source and open the index.html file with:

yarn
yarn build
open index.html

With npm and webpack

If you want to replicate this configuration in another project, these are the steps we have followed here:

Install CARTO VL

(>= v1.0.0)

yarn add @carto/carto-vl

Install mapbox-gl

(>= v0.50.0)

yarn add mapbox-gl

Note: Check the installed version is the same as the one referenced at index.html stylesheet link for the .css

Use it in your javascript code

const mapboxgl = require('mapbox-gl');
const carto = require('@carto/carto-vl');

About

Simple demo about how to use CARTO VL with webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published