Is there sample code for a XamMap that uses a DistributionScale? I am trying to assign two MapColorSwatchPanes one for negative numbers another for positive numbers. I want to be able to choose which set of brushes goes with what swatch pane. Is this possible to be accomplished? Say you have a set of numbers such -25, 0 50; I want to assign zero to be in the center of the swatch pane. So that positive numbers always have the same colors. The issue I am facing is the brush collection is shared and I cannot assign a specific set of brushes to a specific swatch.
I'm using this code, but the first time the map is launched the layer elements do not change color. If I relaunch the map, it works as expected. Any idea what would be causing this? It runs the code both times, but it's almost like the first time it runs the code and then loads the map layer which overwrites anything the code changed.
Hi Ruwan123,
As you noted in your first forum post, the BrushCollection is set to the layer thus visualized in the MapColorSwatchPane according to the respective FillMode, so the behavior you described is currently not supported by the XamMap control.
The following approach could be used to achieve different coloring of the MapElements depending on the value: http://help.infragistics.com/Doc/DV/2011.2/CLR4.0/?page=xamWebMap_Color_Map_Elements_Individually.html
If you like, you could submit a feature request based on the scenario you described, using the following form: https://es.infragistics.com/community/ideas.
Best Regards,Milana Zhileva
That article did not answer my question. Can you please look at the picture i attached for more info?
Please take a look at this article.
Hope that helps,Milana Zhileva