ThinkGeo.com    |     Documentation    |     Premium Support

Changing Zoomlevel for text is not working work

Hello,


I am trying ot set the ZoomLevel to be between 04 and 20 for the following.  When I am using ZoomLevel01, the county names show.  However, if I use anything else, ZoomLevel03, the names never appear.


Any help would be appreciated,  Steven


 


ShapeFileFeatureLayer usaCountyILPyLayer = new ShapeFileFeatureLayer(@"C:\projects\nap\data\mapdata\shp\USA_Counties\IL_BNDY_County_Py.shp"); usaCountyILPyLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.County2; usaCountyILPyLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.Capital3("COUNTY_NAM"); usaCountyILPyLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.CreateSimpleTextStyle("COUNTY_NAM", "Arial", 8, DrawingFontStyles.Regular, GeoColor.StandardColors.Black, 3, 3); usaCountyILPyLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; 










Hi Steven,



 



We couldn’t recreate your issue with the following code. I guess you changed to ZoomLevel03 for the text style, but never set ZoomLevel03.ApplyUnitZoomLevel.




usaCountyILPyLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.County2;
usaCountyILPyLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level02;
usaCountyILPyLayer.ZoomLevelSet.ZoomLevel03.DefaultAreaStyle = AreaStyles.County2;
usaCountyILPyLayer.ZoomLevelSet.ZoomLevel03.DefaultTextStyle = TextStyles.Capital3("COUNTY_NAM");
usaCountyILPyLayer.ZoomLevelSet.ZoomLevel03.DefaultTextStyle = TextStyles.CreateSimpleTextStyle("COUNTY_NAM", "Arial", 8, DrawingFontStyles.Regular, GeoColor.StandardColors.Black, 3, 3);
usaCountyILPyLayer.ZoomLevelSet.ZoomLevel03.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;



Any questions please let me know.



 



Thanks,



 



Howard