Hannes Janetzek
ae993eccce
added BitmapTileLayer, and TileSource interface from mapsforge
2013-10-09 01:56:01 +02:00
Hannes Janetzek
676b994f2d
refactoring of TileLayer, some more
2013-10-09 01:56:01 +02:00
Hannes Janetzek
03e7579835
add GeometryBuffer function to LineLayer
2013-10-09 01:56:00 +02:00
Hannes Janetzek
fbb4d1d2ae
merge JobTile into MapTile
2013-10-09 01:56:00 +02:00
Hannes Janetzek
55fc510d51
cleanups
2013-10-09 01:56:00 +02:00
Hannes Janetzek
bcb529906a
- extract interface of RenderTheme
...
- pass MapElement to RenderTheme
- refactor: join duplicated code for node and way matching
2013-10-09 01:56:00 +02:00
Hannes Janetzek
7d767ec2e4
move 'simple' layer renderers to renderer.layer
2013-10-09 01:56:00 +02:00
Hannes Janetzek
82227900d8
move ScanBox to utils
2013-10-09 01:56:00 +02:00
Hannes Janetzek
17cc09c3b9
formatting
2013-10-09 01:56:00 +02:00
Hannes Janetzek
6eb3b9221b
MapView base layer is now a TileLayer
...
- extract MapView base layer into TileLayer
- extract MapTile loading from GLRenderer
- move all tile layer related classes to layers.tile.*
- make Overlay subclass of InputLayer, which extends Layer
2013-10-09 01:56:00 +02:00
Hannes Janetzek
119f2ac14c
Add MapElement as a buffer object to pass map elements to TileGenerator
...
- unify IMapDatabase callback
2013-10-09 01:56:00 +02:00
Hannes Janetzek
2c4eea3e59
fade alpha of buildings
2013-10-09 01:56:00 +02:00
Hannes Janetzek
ead18a2356
scale linestipple pattern independent of tile zoomlevel
2013-10-09 01:56:00 +02:00
Hannes Janetzek
5739eb5b93
simplify ScanBox use
2013-10-09 01:55:59 +02:00
Hannes Janetzek
24438c1e68
change max zoom-level to 24
...
- fix bug in ScanBox where tiles where not visible when map rotation had a steep angle
- refactor ScanBox, add transScale utility
2013-10-09 01:55:59 +02:00
Hannes Janetzek
3c26515d4d
make Slot public for testing
2013-10-09 01:55:59 +02:00
Hannes Janetzek
8b313962f5
set up mBitmaps so that TextureItems can be created on initialization in Main Thread
2013-10-09 01:55:59 +02:00
Hannes Janetzek
78d67a4bff
release TextItems to pool
2013-10-09 01:55:59 +02:00
Hannes Janetzek
35849b9829
use 'simple' line shader in BasicOverlay
2013-10-09 01:55:59 +02:00
Hannes Janetzek
50b37d2342
- use mediump shader for textures
...
- increase TextureItem width, so that 'USA' label is drawn completely on high dpi.. at least for now
2013-10-09 01:55:59 +02:00
Hannes Janetzek
47ad1d3617
start of TextureAtlas
2013-10-09 01:55:59 +02:00
Hannes Janetzek
ca311f0bcf
provide public function to only retrieve valid base layers type
2013-10-09 01:55:59 +02:00
Hannes Janetzek
d74e5a7d00
- use clipping for PathOverlay, now Great Circle works properly
2013-10-09 01:55:59 +02:00
Hannes Janetzek
c9b54fdfa2
revert Paint back to Android
2013-10-09 01:55:59 +02:00
Hannes Janetzek
535204c2c2
use absolute position for tile distance calculation
2013-10-09 01:55:59 +02:00
Hannes Janetzek
9c3c860da8
cleanups
2013-10-09 01:55:59 +02:00
Hannes Janetzek
eb6778a907
- start to extract android graphics dependency
...
- make IRenderThemeCallback more consistent
2013-10-09 01:55:59 +02:00
Hannes Janetzek
02812d30f5
fix bug in extrusion layer where triangulation did modify the point array as side-effect
2013-10-09 01:55:59 +02:00
Hannes Janetzek
129a780c41
- more work on generic pools
...
- generic inlist
2013-10-09 01:55:59 +02:00
Hannes Janetzek
ab56cc4b18
pooled items now extend pool.Inlist and using generic pool.SyncPool
2013-10-09 01:55:59 +02:00
Hannes Janetzek
29c3f42043
fix concurrency bug: use a copy of RenderOverlays
2013-10-09 01:55:58 +02:00
Hannes Janetzek
ae4cb24b32
formatting
2013-10-09 01:55:58 +02:00
Hannes Janetzek
0ad8e70b97
brighter buildings
2013-10-09 01:55:58 +02:00
Hannes Janetzek
eaaf77263c
preload more tile
2013-10-09 01:55:58 +02:00
Hannes Janetzek
7145b067a0
fix wrap, if needed. this was wrong
2013-10-09 01:55:58 +02:00
Hannes Janetzek
491e41becc
rename Tile.TILE_SIZE to Tile.SIZE, while I'm at refactoring
2013-10-09 01:55:58 +02:00
Hannes Janetzek
8e01dce85e
-use absolute x/y position and scale in MapPosition
...
- scale calculations look much nicer now, better always
use 'double' unless you are sure about precision required
- finally got rid of zoomLevel relative coordinates
- cleanup MapPosition and MercatorProjection API functions
2013-10-09 01:55:58 +02:00
Hannes Janetzek
a6a729244f
added MapLensOverlay
2013-10-09 01:55:58 +02:00
Hannes Janetzek
a87a1b761c
testing tile overlay
2013-10-09 01:55:58 +02:00
Hannes Janetzek
d3c31199f1
adapt building height to ground resolution
2013-10-09 01:55:58 +02:00
Hannes Janetzek
1d2fea48cc
5cm height step should suffice
2013-10-09 01:55:58 +02:00
Hannes Janetzek
118c74e810
use building heigh in cm. TODO need to match ground resolution
2013-10-09 01:55:58 +02:00
Hannes Janetzek
c280bbaf50
workaround issue with clipped tiles when scale is greater 2 on zoom-level 17
2013-10-09 01:55:58 +02:00
Hannes Janetzek
93a723af3c
refactor scale/translate of screen to map coordinates for tile visibility calulation
...
cleanups
2013-10-09 01:55:58 +02:00
Hannes Janetzek
bac46ac6e2
make building height consistent, at least independent of aspect ratio
2013-10-09 01:55:58 +02:00
Hannes Janetzek
b7ca00ae8f
use WayData container to pass geometry and tags to TileGenerator
2013-10-09 01:55:58 +02:00
Hannes Janetzek
bef8e125fb
MapPosition: use int to represent zoomLevel
...
add MapPosition.setFromLatLon utility
2013-10-09 01:55:58 +02:00
Hannes Janetzek
a818e2f062
use MapPosition.copy(other)
2013-10-09 01:55:57 +02:00
Hannes Janetzek
8c8750a833
add GeometryBuffer class to pass data from MapDatabase to TileGenerator
2013-10-09 01:55:57 +02:00
Hannes Janetzek
0b7edab572
fix debug renderer
2013-10-09 01:55:57 +02:00