Code Monkey home page Code Monkey logo

happyyang / tileview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moagrius/tileview

0.0 3.0 0.0 36.1 MB

The TileView widget is a subclass of ViewGroup that provides a mechanism to asynchronously display tile-based images for the Android mobile-application development framework, with additional functionality for 2D dragging, flinging, pinch or double-tap to zoom, adding overlaying Views (markers), built-in Hot Spot support, dynamic path drawing, multiple levels of detail, and support for any relative positioning or coordinate system.

Home Page: http://moagrius.github.io/TileView/index.html?com/qozix/tileview/TileView.html

License: MIT License

Java 100.00%

tileview's Introduction

TileView

The TileView widget is a subclass of ViewGroup that provides a mechanism to asynchronously display tile-based images, with additional functionality for 2D dragging, flinging, pinch or double-tap to zoom, adding overlaying Views (markers), built-in Hot Spot support, dynamic path drawing, multiple levels of detail, and support for any relative positioning or coordinate system.

Documentation

Javadocs are here. Wiki is here.

Installation

The widget is straight java, so you can just use the .java files found here (with the dependencies mentioned below). A github release (jar, or zip) is available here. Recent versions of Eclipse with ADT can create projects with the compatability library already installed, and will automatically add jars in /libs/ to the build path, so just create a new project, add the tileviewlib.jar and the lrucache jar to /libs/ and you can start using the class.

Demo

A demo application, built in Eclipse, is available here.

The .apk can be downloaded directly.

Implementation

A minimal implementation might look like this:

TileView tileView = new TileView(this);
tileView.setSize(3000,5000);
tileView.addDetailLevel(1.0f, "path/to/tiles/%col%-%row%.jpg");

Dependencies

If you're targetting APIs less than 12, you'll need the Android compatability lib for the LruCache implementation.

Jake Wharton's DiskLruCache is also used. Here's a direct link to that jar.

Maven users

```xml com.qozix TileView 1.0.13 ```

Gradle users

```xml compile 'com.qozix:TileView:1.0.13' ```

Releases

Check here for the the latest release.

tileview's People

Contributors

moagrius avatar corsc avatar shusshu avatar bnsantos avatar loentar avatar andreasschiestl avatar jnagels avatar mariotaku avatar

Watchers

James Cloos avatar happyyang avatar  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.