new Hyperlapse(container, params)
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
container |
Node | HTML element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
params |
Object |
Properties
|
- Source:
- Hyperlapse.js, line 114
Members
-
elevation_offset :Number
-
- Default Value:
- 0
- Source:
- Hyperlapse.js, line 533
-
lookat :google.maps.LatLng
-
- Source:
- Hyperlapse.js, line 521
-
millis :Number
-
- Default Value:
- 50
- Source:
- Hyperlapse.js, line 527
-
offset :Object
-
- Default Value:
- {x:0, y:0, z:0}
- Source:
- Hyperlapse.js, line 552
-
position :Object
-
- Default Value:
- {x:0, y:0}
- Source:
- Hyperlapse.js, line 546
-
rotation_comp :Number
-
- Default Value:
- 0
- Source:
- Hyperlapse.js, line 570
-
tilt :Number
-
- Deprecated:
- should use offset instead
- Default Value:
- 0
- Source:
- Hyperlapse.js, line 540
-
use_lookat :boolean
-
- Default Value:
- false
- Source:
- Hyperlapse.js, line 558
-
use_rotation_comp :boolean
-
- Default Value:
- false
- Source:
- Hyperlapse.js, line 564
Methods
-
cancel()
-
- Source:
- Hyperlapse.js, line 736
Fires:
-
fov() → {Number}
-
- Source:
- Hyperlapse.js, line 605
Returns:
- Type
- Number
-
generate(parameters)
-
Parameters:
Name Type Description parameters
Object Properties
Name Type Argument Description distance_between_points
Number <optional>
max_points
Number <optional>
route
google.maps.DirectionsResult - Source:
- Hyperlapse.js, line 705
-
getCameraPosition() → {google.maps.LatLng}
-
- Source:
- Hyperlapse.js, line 745
Returns:
- Type
- google.maps.LatLng
-
getCurrentImage() → {Image}
-
- Source:
- Hyperlapse.js, line 615
Returns:
- Type
- Image
-
getCurrentPoint() → {HyperlapsePoint}
-
- Source:
- Hyperlapse.js, line 622
Returns:
- Type
- HyperlapsePoint
-
isLoading() → {boolean}
-
- Source:
- Hyperlapse.js, line 580
Returns:
- Type
- boolean
-
isPlaying() → {boolean}
-
- Source:
- Hyperlapse.js, line 575
Returns:
- Type
- boolean
-
length() → {Number}
-
- Source:
- Hyperlapse.js, line 585
Returns:
- Type
- Number
-
load()
-
- Source:
- Hyperlapse.js, line 728
Fires:
-
next()
-
Display next frame in sequence
- Source:
- Hyperlapse.js, line 773
Fires:
-
pause()
-
Pause animation
- Source:
- Hyperlapse.js, line 764
Fires:
-
play()
-
Animate through all frames in sequence
- Source:
- Hyperlapse.js, line 753
Fires:
-
prev()
-
Display previous frame in sequence
- Source:
- Hyperlapse.js, line 786
Fires:
-
reset()
-
Resets all members to defaults
- Source:
- Hyperlapse.js, line 673
-
setDistanceBetweenPoint(v)
-
Parameters:
Name Type Description v
Number - Source:
- Hyperlapse.js, line 595
-
setFOV(v)
-
Parameters:
Name Type Description v
Number - Source:
- Hyperlapse.js, line 654
-
setLookat(point, call_service, callback)
-
Parameters:
Name Type Description point
google.maps.LatLng call_service
boolean callback
function - Source:
- Hyperlapse.js, line 631
-
setMaxPoints(v)
-
Parameters:
Name Type Description v
Number - Source:
- Hyperlapse.js, line 600
-
setPitch(v)
-
Parameters:
Name Type Description v
Number - Source:
- Hyperlapse.js, line 590
-
setSize(width, height)
-
Parameters:
Name Type Description width
Number height
Number - Source:
- Hyperlapse.js, line 663
-
webgl() → {THREE.WebGLRenderer}
-
- Source:
- Hyperlapse.js, line 610
Returns:
- Type
- THREE.WebGLRenderer
Events
-
onError
-
Parameters:
Name Type Description e
Object Properties
Name Type Description message
String - Source:
- Hyperlapse.js, line 145
-
onFrame
-
Parameters:
Name Type Description e
Object Properties
Name Type Description position
Number point
HyperlapsePoint - Source:
- Hyperlapse.js, line 152
-
onLoadCanceled
-
- Source:
- Hyperlapse.js, line 227
-
onLoadComplete
-
- Source:
- Hyperlapse.js, line 244
-
onLoadProgress
-
Parameters:
Name Type Description e
Object Properties
Name Type Description position
Number - Source:
- Hyperlapse.js, line 237
-
onPause
-
- Source:
- Hyperlapse.js, line 165
-
onPlay
-
- Source:
- Hyperlapse.js, line 160
-
onRouteComplete
-
Parameters:
Name Type Description e
Object Properties
Name Type Description response
google.maps.DirectionsResult points
Array.<HyperlapsePoint> - Source:
- Hyperlapse.js, line 263
-
onRouteProgress
-
Parameters:
Name Type Description e
Object Properties
Name Type Description point
HyperlapsePoint - Source:
- Hyperlapse.js, line 256