[BUG] Tiles disappear after zoom 11 (#324)

This commit is contained in:
Nat Hillard 2021-07-12 08:41:29 -04:00 committed by GitHub
commit be0256e896
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -57,4 +57,4 @@ describe('Tests for the Explore the Map page', () => {
expect(punx1001FeatureState).to.deep.equal({'selected': true});
});
});
});
});

View file

@ -20,7 +20,7 @@ export const GLOBAL_MAX_ZOOM = 22;
export const GLOBAL_MIN_ZOOM_LOW = 3;
export const GLOBAL_MAX_ZOOM_LOW = 9;
export const GLOBAL_MIN_ZOOM_HIGH = 9;
export const GLOBAL_MAX_ZOOM_HIGH = 12;
export const GLOBAL_MAX_ZOOM_HIGH = 11;
// Bounds
export const GLOBAL_MAX_BOUNDS = [

View file

@ -71,6 +71,11 @@ const mapStyle : Style = {
// For local development, use:
// 'http://localhost:8080/data/tl_2010_bg_with_data/{z}/{x}/{y}.pbf',
],
// Seeting maxzoom here enables 'overzooming'
// e.g. continued zooming beyond the max bounds.
// More here: https://docs.mapbox.com/help/glossary/overzoom/
'maxzoom': constants.GLOBAL_MAX_ZOOM_HIGH,
},
'labels': {
'type': 'raster',