Published
Edited
Jul 9, 2018
3 forks
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
html`<link href="https://libs.cartocdn.com/mapbox-gl/v0.45.0-carto1/mapbox-gl.css" rel="stylesheet" />`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
//Run this cell
source = {
const source = new carto.source.Dataset('ne_10m_populated_places_simple')
return source
}
Insert cell
Insert cell
viz = {
const viz = new carto.Viz(`
color: blue,
width: 10
`)
return viz
}
Insert cell
Insert cell
layer = {
const layer = new carto.Layer('layer', source, viz);
return layer
}
Insert cell
Insert cell
layer.addTo(map, 'watername_ocean')
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
sourceMethods = getInstanceMethodNames(source)
Insert cell
Insert cell
vizMethods = getInstanceMethodNames(viz)
Insert cell
Insert cell
layerMethods = getInstanceMethodNames(layer)
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more