I am using custom zoom levels with my project. I use the following code to set up each map layer:
int minZoomLevel = MyProject.DataInterface.GetMinZoomLevel(layer) - 1;
MapLayer.ZoomLevelSet.CustomZoomLevels[minZoomLevel].CustomStyles.Add(new MyStyle(ColorSource.Feature, layer));
MapLayer.ZoomLevelSet.CustomZoomLevels[minZoomLevel].ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
minZoomLevel could be any value between 0 and 19, but for testing purposes I am only using 0, 2, 4, and 6. I am also using SyncClientZoomLevels. The features appear at the proper time, but they disappear when I get to about ZoomLevel 15. I am zooming in on line features that cross the center of the map window, so I am sure that I'm not zooming in of empty space. If it makes any difference, at zoom level 15 the scale drops below 1:1000. I have placed a break point inside my custom style. The DrawCore method doesn't appear to fire when I hit zoom level 15. Any suggestions on how to troubleshoot this issue?
Also, I am using SQL Server spatial with this project, and the zoom level doesn't appear to affect the time it takes to draw a feature layer (table). As I am zooming in, shouldn't it take less time to draw the features, since there should be fewer to draw?
Charles