Hi,
I have a problem with the custom style
I have 3 polygons which overlap perfectly on 3 differents layers.
Polygon 1 is on Layer 1 with Areatyle = red border and TextStyle = red
Polygon 2 is on Layer 2 with Areatyle = blue border and TextStyle = blue
Polygon 3 is on Layer 3 with Areatyle = black border and TextStyle = black
I apply a customstyle on areastyle and a customstyle on textstyles
For example :
Polygon 1
zleIlot.ZoomLevel08.CustomStyles.Add(AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Transparent, GeoColor.SimpleColors.Red, 2));
ftConfig.ZoomLevelParam.ZoomLevel08.CustomStyles.Add(TextStyles.CreateSimpleTextStyle(fo, "Arial", 10, DrawingFontStyles.Regular, OutilsOvLyr.StringToGeocolor(ftConfig.ColorLyr)));
ftConfig.ZoomLevelParam.ZoomLevel08.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
Polygon3 :
_zLevOccupSol.ZoomLevel08.CustomStyles.Add(vStyleArea);
_zLevOccupSol.ZoomLevel08.CustomStyles.Add(TextStyles.CreateSimpleTextStyle("FetchCol", "Arial", 10, DrawingFontStyles.Regular, GeoColor.StandardColors.Black));
_zLevOccupSol.ZoomLevel08.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
On the screen, if the 3 layers are visible, I should see the customStyle of the polygon3 (because is on the top) but I see the areastyle of the polygon3 and the textstyle of the polygon1.
And I don't understand why ?
Thanks for your help.
Regards.
Steph.