Edit Globe settings
This commit is contained in:
@@ -16,6 +16,7 @@ export class Globe {
|
||||
this.width = this.el.offsetWidth
|
||||
this.height = this.el.offsetHeight
|
||||
this.markers = options.markers || []
|
||||
this.globeZoom = 1.3075
|
||||
this.globeRotation = {
|
||||
lat: degToRad(-this.options.rotationStart) || 0,
|
||||
// lng: degToRad(-this.options.rotationStart.lng) || 0,
|
||||
@@ -49,7 +50,6 @@ export class Globe {
|
||||
speed: options.speed,
|
||||
enableMarkers: options.enableMarkers,
|
||||
enableMarkersLinks: options.enableMarkersLinks,
|
||||
zoom: 1.3075,
|
||||
sunAngle: options.sunAngle || 0,
|
||||
sunAngleDelta: 1.8,
|
||||
}
|
||||
@@ -93,7 +93,7 @@ export class Globe {
|
||||
|
||||
// Create camera
|
||||
this.camera = new Camera(this.gl)
|
||||
this.camera.position.set(0, 0, this.params.zoom)
|
||||
this.camera.position.set(0, 0, this.globeZoom)
|
||||
|
||||
// Create controls
|
||||
this.controls = new Orbit(this.camera, {
|
||||
|
||||
Reference in New Issue
Block a user