Skip to content

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.

Copy link
Owner Author

ramiroaznar commented Aug 14, 2017

viewer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.