1

Currently when the zoom control + and - are pressed, the map zooms a lot for each click. How to make the zoom increments smaller for each click.

3 Answers 3

1

Provided that you are not using a third party map with fixed zoom levels (e.g. Google, Bing, OSM etc) you can set the scales or resolutions array of your map to what ever you would like - see the documentation for full details.

1

Adding to @iant's answer, if you are using a third party map with fixed zoom levels you can still zoom smaller amounts when scrolling and using a PanZoomBar (I don't know if it applies to pressing the zoom in/out buttons) by using ClientZoom and fractionalZoom, which essentially allow you to zoom to arbitrary zooms by making the map tiles 'stretch' when you zoom to a level in between the standard zoom levels.

The best way to understand this is to just try out the examples I linked to. You could then check out the docs to see how it is done. I'm afraid I'venever properly tried it, so I can't help much more than that, good luck!

0

Out of the box - I don't believe this is possible. Since tiles are customarily 256x256 - then within each zoom level that tile size is multiplied by 2.

Meaning:
Zoom level 0: 256 px
Zoom level 1: 512 px
Zoom level 2: 1024 px
Zoom level 3: 2048 px
Zoom level 4: 4096 px
Zoom level 5: 8192 px
....etc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.