mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-03 09:34:19 -07:00
[BUG] Tiles disappear after zoom 11 (#324)
This commit is contained in:
parent
d0c281ec72
commit
be0256e896
3 changed files with 7 additions and 2 deletions
|
@ -20,7 +20,7 @@ export const GLOBAL_MAX_ZOOM = 22;
|
||||||
export const GLOBAL_MIN_ZOOM_LOW = 3;
|
export const GLOBAL_MIN_ZOOM_LOW = 3;
|
||||||
export const GLOBAL_MAX_ZOOM_LOW = 9;
|
export const GLOBAL_MAX_ZOOM_LOW = 9;
|
||||||
export const GLOBAL_MIN_ZOOM_HIGH = 9;
|
export const GLOBAL_MIN_ZOOM_HIGH = 9;
|
||||||
export const GLOBAL_MAX_ZOOM_HIGH = 12;
|
export const GLOBAL_MAX_ZOOM_HIGH = 11;
|
||||||
|
|
||||||
// Bounds
|
// Bounds
|
||||||
export const GLOBAL_MAX_BOUNDS = [
|
export const GLOBAL_MAX_BOUNDS = [
|
||||||
|
|
|
@ -71,6 +71,11 @@ const mapStyle : Style = {
|
||||||
// For local development, use:
|
// For local development, use:
|
||||||
// 'http://localhost:8080/data/tl_2010_bg_with_data/{z}/{x}/{y}.pbf',
|
// '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': {
|
'labels': {
|
||||||
'type': 'raster',
|
'type': 'raster',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue