Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[all] Set maximum maxZoom to 21
Browse files Browse the repository at this point in the history
Numbers greater than 21 trigger various bugs.
  • Loading branch information
jfirebaugh committed Mar 21, 2016
1 parent a6012a1 commit ca8212d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Known issues:
- The user dot no longer lags when panning the map. ([#3683](https://github.com/mapbox/mapbox-gl-native/pull/3683))
- The Improve This Map tool now uses the same zoom level that is currently being shown in the map view. ([#4068](https://github.com/mapbox/mapbox-gl-native/pull/4068))
- Fixed a formatting issue in the documentation for `MGLCoordinateBoundsIsEmpty()`. ([#3958](https://github.com/mapbox/mapbox-gl-native/pull/3958))
- The maximum maximum zoom level is now 21. ([#4417](https://github.com/mapbox/mapbox-gl-native/pull/4417)))

## iOS 3.1.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class MapboxConstants {
/**
* The currently supported maximum zoom level.
*/
public static final float MAXIMUM_ZOOM = 25.5f;
public static final float MAXIMUM_ZOOM = 21.0f;

/**
* The currently supported maximum tilt value.
Expand Down
2 changes: 1 addition & 1 deletion src/mbgl/util/constants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const double LONGITUDE_MAX = 180;
const double DEGREES_MAX = 360;
const double PITCH_MAX = M_PI / 3;
const double MIN_ZOOM = 0.0;
const double MAX_ZOOM = 25.5;
const double MAX_ZOOM = 21.0;

const uint64_t DEFAULT_MAX_CACHE_SIZE = 50 * 1024 * 1024;

Expand Down

0 comments on commit ca8212d

Please sign in to comment.