Skip to content

Commit

Permalink
Merge pull request #45 from embeepea/master
Browse files Browse the repository at this point in the history
only fetch photo data when zoom >= 17
  • Loading branch information
embeepea authored Dec 15, 2020
2 parents 45133bd + 8ea50ba commit 7879f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mbgl-photomap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7879f5f

Please sign in to comment.