globe.gl 2.35.0 → 2.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/globe.gl.js +2 -2
- package/dist/globe.gl.js.map +1 -1
- package/dist/globe.gl.min.js +2 -2
- package/dist/globe.gl.mjs +1 -1
- package/package.json +1 -1
package/dist/globe.gl.mjs
CHANGED
|
@@ -515,7 +515,7 @@ var globe = Kapsule({
|
|
|
515
515
|
var globeR = state.globe.getGlobeRadius();
|
|
516
516
|
var controls = state.renderObjs.controls();
|
|
517
517
|
state.renderObjs.camera().near = 0.05; // less will start causing depth z-fighting issues
|
|
518
|
-
controls.minDistance = globeR
|
|
518
|
+
controls.minDistance = globeR + Math.max(0.001, state.renderObjs.camera().near * 1.1); // just above the surface, as much as camera near plane permits
|
|
519
519
|
controls.maxDistance = globeR * 100;
|
|
520
520
|
controls.enablePan = false;
|
|
521
521
|
controls.enableDamping = true;
|