marker-fill: ramp([column_name], colorbrewer(Greens));
| |
v |
column to calculate ramp |
v
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var DEFAULTS = { | |
endpoint: 'http://ramirocartodb.cartodb.com/api/v1/map', | |
sql: 'select * from ne_10m_populated_places_simple', | |
cartocss: [ | |
"#layer['mapnik::geometry_type'=1] {", | |
" marker-width: 7;", | |
" marker-fill: #EE4D5A;", | |
" marker-fill-opacity: 0.9;", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>CARTO VL: Switch the basemap</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link rel="shortcut icon" href="https://carto.com/favicon.ico"> |