Class: Hyperlapse

Hyperlapse

new Hyperlapse(container, params)

Parameters:
Name Type Description
container Node HTML element
params Object
Properties
Name Type Argument Default Description
width Number <optional>
800
height Number <optional>
400
use_elevation boolean <optional>
false
distance_between_points Number <optional>
5
max_points Number <optional>
100
fov Number <optional>
70
zoom Number <optional>
1
lookat google.maps.LatLng <optional>
null
millis Number <optional>
50
elevation Number <optional>
0
tilt Number <optional>
0
Source:

Members

elevation_offset :Number

Default Value:
  • 0
Source:

lookat :google.maps.LatLng

Source:

millis :Number

Default Value:
  • 50
Source:

offset :Object

Default Value:
  • {x:0, y:0, z:0}
Source:

position :Object

Default Value:
  • {x:0, y:0}
Source:

rotation_comp :Number

Default Value:
  • 0
Source:

tilt :Number

Deprecated:
  • should use offset instead
    Default Value:
    • 0
    Source:

    use_lookat :boolean

    Default Value:
    • false
    Source:

    use_rotation_comp :boolean

    Default Value:
    • false
    Source:

    Methods

    cancel()

    Source:
    Fires:

    fov() → {Number}

    Source:
    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:

    getCameraPosition() → {google.maps.LatLng}

    Source:
    Returns:
    Type
    google.maps.LatLng

    getCurrentImage() → {Image}

    Source:
    Returns:
    Type
    Image

    getCurrentPoint() → {HyperlapsePoint}

    Source:
    Returns:
    Type
    HyperlapsePoint

    isLoading() → {boolean}

    Source:
    Returns:
    Type
    boolean

    isPlaying() → {boolean}

    Source:
    Returns:
    Type
    boolean

    length() → {Number}

    Source:
    Returns:
    Type
    Number

    load()

    Source:
    Fires:

    next()

    Display next frame in sequence
    Source:
    Fires:

    pause()

    Pause animation
    Source:
    Fires:

    play()

    Animate through all frames in sequence
    Source:
    Fires:

    prev()

    Display previous frame in sequence
    Source:
    Fires:

    reset()

    Resets all members to defaults
    Source:

    setDistanceBetweenPoint(v)

    Parameters:
    Name Type Description
    v Number
    Source:

    setFOV(v)

    Parameters:
    Name Type Description
    v Number
    Source:

    setLookat(point, call_service, callback)

    Parameters:
    Name Type Description
    point google.maps.LatLng
    call_service boolean
    callback function
    Source:

    setMaxPoints(v)

    Parameters:
    Name Type Description
    v Number
    Source:

    setPitch(v)

    Parameters:
    Name Type Description
    v Number
    Source:

    setSize(width, height)

    Parameters:
    Name Type Description
    width Number
    height Number
    Source:

    webgl() → {THREE.WebGLRenderer}

    Source:
    Returns:
    Type
    THREE.WebGLRenderer

    Events

    onError

    Parameters:
    Name Type Description
    e Object
    Properties
    Name Type Description
    message String
    Source:

    onFrame

    Parameters:
    Name Type Description
    e Object
    Properties
    Name Type Description
    position Number
    point HyperlapsePoint
    Source:

    onLoadCanceled

    Source:

    onLoadComplete

    Source:

    onLoadProgress

    Parameters:
    Name Type Description
    e Object
    Properties
    Name Type Description
    position Number
    Source:

    onPause

    Source:

    onPlay

    Source:

    onRouteComplete

    Parameters:
    Name Type Description
    e Object
    Properties
    Name Type Description
    response google.maps.DirectionsResult
    points Array.<HyperlapsePoint>
    Source:

    onRouteProgress

    Parameters:
    Name Type Description
    e Object
    Properties
    Name Type Description
    point HyperlapsePoint
    Source: