Open caotrido opened 8 years ago
Great change, thank you! It would be awesome to see it merged on FSInteractiveMap.
Hello, i need to show the name of the province on the map in China, what do i need to do?
@ArthurGuibert can this PR being merged? Or at least have another PR with those lines?
float s = ([value floatValue] - min) / ( ((max-min) == 0 ? 1 : (max-min)) );
float segmentLength = 1.0 / ( (([colors count] - 1) == 0 ? 1 : ([colors count] - 1)) );
Happy to do it and help. Without this fix it crashes.
Made a change to prevent a division by zero when there is only one value in the datas or one color.