Git Product home page Git Product logo

panoramasensorsviewer's Introduction

#PanoramaSensorsViewer

Maybe you're a developer, so, no more #RTFM, you'll read this later ;-) so go straight to the API doc ! (:wink) ...

This library will let you make webapps that can browse Google Street View just by moving your mobile device and looking at the panorama like you were inside it.

##Intro

PanoramaSensorsViewer takes advantage of Google Maps API v3 to display panoramas and takes care of all the tricky things such as :

  • Init a Google Street View panorama
    • At any position
    • Taking care of making the connection to the Google Maps API
    • Lets you have your custom panoramas (or anything else since you have full access to the Google Maps API)
  • Connecting your device's gyroscope+accelerometer to this panorama
  • Taking care of your device screen orientation (keeping the movements consistent whatever orientation you're on)

##Requirements

For dependency management purposes (and also safe and simple script lazy load), PanoramaSensorsViewer was built using RequireJS, a module loader.

For those of you who don't know RequireJS, I invite you to check it out. Anyone who already use RequireJS shouldn't have any problem, however, this repo contains examples of how to use PanoramaSensorsViewer, if you want to make your own app, you can simply clone the repo ...

PS : I also use RequireJS because it allows me to make builds with r.js via grunt (something you should also check out). For a next version, I'll try to ditch RequireJS via a build step (like the jQuery builder).

###RequireJS Setup

You'll find the RequireJS config file here : require.config.js. Nothing extraordinary here, only the declaration of the async plugin which is used to call google.

If you moved the topheman-panorama folder, you can make an alias in this file so that RequireJS will find it.

###Grunt Setup (optional)

Maybe like me you don't start a project without grunt anymore, so there is a Gruntfile.js and a package.json.

The default task will launch you a server on localhost:9002 ...

##Known bugs

  • Chrome for Android : on some devices, the noise filter for the deviceorientation event can be pretty bad, so the image can be jumpy.
  • Firefox for Android : the noise filter is ok, however, the connection to the sensors (accelerometer+gyroscope) seems to be erratic - here is the use case to reproduce the bug.

iOs works very well.

panoramasensorsviewer's People

Contributors

topheman avatar

Watchers

 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.