Fix disabling of measurements
xeolabs opened this issue · 1 comments
From user:
I want to disable measurements. There is a flag I can set when
initiating the viewer, it is called enableMeasurements
. It is correctly
interpreted here
xeokit-bim-viewer/src/BIMViewer.js
Line 256 in 0d94309
it is also correctly used to reduce the toolbar template here
xeokit-bim-viewer/src/BIMViewer.js
Line 274 in 0d94309
But later in the constructor, it is not used to restrict the initialisation of
the measurement tools here
xeokit-bim-viewer/src/BIMViewer.js
Lines 417 to 425 in 0d94309
Instead, the querySelector returns an undefined, the buttonElement
is
undefined and the constructor throws an exception.
Can we fix that soonish, so that we can use the new version of the viewer but
without the measurement tools, until we found a solution to prevent the
overflow?