Hi
I have noticed an issue with custom zoom levels in the latest development build v6.0.243.0
I set custom zoom levels using the following code but when I call map.ZoomLevelSet.GetZoomLevels() I just get back the default zoom levels. When I inspect map.ZoomLevelSet.CustomZoomLevels it is empty.
I checked that latest production build v6.0.0.245 and all works as expected.
Is this a bug or have you changed the way this works in the development build?
private void AddCustomZoomLevels()
{
gisMap.MinimumScale = 0;
var partitionedZoomLevelSet = new ZoomLevelSet();
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(750000));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(500000));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(400000));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(300000));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(200000));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(100000));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(50000));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(25000));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(10000));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(5000));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(2500));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(1000));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(500));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(250));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(100));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(50));
gisMap.ZoomLevelSet = partitionedZoomLevelSet;
}
Cheers
Steve