update readme

This commit is contained in:
Hannes Janetzek 2014-02-08 13:27:21 +01:00
parent 46f8f7d22a
commit 1d0fcedeb0

View File

@ -1,52 +1,63 @@
## A Vector Tile Map Library # *\<vector\<tile\>\>map*
VectorTileMap is part of the OpenScienceMap project, developed at University of Bremen. <br/>
http://www.opensciencemap.org http://www.opensciencemap.org<br/>
VTM is part of the OpenScienceMap project and developed at University of Bremen.
### Features ## Features
- Java map library - Java map library
- OpenGL vector-tile rendering - OpenGL vector-tile rendering
- Themeable vector layers - Themeable vector layers
- Support for multiple tile sources: primary opensciencemap (.vtm) - Support for multiple tile sources:
- vector: partially mapbox vector-tile and mapsforge files - primary opensciencemap (.vtm)
- mapsforge files
- experimental mapnik-vector-tile source
- bitmap: any quadtree-scheme tiles as texture - bitmap: any quadtree-scheme tiles as texture
- Backends for Android, Desktop and HTML5/WebGL (through libgdx and GWT) - Backends:
- Android
- Desktop
- HTML5/WebGL (through libgdx and GWT)
- iOS sooner or later
### Getting started ## Getting started
```
git clone https://github.com/opensciencemap/vtm
cd vtm
git submodule init && git submodule update
ln -s ../../vtm/assets/styles vtm-android-app/assets/styles
ln -s ../../vtm/assets/patterns vtm-android-app/assets/patterns
```
Then import projects into eclipse. Dont forget 'git submodule update' after git pull/checkout! `git clone --recursive https://github.com/opensciencemap/vtm`
`cd vtm/vtm-android-app/assets && ln -s ../../vtm/assets/* .`
To set up a tile server for .vtm tiles see https://github.com/opensciencemap/TileStache/tree/master/TileStache/OSciMap4
### Projects ### Projects
- **vtm** contains the core library - **vtm** contains the core library
- **vtm-android** Android backend - (no libgdx required) - **vtm-android** Android backend (no libgdx required)
- **vtm-android-example** provides examples using **vtm-android** - **vtm-android-example** provides examples using **vtm-android**
- **vtm-android-app** opensciencemap app using **vtm-android**
- **vtm-gdx** common libgdx backend code - **vtm-gdx** common libgdx backend code
- **vtm-gdx-desktop** Desktop application - **vtm-gdx-desktop** Desktop application
- **vtm-gdx-html** HTML5/GWT application - **vtm-gdx-html** HTML5/GWT application
- **vtm-gdx-android** Android application using libgdx backend - **vtm-gdx-android** Android application using libgdx backend
### WebGL Demo ### Eclipse
Import all 'vtm' projects that you need into Eclipse.
### Gradle / Android-Studio
Just import build.gradle - should work, not much tested though. <br/>
Or run gradle tasks from the commandline:<br/>
`./gradlew clean install` <br/> to build the libraries and add them to the local maven repository.<br/>
`./gradlew :vtm-android-example:installDebug` <br/> to run the android example<br/>
`./gradlew :vtm-gdx-desktop:run` <br/>to run the desktop demo (only Linux and Win64 or compile the native libs)
## WebGL Demo
http://opensciencemap.org/map/#scale=17,rot=61,tilt=51,lat=53.075,lon=8.807 http://opensciencemap.org/map/#scale=17,rot=61,tilt=51,lat=53.075,lon=8.807
- hold middle mouse button to change view direction - hold right mouse button to change view direction
- Keys - Keys: `g` toggle tile-grid layer `d` default- `t` tubes- `r` osmarender-theme
- g - toggle tile-grid layer
- d - default theme
- t - tubes theme
### Credits
## Credits
This library contains code from several projects: This library contains code from several projects:
- mapsforge: based on 0.2.4 (http://mapsforge.org) - **mapsforge**: based on 0.2.4 (http://mapsforge.org)
- osmdroid: some overlay classes (http://code.google.com/p/osmdroid/) - **osmdroid**: some overlay classes (http://code.google.com/p/osmdroid/)
- libgdx: AsyncTask, MathUtils and Interpolation classes (https://github.com/libgdx) - **libgdx**: AsyncTask, MathUtils and Interpolation classes (https://github.com/libgdx)
- Android: some Matrix code, TimSort (http://source.android.com) - **Android**: some Matrix code, TimSort (http://source.android.com)
- tessellate: (https://github.com/cscheid/tessellate) - **tessellate**: (https://github.com/cscheid/tessellate)