August 2014
Intermediate to advanced
180 pages
3h 41m
English
In this example, you will create a choropleth map that displays both the total area and the total area divided by the total land area. The following steps will walk you through this:
function densitycolor(x) {
return x > 0.15 ? '#990000' :
x> 0.12 ? '#d7301f' :
x> 0.06 ? '#ef6548' :
x> 0.03 ? '#fc8d59' :
x> 0.01 ? '#fdbb84' :
x> 0.005 ? '#fdd49e' :
x> 0 ? '#fee8c8' :'#fff7ec';
}water/land:function densityStyle(feature) { return ...Read now
Unlock full access