Open evoverbeeke opened 9 years ago
That should be possible -- I'll take a look later today!
The chloropleth issue is almost resolved @acabunoc (if you click on the world button and then on the "co" or "cu" buttons you can see the result). One last thing I want to do and can't resolve is that I want to create the style as a variable and separate it from the layer variable. Whenever I try to this it doesn't work anymore. I think it has to be some small syntax thing that I'm missing. world conflict data: https://github.com/evoverbeeke/beniatlas-repository/blob/master/javascript/beniatlas.js#L473 world culture data: https://github.com/evoverbeeke/beniatlas-repository/blob/master/javascript/beniatlas.js#L550 Example of how I would like to separate the style function as a variable and then assign it to the layer: https://github.com/evoverbeeke/beniatlas-repository/blob/master/javascript/beniatlas.js#L470
@acabunoc I am trying to get the "peace_test" value from the world.geojson file and then style it depending on the value (i.e. if between 1 and 1.5 would be a certain coloured fill)
https://github.com/evoverbeeke/beniatlas-respository/blob/master/javascript/beniatlas.js#L789