Skip to content

Instantly share code, notes, and snippets.

@ramiroaznar
Last active December 15, 2016 11:17
Show Gist options
  • Save ramiroaznar/984c237c2e999e876bfc3b72166db4bf to your computer and use it in GitHub Desktop.
Save ramiroaznar/984c237c2e999e876bfc3b72166db4bf to your computer and use it in GitHub Desktop.
building-fill + Turbo Carto
select
*
from
bcn_buildings
where
sobre_rasa > 0
ORDER BY
ST_YMax(the_geom) DESC
#layer {
line-width: 0.25;
line-color: #FFF;
line-opacity: 0.5;
building-fill: ramp([sobre_rasa], (#ffffcc, #c7e9b4, #7fcdbb, #41b6c4, #1d91c0, #225ea8, #0c2c84), jenks);
building-fill-opacity: 1;
building-height: [sobre_rasa]*2;
}
@ramiroaznar
Copy link
Author

buildings_bcn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment