Coder Social home page Coder Social logo

streetviewsequence.js's Introduction

StreetviewSequence.js

StreetviewSequence allows you to create Street View panorama and route-stepped image sequences.

Stationary panorama looking up

var panorama = StreetviewSequence('#panorama', {
    duration: 1500,
    location: new google.maps.LatLng(40.720032, -73.988354),
    pitchSkewEnd: 90,
    width: 585,
    height: 325,
    loop: true
});

panorama.done(function (player) {
    player.play();
});

Route

var directionsService = new google.maps.DirectionsService();
var directionsRoute = directionsService.route({
    destination: new google.maps.LatLng(33.8974391098385,-116.6136966801696),
    origin: new google.maps.LatLng(33.9063,-116.56344000000001),
    travelMode: google.maps.TravelMode.DRIVING
}, function (DirectionsResult, DirectionsStatus) {
    var routeSequence = StreetviewSequence('#route', {
        route: DirectionsResult,
        duration: 5000,
        loop: true,
        width: 585,
        height: 325
    });

    routeSequence.done(function(player) {
        player.play();
    });
});

Reporting load progress

var panorama = StreetviewSequence('#panorama', {
    duration: 1500,
    location: new google.maps.LatLng(40.720032, -73.988354),
    pitchSkewEnd: 90,
    width: 585,
    height: 325,
    loop: true
});

panorama.progress(function (p) {
    console.log('%f% loaded', p);
});

panorama.done(function (player) {
    player.play();
});

streetviewsequence.js's People

Contributors

cpubot avatar m14t avatar

Watchers

James Cloos avatar Malika Aubakirova avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.