Hi,
I have a VectorItemsLayer with a custom colorizer inheriting MapColorizer:
C#public class CustomColorizer : MapColorizer
{
public string ColorName;
public CustomColorizer(string colorName)
{
ColorName = colorName;
}
public override void ColorizeElement(IColorizerElement element)
{
MapBubble bubble = element as MapBubble;
if (bubble != null)
{
if (bubble.Attributes[ColorName].Value != null)
{
int color = (int)bubble.Attributes[ColorName].Value;
element.ColorizerColor = Color.FromArgb(color);
}
}
}
}
The data of the map is a ListSourceDataAdapter. When I modified the color of an element of the source data, the color of the bubble don't change. Is it possible to refresh the bubble color ?
Thanks,
Olivier