Giter Site home page Giter Site logo

gsvpano.js's Introduction

GSVPano.js - Google Street View Panorama lib

Library to help requesting and stitching Google Street View panoramas.

Where is it then?

Sadly, I've been requested by the Maps team to remove the library, since it was enabling people to break Google's Terms of Service. Which is true, but also an intrinsic problem with the only purpose of the library. Let's hope in a very near future the Google Maps API will provide a very similar feature.

gsvpano.js's People

Contributors

spite avatar

Stargazers

 avatar cnjamc avatar  avatar Tawfik Boujeh avatar Supriyo Sarkar avatar Toan Tran avatar azu avatar Dimitrie Stefanescu avatar Wellington Torrejais da Silva avatar Oleksandr Nikitin avatar  avatar Fabio Dias Rollo avatar Michal Bernhard avatar Grant Dawson avatar  avatar Guillaume Guerin avatar Peter "Shawty" Shaw avatar Jan-Willem Gmelig Meyling avatar Gleb avatar 孙茂胤 (Sun, Maoyin) avatar Hao Zhang avatar Ryan avatar Igor avatar  avatar Dammian Miller avatar Elon Zito avatar  avatar Fengda Huang avatar Zo-Hasina Rasatavohary avatar zv avatar David Walsh avatar syco avatar Josue Palma avatar Michael Anthony avatar Baku 麦 avatar John Bacon avatar  avatar Leo Zhang avatar Dinesh Jayaraman avatar Dean Halford avatar Brian Peiris avatar Paul Canning avatar Samuel Foucher avatar Jessicatv avatar David Mignot avatar Brett Camper avatar Edwin Toh avatar Jonathan Barratt avatar Lily Hahn avatar Hanxue avatar Michael avatar James avatar inho.won avatar Yeh, Yung-Hsin avatar Tdog9000 avatar cy avatar TermHare avatar Alan Gunning avatar  avatar  avatar Andrea avatar JT5D avatar sbgood avatar Alexandre Collin avatar Jason Wray avatar  avatar Mike Heavers avatar Andy Lee avatar matthew muller avatar  avatar Stuart Robinson avatar Kyle Phillips avatar Ghali™ avatar 文宇祥 avatar Tom Mulder avatar  avatar Amjad Hussein avatar Stef avatar Alon E avatar Zach Wise avatar Thomas Babu avatar Lu Niu avatar Pedro Diaz avatar  avatar Michael Kelley avatar Chè Nxusani avatar Stig Runar Vangen avatar Kent Liau avatar  avatar Junegunn Choi avatar M Haidar Hanif avatar Bert Balcaen avatar  avatar Edgar Bermejo avatar  avatar  avatar Gwang-lim GHIM avatar Michael Demarais avatar Erik Strand avatar Benjamin Mosnier avatar

Watchers

Mohamed Al Rasbi avatar syco avatar  avatar Yusuke Sekikawa avatar Justin Gaussoin avatar jz avatar Michael Kelley avatar  avatar James avatar Remi Grumeau avatar James Cloos avatar Alberto Giorgi avatar Samuel Foucher avatar Amjad Hussein avatar Michael Anthony avatar Mahesh Masalkar avatar Wellington Torrejais da Silva avatar  avatar  avatar  avatar cnjamc avatar

gsvpano.js's Issues

Out of sync pano reload issue

I've noticed that when you update the pano location in quick succession (i.e. anything which results in two composePanorama() calls before the first one completes) the images from the first one can overwrite the second one, causing a nasty shearing effect between the two locations.

The fix is simple: just add a request number to each pano, so that we can drop ones which are not relevant any more.

Variables:

_requestNumber = 0,

In the lamda for compsePanorama:

                (function (x, y, iRequest) { 
                    var img = new Image();
                    img.requestNum = iRequest;
                    img.addEventListener('load', function () {
                        self.composeFromTile(x, y, this);
                    });
                    img.crossOrigin = '';
                    img.src = url;  
                })(x, y, _requestNumber);

At the top of composeFromTile:

        // Do we need to drop this request (i.e. it is for an old pano).
        if (texture.requestNum != _requestNumber)
        {
            console.log("(EE) Pano image request number out of sync.  Dropping draw request.");
            return;
        }

Impressive library, thanks for sharing. 👍

John

Error loading handling

Had some troubles yesterday with fault urls when loading panos that causes the load-complete callback to fail. Thought it was a quota-problem but it was the _count that did not get updated when a pano failed to load. I don't know why it wasn't a problem before. Maybe it's some changes with the response on faulty requests. In my examples I added a onerror event that increase the _count and also checked if it was the last one. Thought you might want to know the demos are broken even though this repo is empty.

Error creating WebGL context.

Hey - I've downloaded and tried to run locally your examples, and I get an "Error creating WebGL context." The same thing happens in your online example. I'm using Chrome Canary on Mac 10.7.5 - is there an error with the code or maybe something in my system? I feel like I saw this example working at some point recently.

Flipped panoramas

Great tool!

I've been trying to figure this out: why are the returned panoramas sometimes flipped?

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.