Guys, I populated the CustomZoomLevels collection as follows:
void AddCustomZoomLevels()
{
var sc1 = map.ZoomLevelSet.ZoomLevel05.Scale;
var sc2 = map.ZoomLevelSet.ZoomLevel06.Scale;
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel01);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel02);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel03);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel04);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel05);
map.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel((sc1 + sc2)/2));
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel06);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel07);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel08);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel09);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel10);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel11);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel12);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel13);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel14);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel15);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel16);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel17);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel18);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel19);
map.ZoomLevelSet.CustomZoomLevels.Add(map.ZoomLevelSet.ZoomLevel20);
}
When I zoom in, map does hit my custom zoom level. However, when zooming out, it does. Is there an issue using the CustomZoomLevels?
TIA.