-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Choropleth Map #843
Choropleth Map #843
Conversation
Signed-off-by: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
|
Awesome implementation 🚀 @kelvinkipruto Having looked at it locally, I have two observations:
|
@m453h This is because the children have not been assigned a count value, hence the default colour will be used. |
@kilemensi I took inspiration from CodeForAfrica/HURUmap-UI. Another suggestion would be for the user to provide a list of colours, then we can use them when calculating the densities. |
Signed-off-by: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
Like https://github.com/OpenUpSA/wazimap-ng-technical-gitbook/blob/master/profile-configuation.md#choropleth @kelvinkipruto ? |
Yes @kilemensi . |
Signed-off-by: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
Signed-off-by: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
@kilemensi @m453h Please test again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree @kilemensi. It won't hide some potions on the map
I tried to match the placement on Wazimap. Let's go with your suggestion above |
…rumap-choropleth-map
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
This PR introduces a choropleth map. Configuration of the map has to happen in the Django backend:
Example configuration:
The
map_type
is used to differentiate it from the current default map style.The
choropleth
is used to customize the colours of the map.The value to be used when determining the colour density is to be added to each of the
featured_locations
in the configuration:Fixes #812
Type of change
Screenshots
Checklist: