The problem is that I can not give the code sample - I have no idea how to do it in your SDK, but I do try give better clarify.
Good example will be a flower - how to show the flower with all petal in various colors changing every 30 seconds. Moreover - you have thousand of flowers and it is important to have every petal in various angle and direction but all flowers have the same size.
Your example show how to generate the bitmap and then put it as many times as you wish on the map.
In this case I have to generate all bitmaps/symbols on the start and attach them to new layer of the map.
It means:
flower can have various number of petals (1,2,3,4,5,6)
flower can have various colors of petals but you have to generate all possible color variation!
flower can have various orientation and angle size of petals
- so only good solution in this case is to dynamically changing the already paced bitmap on the map programmatic.
On the Code Community I found interesting part of code - dynamically changing of the text labels
var labelLayer = new InMemoryFeatureLayer();
labelLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.CreateMaskTextStyle("Label", new GeoFont("Arial", 10),
new GeoSolidBrush(GeoColor.SimpleColors.Black), new AreaStyle(new GeoPen(GeoColor.StandardColors.Black), new GeoSolidBrush(GeoColor.StandardColors.LightGoldenrodYellow)), 10, 0);
labelLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.CreateSimpleCircleStyle(GeoColor.SimpleColors.Yellow, 1);
labelLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
labelLayer.Open();
labelLayer.Columns.Add(new FeatureSourceColumn("Label"));
labelLayer.Close();
[....]
//and in dynamic part of code
pointLayer = (InMemoryFeatureLayer)winformsMap1.FindFeatureLayer("iconLayer");
if (!pointLayer.InternalFeatures.Contains(Name))
{
PointShape pointShape1 = new PointShape(d, d1);
Feature newFeature1 = new Feature(pointShape1);
newFeature1.ColumnValues.Add("Label", Name);
pointLayer.InternalFeatures.Add(Name, newFeature1);
}
One Code Forum
Would you like to put the analogical part of code with example with IconValueStyle?
Best regards
Piotr