Nevron Forum

Fixing the legend ranges for maps

https://www.nevron.com/Forum/Topic7767.aspx

By Kevin Harrison 1 - Wednesday, May 15, 2013

We want to display two or more maps side-by-side and have the colours and legend ranges for all maps to be identical, so we can directly compare the results at a glance. I cannot see a way to set the colour ranges. How do I do this?

Thanks

Kevin

By Nevron Support - Wednesday, May 15, 2013

You should create your own data grouping method (create a class that inherits the NDataGrouping abstract class) and set it to the range fill rule you use with your maps.
By Kevin Harrison 1 - Thursday, May 16, 2013

Thanks. I should have realised that!
By Kevin Harrison 1 - Monday, July 15, 2013

Now I actually come to look at this, it doesn't look as obvious as I was expecting.

The NDataGrouping Classify method you can override seems to be putting the input data into the levels, which must have been defined elsewhere, but where? Also what is the ClassCount parameter for? I don't understand how this all hooks up. I was hoping that I could just set the bounds of the levels somewhere and the classification would be done by existing Nevron code.

Thanks

Kevin

By Kevin Harrison 1 - Monday, July 15, 2013

I think I may have figured it out. Is it as simple as having the Classify method return the fixed level minima which I can define in my own constructor for the NDataGrouping derived class?