Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to create a proportional symbol map with sqrt
select
*,
sqrt(pop_max)*50/5972.93897507751 as sqrt_pop
from
populated_places
where
pop_max > 0
order by pop_max desc
#layer {
marker-fill: ramp([sqrt_pop], cartocolor(Sunset), jenks);
marker-width: [sqrt_pop];
marker-allow-overlap: true;
marker-opacity: 0.7;
marker-line-width: 0;
marker-comp-op: multiply;
}
@ramiroaznar

This comment has been minimized.

Show comment
Hide comment
Owner

ramiroaznar commented Aug 14, 2017

viewer

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