From 8ea50bab4da5cc0a2ef5d62376cc9346231da9ef Mon Sep 17 00:00:00 2001 From: Mark Phillips Date: Tue, 15 Dec 2020 22:21:02 +0000 Subject: [PATCH] only fetch photo data when zoom >= 17 --- mbgl-photomap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbgl-photomap.js b/mbgl-photomap.js index 4514704..5c5e157 100644 --- a/mbgl-photomap.js +++ b/mbgl-photomap.js @@ -183,7 +183,7 @@ class PhotoMapControl { if (this.browseBounds && (this.browseBounds.contains(bounds._sw) && this.browseBounds.contains(bounds._ne) )){ return; } - if (map.getZoom() < map.getLayer(this.layer).minzoom ){ + if (map.getZoom() < 17 /*map.getLayer(this.layer).minzoom*/){ return; }