# How to adjust zoom levels in latest beta

**URL:** <https://community.thinkgeo.com/t/how-to-adjust-zoom-levels-in-latest-beta/10611>\
**Category:** WPF\
**Created:** [May 7, 2025, 9:50am UTC](https://community.thinkgeo.com/t/how-to-adjust-zoom-levels-in-latest-beta/10611 "2025-05-07T09:50:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![G\_Vandenboom](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/57b2e6/32.png) [@G\_Vandenboom](https://community.thinkgeo.com/u/G_Vandenboom)\
**Post date:** [May 7, 2025, 9:50am UTC](https://community.thinkgeo.com/t/how-to-adjust-zoom-levels-in-latest-beta/10611/1 "2025-05-07T09:50:46Z")

</div>

Hello,

For a long time I’ve been using this code to adjust the default zoomlevels (with zoomlevelfactor = 8) to be able to zoom in further then normal.  
In the latest beta versions this is not working anymore and it will also be obsolete in the future.

```
    Me.ZoomLevelSet.ZoomLevel01.Scale = Me.ZoomLevelSet.ZoomLevel01.Scale
    Me.ZoomLevelSet.ZoomLevel02.Scale = Me.ZoomLevelSet.ZoomLevel02.Scale / ZoomlevelFactor
    Me.ZoomLevelSet.ZoomLevel03.Scale = Me.ZoomLevelSet.ZoomLevel03.Scale / ZoomlevelFactor
    Me.ZoomLevelSet.ZoomLevel19.Scale = Me.ZoomLevelSet.ZoomLevel19.Scale / ZoomlevelFactor
    Me.ZoomLevelSet.ZoomLevel20.Scale = Me.ZoomLevelSet.ZoomLevel20.Scale / ZoomlevelFactor

```

How can I get my default zoom levels back?

The suggestion mapview.ZoomScales = zoomLevelSet.GetScales() is not working and will also be obsolete soon.

_Max zoomlevels in latest version (left) and current version (right)._

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/c/a/ca168f2821e7ce4034762e15b866d045239ecce5.jpeg)

Kind regards,  
Guido van den Boom

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [May 7, 2025, 4:33pm UTC](https://community.thinkgeo.com/t/how-to-adjust-zoom-levels-in-latest-beta/10611/2 "2025-05-07T16:33:17Z")

</div>

Hi Guido,

I tested with the latest beta (ThinkGeo.Core Beta140) and the following code works fine:

> var ZoomlevelFactor = 8;  
> MapView.ZoomLevelSet.ZoomLevel01.Scale = MapView.ZoomLevelSet.ZoomLevel01.Scale;  
> MapView.ZoomLevelSet.ZoomLevel02.Scale = MapView.ZoomLevelSet.ZoomLevel02.Scale / ZoomlevelFactor;  
> MapView.ZoomLevelSet.ZoomLevel03.Scale = MapView.ZoomLevelSet.ZoomLevel03.Scale / ZoomlevelFactor;  
> MapView.ZoomLevelSet.ZoomLevel19.Scale = MapView.ZoomLevelSet.ZoomLevel19.Scale / ZoomlevelFactor;  
> MapView.ZoomLevelSet.ZoomLevel20.Scale = MapView.ZoomLevelSet.ZoomLevel20.Scale / ZoomlevelFactor;
> 
> MapView.ZoomScales = MapView.ZoomLevelSet.GetScales();

Also I don’t see MapView.ZoomScales is marked Obsolete, can you get the latest beta and have another try?

Thanks,  
Ben

---

<div class="post-metadata">

**Author:** ![G\_Vandenboom](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/57b2e6/32.png) [@G\_Vandenboom](https://community.thinkgeo.com/u/G_Vandenboom)\
**Post date:** [May 8, 2025, 1:55pm UTC](https://community.thinkgeo.com/t/how-to-adjust-zoom-levels-in-latest-beta/10611/3 "2025-05-08T13:55:34Z")

</div>

Hi Ben,

This picture is what I was refering too.

‘Public Overloads Property Zoomlevelset as Zoomlevelset’ is obsolete and will be remove after v14.6.  
As English is not my native language, I have no idea what this means.  
To me it seems that this code for changing the default zoom scales will not work after v14.6.

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/6/b/6ba9197762524f43d594cde6401ad2208da1b6ad.png)

Regards,  
Guido van den Boom

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [May 8, 2025, 2:39pm UTC](https://community.thinkgeo.com/t/how-to-adjust-zoom-levels-in-latest-beta/10611/4 "2025-05-08T14:39:44Z")

</div>

Hi Guido,

I see. It means MapView.ZoomLevelSet is obsoleted, but you can use MapView.ZoomScales to set up the custom zooms. Here is some quick demo code:

```
        var zoomLevelSet = new SphericalMercatorZoomLevelSet();
        var scale0 = zoomLevelSet.ZoomLevel01.Scale;
        var zoomlevelfactor = 8;

        MapView.ZoomScales = new Collection<double>();
        for (int i = 1; i < 20; i++)
        {
            MapView.ZoomScales.Add(MapView.ZoomScales[^1] / zoomlevelfactor);  
        }

```

ZoomScales is a collection of scale(double) to specify the custom map zooms. It’s lightweight and easier to set up.

And just FYI, v14.3 is now available on Nuget.

Thanks,  
Ben

---

<div class="post-metadata">

**Author:** ![G\_Vandenboom](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/57b2e6/32.png) [@G\_Vandenboom](https://community.thinkgeo.com/u/G_Vandenboom)\
**Post date:** [June 24, 2025, 2:05pm UTC](https://community.thinkgeo.com/t/how-to-adjust-zoom-levels-in-latest-beta/10611/5 "2025-06-24T14:05:26Z")

</div>

Hi Ben,

I tried to implement it this way, because in beta037 my way old code not working anymore.  
But the zoom steps are way to big now.  
How can I setup the zoomlevels exactly the way they were ?

Regards,  
Guido

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [June 24, 2025, 2:50pm UTC](https://community.thinkgeo.com/t/how-to-adjust-zoom-levels-in-latest-beta/10611/6 "2025-06-24T14:50:06Z")

</div>

Hi Guido,

You can always create a new ZoomLevelSet using the old way, and then convert it to zoom scales, something like following

```
 'Create a SphericalMercatorZoomLevelSet with tile size 512
 Dim zoomLevelSet As New SphericalMercatorZoomLevelSet(512) 

' Adjust individual zoom‐level scales
zoomLevelSet.ZoomLevel01.Scale = zoomLevelSet.ZoomLevel01.Scale
zoomLevelSet.ZoomLevel02.Scale = zoomLevelSet.ZoomLevel02.Scale / zoomLevelFactor
zoomLevelSet.ZoomLevel03.Scale = zoomLevelSet.ZoomLevel03.Scale / zoomLevelFactor
' …and so on for other levels…

' Apply the custom scales to the MapView
MapView.ZoomScales = zoomLevelSet.GetScales()

```

Thanks,  
Ben
