Assigning color-gradient to value-sectrum an different shape-polygons?
Hi,
I would like to create a map of different countries and each of
these countries is supposed to represent a value. Let's say from 10
to 100. Now I want to assign the color dark-blue to the
polygon/country that represents the value 10 and white to the
country that represents the value 100.
All countries with values in between 10 and 100 I would like
Tilemill to give a color automatically according to the value.
Is this possible?
best regards
desputin
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by AJ on 30 Sep, 2011 02:56 PM
Hi,
Currently there's no built-in way to do color interpolation like this. It is partly a limitation of the underlying renderer which requires discrete values for feature filters.
You could write a small script that iterates over all of the values between 10 and 100 and generates discrete rules for each. Color gradients could be made by gradually adjusting arguments to carto color functions, eg this pattern will work its way from dark blue to light green:
Will White closed this discussion on 24 Oct, 2011 03:46 PM.