Few people must be using custom zoom levels or I would expect more discussion of this method being depricated.
I have a custom mapping application written in C# with both a desktop and web version. I am using MsSql2008Featurelayers. I wrote parts of the desktop version first. I am using custom zoom levels so that when zoomed all the way out, the map area covers just the map data (not the whole world). To do this, I use custom zoom levels in which I have set my own scales. I use the following code in the desktop version as add each map layer:
ZoomLevelSet customZooms = GetCustomZoomLevels();
if (mapWindow.ZoomlevelSet.CustomZoomLevels.Count == 0)
mapWindow.ZoomLevelSet = customZooms;
This code didn't work in the web edition so I changed it as follows:
ZoomLevelSet customZooms = GetCustomZoomLevels();
mapWindow.SyncClientZoomLevels(customZooms);
Now SyncClientZoomLevels has been depricated. I tried the desktop code in the web version. The web page appears without any map data. Since it didn't throw an error, I tried zooming in. If I zoom in about half way on the zoom bar, my map data appears. The web control doesn't appear to be using my custom scales.
Am I doing something wrong?
Charles