Hello,
I think there are problems with the way styles are applied on PostgreSqlFeatureLayers. The following code appears to apply the red point/text styles from zoom levels 13 to 20 and blue from 01 to 12. This seems to be reversed and different from the code?
This isn't an urgent problem but I thought I should bring it to your attention.
Regards,
Jonathan
private void applyTextStyle(ref PostgreSqlFeatureLayer theLayer)
{
if (theLayer.Name == "cartographictext")
{
// Could do more with a value style based on one of the columns
theLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(PointStyles.CreateSimplePointStyle(PointSymbolType.Circle, GeoColor.SimpleColors.Red, 2));
theLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(TextStyles.CreateSimpleTextStyle("textstring", "Calibri", 8, DrawingFontStyles.Bold, GeoColor.SimpleColors.Red, 2, 2));
theLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level19;
theLayer.ZoomLevelSet.ZoomLevel19.CustomStyles.Add(PointStyles.CreateSimplePointStyle(PointSymbolType.Square,GeoColor.SimpleColors.DarkBlue,2));
theLayer.ZoomLevelSet.ZoomLevel19.CustomStyles.Add(TextStyles.CreateSimpleTextStyle("textstring", "Calibri", 8, DrawingFontStyles.Bold, GeoColor.SimpleColors.DarkBlue, 2, 2));
theLayer.ZoomLevelSet.ZoomLevel19.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
}
}