Commit Graph
100 Commits
Author SHA1 Message Date
Hannes Janetzek b031f98fff fixup: layer -> bucket variable names 2014-09-20 02:23:30 +02:00
Hannes Janetzek b057c56466 fix: BucketRenderer unified base/tex buckets 2014-09-20 02:23:30 +02:00
Hannes Janetzek a60f326e16 RenderBuckets: optimization
- start search from current when searched level is greater than current
2014-09-20 02:23:30 +02:00
Hannes Janetzek 66653df3dc fix: dont let TextureBuckets interfere with other bucket 'levels'
- make TextureLayer.textures protected
2014-09-20 02:23:30 +02:00
Hannes Janetzek 3a30476f7e GLState: track buffer bindings
- reset buffer bindings at frame start
2014-09-20 02:23:30 +02:00
Hannes Janetzek 3f8b028d60 RenderBuckets: unify baseBuckets and textureBuckets
... finally
2014-09-20 02:23:30 +02:00
Hannes Janetzek f6d85ce8bd refactor: rename render 'layers' to 'buckets'
- the name I was looking for for a long time :)
  also less confusion with map layers
- move renderer.elements -> renderer.bucket
- rename RenderBuckets functions
- rename BucketRenderer.layers -> buckets
2014-09-20 01:31:07 +02:00
Hannes Janetzek b4a567884f unify Indexed- and RenderElement
- remove IndexedRenderElement

- ExtrusionLayer: clear temporary data in prepare()
  - ie. dont wait to release shared Vertexs until compile()
- ExtrusionLayer: make naming consistent with ElementLayers
  - in particular use of 'numIndices', 'numVertices'
2014-09-20 01:31:06 +02:00
Hannes Janetzek 8741357c9a GL20: fix parameter name indices -> offset 2014-09-20 01:31:06 +02:00
Hannes Janetzek 20afbfe230 use new Tessellator for Mesh- and ExtrusionLayer 2014-09-20 01:31:06 +02:00
Hannes Janetzek 7db70f239f jni: new Tesselator 2014-09-20 01:31:06 +02:00
Hannes Janetzek 59ab24da90 jni: add GLMatrix proj2d/3d 2014-09-20 01:07:03 +02:00
Hannes Janetzek c34bc3306c RenderElement: docs 2014-09-20 01:07:03 +02:00
Hannes Janetzek 31a45b0468 add ElementLayer/RenderElement prepare()
- used to prepare for compile() when all layer data is added
2014-09-20 01:07:03 +02:00
Hannes Janetzek 990e04477c GeometryBuffer: switch to int[] indices 2014-09-20 01:07:03 +02:00
Hannes Janetzek 7be8155939 GeometryBuffer:
- add getPoint(i, point)
- addPoint(PointF)
- getPointX/Y

GeomBuffer: api
2014-09-20 01:07:03 +02:00
Hannes Janetzek d6cf845fef PolygonLayer optimizations:
- check of polygon elements are visible
- use AreaStyle.hasAlpha() to enable blending
- GLState.testDepth()
- LineClipper: add outcode(x,y)
2014-09-20 01:07:03 +02:00
Hannes Janetzek 01830707dc MapRenderer: refactor native buffer utils 2014-09-20 01:07:02 +02:00
Hannes Janetzek a835d44187 VertexData: docs
- remove superfluous static get()
2014-09-20 01:07:02 +02:00
Hannes Janetzek 123b0aa098 renderer: cleanups 2014-09-20 01:07:02 +02:00
Hannes Janetzek e645696adb MapRenderer: increase shared quad vertices 2014-09-20 01:07:02 +02:00
Hannes Janetzek e830252c85 wip: use HairLine for PolygonLayer outlines 2014-09-20 01:07:02 +02:00
Hannes Janetzek 7bf2544a83 PolygonLayer: cleanups 2014-09-20 01:07:02 +02:00
Hannes Janetzek b69923e05d PolygonLayer: separate drawing of stencil clip region 2014-09-20 01:07:02 +02:00
Hannes Janetzek 3cd2f9ea47 add HairlineLayer 2014-09-20 01:07:02 +02:00
Hannes Janetzek f390a903dc use common vertexItems field in ExtrusionLayer 2014-09-20 01:07:02 +02:00
Hannes Janetzek 033a0d9c9d let MeshLayer extend IndexedRenderElement 2014-09-20 01:07:02 +02:00
Hannes Janetzek 8c13a82df7 add IndexedRenderElement 2014-09-20 01:07:02 +02:00
Hannes Janetzek 59dd9425c8 refactor: move compileVertexItems() to RenderElement
- rename addPoolItems -> compileVertexItems
2014-09-20 01:07:01 +02:00
Hannes Janetzek 9f8a383ce6 gradle: update jeo repo url 2014-09-20 01:03:40 +02:00
Hannes Janetzek 530e2b7cb4 gradle: switch to my jeo repo for now 2014-09-16 13:14:46 +02:00
Hannes Janetzek c311004bd8 use global sync for all tiles managed in TileSets
TODO should be removed together TileRenderer.getVisibleTiles()
2014-09-16 11:59:00 +02:00
Hannes Janetzek 0c245f4f6d refactor: MapTile et al
- cleanup proxy draw logic in VectorTileRenderer
- fixes upload of child proxies in TileRenderer
2014-09-16 11:59:00 +02:00
Hannes Janetzek 7779e30635 TileIndex: find the tile at z=0...
- should fix #91
2014-09-16 00:57:44 +02:00
Hannes Janetzek 707769f124 TextureItem: allow cloning uninitialized textures
- TextureRegion: use texture handle, not atlas.texture
- update SymbolLayer

- TextureAtlas: remove depth
2014-09-11 21:00:27 +02:00
Hannes Janetzek 5a0f10559d increase label Texture size 2014-09-11 21:00:27 +02:00
Hannes Janetzek af3ee3a742 use text texture size for buffered gdx/awt image loading 2014-09-11 21:00:27 +02:00
Hannes Janetzek 52813ea29f sed 's/m\(in\|ax\)\(X\|Y\)/\L\2m\1/g' 2014-09-11 21:00:26 +02:00
Hannes Janetzek c48c620963 BoxTree:
- return false from search() when search callback returned false
- fix removal: unlink next item
- add clearToPool()
2014-09-11 21:00:26 +02:00
Hannes Janetzek 64068730db add missing LineBuilder.fixed(bool) 2014-09-11 21:00:26 +02:00
Hannes Janetzek 95c9f47e63 refactor: hide backend Adapter handles
- static methods for backend adapters
2014-09-11 21:00:26 +02:00
Hannes Janetzek 84968d201d android: use confirmed tap gesture
- otherwise tap conflicts with double tap zoom..
2014-09-11 21:00:26 +02:00
Hannes Janetzek 6d690ff5af android: enable GLSurfaceView debug flags with GLAdapter.debug 2014-09-11 21:00:26 +02:00
Hannes Janetzek a97b3283a0 add TileSource.Builders 2014-09-11 21:00:26 +02:00
Hannes Janetzek 67336e0c93 implement okhttp response caching
based on patch from: Baldur Gudbjornsson <baldur.gudbjornsson@gmail.com>
2014-09-11 21:00:26 +02:00
Hannes Janetzek 691a18873d HttpEngine: throw exception instead of null return in conn.read()
- convert OkHttps FileNotFound to some more useful exception
2014-09-11 21:00:25 +02:00
Hannes Janetzek 47b2a55b11 gdx: add keys for scale and tilt 2014-09-04 02:32:36 +02:00
Hannes Janetzek 243af371be switch to libgdx-jglfw desktop backend 2014-09-04 02:32:36 +02:00
Hannes Janetzek 3c281e8824 use libgdx 1.2 2014-09-04 02:32:36 +02:00
Hannes Janetzek a849b30efe forward MapActivity stop/resume to MapView 2014-09-04 02:28:15 +02:00
Hannes Janetzek d42302a150 update webgl map link 2014-09-04 00:07:07 +02:00
Hannes Janetzek 3aac9272ee update readme 2014-09-04 00:02:05 +02:00
Hannes Janetzek a8ed9b80ef document Map events 2014-09-03 23:49:23 +02:00
Hannes Janetzek 2e5ff2e4a4 TileCache: close db cursor when result is empty 2014-09-03 22:39:15 +02:00
Hannes Janetzek f7a98017b1 TileCache: remove unused size field 2014-09-03 22:39:15 +02:00
Hannes Janetzek bb5cf608a6 cannot test OkHttp close atm 2014-08-13 23:10:14 +02:00
Hannes Janetzek c2a5ad4104 avoid network on main-thread exception with OkHttp 2014-08-13 23:10:14 +02:00
Hannes Janetzek 2a6f6c28a0 fix travis build 2014-08-13 23:10:14 +02:00
Hannes Janetzek 4f5125cf22 update README 2014-08-13 23:10:13 +02:00
Hannes Janetzek a81e3adae1 gradle: use android build-tools 20.0 2014-08-13 23:10:13 +02:00
Hannes Janetzek 490f0c35b1 remove vtm-android-app submodule 2014-08-13 20:37:06 +02:00
Hannes Janetzek 3d1cc6fe36 disable glBufferSubData for all Adreno 330/320
- use more specific test to work around buggy driver
2014-06-24 21:00:30 +02:00
Hannes Janetzek 51b2773ef2 get correct fade-time for proxy tiles 2014-06-24 20:59:46 +02:00
Hannes Janetzek 2995de938e update and docs for TileLoaderHooks
- add complete() method to TileLoaderHooks
- use Inlist instead of array for hooks
2014-06-19 18:31:55 +02:00
Hannes Janetzek 978b5ead44 handle LongPress in ItemizedLayer 2014-06-19 18:31:55 +02:00
Hannes Janetzek 6c830575c9 fix: LineClipper for multilinestrings 2014-06-19 18:31:55 +02:00
Hannes Janetzek 27b9294a36 fix: tile fade time
- did not check grandparent
2014-06-19 18:31:54 +02:00
Hannes Janetzek a2abbe5197 mo' fling 2014-06-10 22:38:52 +02:00
Hannes Janetzek 3f49361e4a refactor: add api for common VertexItem use
- rename VertexItem -> VertexData
2014-06-10 22:38:52 +02:00
Hannes Janetzek ad0eff3fac android: ignore NewApi error 2014-06-10 22:38:52 +02:00
Hannes Janetzek 7c995534eb add Tag constructor for intern() keys 2014-06-10 22:38:52 +02:00
Hannes Janetzek 2c6a85ee6d add GeoPoint.distance()
- return double in distanceTo()
2014-06-10 22:38:51 +02:00
Hannes Janetzek 9b719d857e add RTree 2014-06-10 22:16:09 +02:00
Hannes Janetzek e961eba9c0 rename old QuadTree -> TileIndex 2014-06-10 22:16:09 +02:00
Hannes Janetzek b460b4ebaf add QuadTree implementing SpatialIndex
- add SpatialIndex interface
2014-06-10 22:16:09 +02:00
Hannes Janetzek 4e94a8f269 inner class should be static 2014-06-10 22:16:09 +02:00
Hannes Janetzek 6eeb21623b cleanup comments 2014-06-10 22:16:09 +02:00
Hannes Janetzek 225613ec28 cleanup: canvas Paint 2014-06-10 22:16:08 +02:00
Hannes Janetzek 7cd5084777 fix: reset TileSet serial 2014-06-10 22:16:08 +02:00
Hannes Janetzek 5e1705e621 gwt: implement GLMatrix.proj2D 2014-06-10 22:16:08 +02:00
Hannes Janetzek ee5e6b511e gwt: throw on missing GL context 2014-06-10 22:16:08 +02:00
Hannes Janetzek 480d639def GLMatrix: add batch projection 2014-06-10 22:16:08 +02:00
Hannes Janetzek 9d078142aa add LineLayer setExtents to not add caps outside visible region 2014-06-10 22:16:08 +02:00
Hannes Janetzek bf8cc329cf Box:
- add Box.overlap(Box) and copy constructor
- add Box.inside(box)
2014-06-10 22:16:08 +02:00
Hannes Janetzek dc0529c59e implement KeyMap.remove()
- tests
- cleanups
2014-06-10 22:16:08 +02:00
Hannes Janetzek a65b35f8de tweak s3db colors 2014-06-10 22:16:08 +02:00
Hannes Janetzek 97857cf4e4 theme: more alpha for buildings 2014-06-10 22:16:08 +02:00
Hannes Janetzek dc0089dc07 theme: increase osmarender way label size 2014-06-10 22:16:08 +02:00
Hannes Janetzek 9c393d25dc theming: allow extending text styles 2014-06-10 22:16:07 +02:00
Hannes Janetzek 7667b08b50 rename theme property base-text-size -> base-text-scale 2014-06-10 22:16:07 +02:00
Hannes Janetzek fb628f4e25 Inlist:
- add Inlist.List size()
- make Inlist work items indirectly extending Inlist
- check Inlist.push() argument to not push lists
2014-06-10 22:16:07 +02:00
Hannes Janetzek a9d3b0a302 fix iOS build 2014-06-10 22:16:07 +02:00
Hannes Janetzek 5d939cdbfd gradle: update 2014-06-10 22:16:07 +02:00
Hannes Janetzek b593179376 ignore++ 2014-06-10 22:16:07 +02:00
Hannes Janetzek 19701b7563 fix: LwHttp - retry when address lookup failed
- use 5sec read timeout
- use tcp_nodelay
2014-06-10 22:16:07 +02:00
Hannes Janetzek a26aa9de15 sync on ExtrusionLayer.vertexPool instead of each Vertex 2014-06-02 12:48:23 +02:00
Hannes Janetzek 037c25153b theme: increase buildings alpha 2014-05-25 02:27:02 +02:00
Hannes Janetzek b9ebf1e57b refactor ExtrusionRenderer
+ cleanups
2014-05-25 02:26:36 +02:00
Hannes Janetzek 5af831abb5 nicer building fade 2014-05-25 00:53:31 +02:00
Hannes Janetzek 6bc3818318 update app 2014-05-25 00:53:31 +02:00