Created
August 14, 2017 12:43
-
-
Save ramiroaznar/67ffca98607307160550acc267f3b239 to your computer and use it in GitHub Desktop.
How to create a proportional symbol map with sqrt
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
select | |
*, | |
sqrt(pop_max)*50/5972.93897507751 as sqrt_pop | |
from | |
populated_places | |
where | |
pop_max > 0 | |
order by pop_max desc |
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
#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; | |
} |
Author
ramiroaznar
commented
Aug 14, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment