Skip to content

Commit

Permalink
Merge pull request #47 from embeepea/master
Browse files Browse the repository at this point in the history
disable info button for zoom < 17
  • Loading branch information
embeepea authored Dec 15, 2020
2 parents 4003031 + 8112250 commit 6abf33a
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 @@ -253,7 +253,7 @@ class PhotoMapControl {
removePhotoStyle();
} else{

if (map.getZoom() > map.getLayer(this.layer).minzoom ){
if (map.getZoom() > 17 /*map.getLayer(this.layer).minzoom*/){
this.active = true;
map.on('click', this.layer, handle_map_click_enter_photo);
map.on('click', this.layer, handle_map_select_polygon);
Expand Down

0 comments on commit 6abf33a

Please sign in to comment.