Giter Site home page Giter Site logo

streetviewdemo's Introduction

#StreetViewDemo#

This is a simple project that uses several open source libraries to mimic the Google StreetView on iOS. The main view controller uses a JCTiledScrollView to manage user interaction, and loading of each tile's content is done through a datasource method.

The primary problem with this implementation is that the StreetView images have not been corrected to be displayed in a 2D plane. Instead, they're supposed to be mapped on the inside of a sphere. Ideally, you would use an OpenGL sphere with lazily loaded textures to accomplish this. Since this was just a quick demo for StackOverflow, I did not do this. Instead, I have included Brad Larsen's GPUImage, and have attempted to use CATransform3D to transform each UIImage to kind of fix the perspective problems. This did not work out perfectly, but can improve the perspective a little bit. Someone with more time can hopefully configure a better transformation than I did.

As a final note -- Google StreetView has an image request cap of 10 image requests/second. For this reason, you will see that my code attempts to issue no more than 10 per second. In actuality, this sometimes doesn't work perfectly, and you may end up with blank tiles because Google is responding with a 403.

This code is released under the MIT License

streetviewdemo's People

Contributors

ocrickard 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.