Skip to content

Commit

Permalink
#198 Bounding box is now shown if bbox is null but enableSelectingObj…
Browse files Browse the repository at this point in the history
…ects is true
  • Loading branch information
jscastro76 committed Feb 4, 2021
1 parent bd1ab53 commit 6238fee
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions dist/threebox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1009,8 +1009,8 @@ Threebox.prototype = {
},

setDefaultView: function (options, defOptions) {
options.bbox = options.bbox && defOptions.enableSelectingObjects;
options.tooltip = options.tooltip && defOptions.enableTooltips;
options.bbox = (options.bbox || options.bbox == null) && defOptions.enableSelectingObjects;
options.tooltip = (options.tooltip || options.tooltip == null) && defOptions.enableTooltips;
options.mapScale = this.map.transform.scale;
},

Expand Down
2 changes: 1 addition & 1 deletion dist/threebox.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/Threebox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1004,8 +1004,8 @@ Threebox.prototype = {
},

setDefaultView: function (options, defOptions) {
options.bbox = options.bbox && defOptions.enableSelectingObjects;
options.tooltip = options.tooltip && defOptions.enableTooltips;
options.bbox = (options.bbox || options.bbox == null) && defOptions.enableSelectingObjects;
options.tooltip = (options.tooltip || options.tooltip == null) && defOptions.enableTooltips;
options.mapScale = this.map.transform.scale;
},

Expand Down
4 changes: 2 additions & 2 deletions tests/threebox-tests-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -12430,8 +12430,8 @@ Threebox.prototype = {
},

setDefaultView: function (options, defOptions) {
options.bbox = options.bbox && defOptions.enableSelectingObjects;
options.tooltip = options.tooltip && defOptions.enableTooltips;
options.bbox = (options.bbox || options.bbox == null) && defOptions.enableSelectingObjects;
options.tooltip = (options.tooltip || options.tooltip == null) && defOptions.enableTooltips;
options.mapScale = this.map.transform.scale;
},

Expand Down

0 comments on commit 6238fee

Please sign in to comment.