Hello. I want the labels to be visible within a certain scale. When I zoom the map to a certain scale, the labels on the map are visible. When I zoom out the map to a certain scale, the labels on the map are not visible. I found two functions, Labels.MinVisibleScale and Labels.MaxVisibleScale. However, when I set DynamicVisibility to true, no matter how I modify the values of MaxVisibleScale and MinVisibleScale, these labels are not visible. The code is shown below. Where is the problem?
Shapefile sf = new Shapefile();
sf.CreateNew("", ShpfileType.SHP_POINT);
Shape shp = new Shape();
shp.Create(ShpfileType.SHP_POINT);
MapWinGIS.Point pt = new MapWinGIS.Point();
pt.x = 3;
pt.y = 3;
int index1 = shp.numPoints;
shp.InsertPoint(pt, ref index1);
int index2 = sf.NumShapes;
sf.EditInsertShape(shp, ref index2);
sf.Labels.AddLabel("label", 3, 3);
sf.Labels.DynamicVisibility = true;
sf.Labels.MaxVisibleScale = 10000000000000000;
sf.Labels.MinVisibleScale = 0;
axMap1.AddLayer(sf, true);