57 Commits

Author SHA1 Message Date
Hannes Janetzek
fada95f380 cleanups + comments 2013-10-09 01:55:52 +02:00
Hannes Janetzek
f2b7a9fdf8 formatting 2013-10-09 01:55:52 +02:00
Hannes Janetzek
93fde349c6 rename variable 2013-10-09 01:55:52 +02:00
Hannes Janetzek
76e1dcae7c - fix issue with hanging ui on clse when network is down
- add getters for rotation/compass enabled
- cleanups
2013-10-09 01:55:51 +02:00
Hannes Janetzek
e9f135b3ab update of Tile- and OverlayManager need to be done async for this 2013-10-09 01:55:51 +02:00
Hannes Janetzek
019c39d8b8 start render early 2013-10-09 01:55:51 +02:00
Hannes Janetzek
db93fbe4f6 make TileManager non static 2013-10-09 01:55:50 +02:00
Hannes Janetzek
4990b827d9 rename osmarender theme to 'default' 2013-10-09 01:55:49 +02:00
Hannes Janetzek
de88c33701 fling velocity is in pixel-per-second, so make it dpi-dependent 2013-10-09 01:55:49 +02:00
Hannes Janetzek
70e6266319 sanitize map scale input 2013-10-09 01:55:49 +02:00
Hannes Janetzek
b8287f9ecf move near plane back, fixes clipping issue with most large buildings 2013-10-09 01:55:48 +02:00
Hannes Janetzek
4acd9a492f finally got that z-value for un-projection right (=
- add more matrix utilities
2013-10-09 01:55:48 +02:00
Hannes Janetzek
80de20a423 reworking the gl projection/unprojection stuff 2013-10-09 01:55:47 +02:00
Hannes Janetzek
30fede04d2 magnetic-fling: move by screen size 2013-10-09 01:55:47 +02:00
Hannes Janetzek
e9d2c88022 TileManager, JobQueue: use MapTile[] instead of list 2013-10-09 01:55:47 +02:00
Hannes Janetzek
70b7c79a8e started paged-fling mode, not enabled yet 2013-10-09 01:52:20 +02:00
Hannes Janetzek
28278ba102 start actual BuildingOverlay 2013-10-09 01:52:20 +02:00
Hannes Janetzek
99ce02a9bd -rename BuildingOverlay -> ExtrusionOverlay,
even if there is probably nothing else to extrude
- started to draw extrusion layer for proxy tiles
- fixed depth offsetting..
2013-10-09 01:52:20 +02:00
Hannes Janetzek
eb278585fa more work on building layer 2013-10-09 01:52:19 +02:00
Hannes Janetzek
49055f2cc2 docs 2013-10-09 01:47:44 +02:00
Hannes Janetzek
cfa56c00f6 move TileGenerator from 'renderer' to 'generator' package 2013-10-09 01:47:44 +02:00
Hannes Janetzek
f761be1999 refactor: rename RenderOverlay classes 2013-10-09 01:47:43 +02:00
Hannes Janetzek
df7c7200e5 add animateTo for BoundingBox 2013-10-09 01:47:43 +02:00
Hannes Janetzek
eb0b7a8c0c add beginnings of OverlayModel, rendering only a box atm
- modified gl projection so that map layer is always between near- and far-plane
2013-10-09 01:47:43 +02:00
Hannes Janetzek
c5663df198 close polygons implicitly when using OSciMap2 database 2013-10-09 01:47:43 +02:00
Hannes Janetzek
74b5de13b8 use internal zoomLevel limits for now 2013-10-09 01:47:43 +02:00
Hannes Janetzek
7f598f5ccf - MapView now requires to setMapDatabase(MapOptions) explicitly
- pass MapOptions when opening MapDatabase
2013-10-09 01:47:43 +02:00
Hannes Janetzek
adc808f505 handle more overlay events 2013-10-09 01:46:34 +02:00
Hannes Janetzek
b863882302 allow interception of all touch events 2013-10-09 01:46:34 +02:00
Hannes Janetzek
dd64d6da26 fix: unlock tiles properly onResume 2013-10-09 01:40:21 +02:00
Hannes Janetzek
7dd171dc24 unix line delimiters 2013-10-09 01:40:21 +02:00
Hannes Janetzek
b7aaaef485 - improve way-labeling
- let nomination search places instead of tags
2013-10-09 01:40:21 +02:00
Hannes Janetzek
0eda94864f TileMapApp: improve POI overlays 2013-10-09 01:40:21 +02:00
Hannes Janetzek
ab5962d56c add osmdroid overlays + bonuspack 2013-10-09 01:40:21 +02:00
Hannes Janetzek
78aac5f019 - rename MapRenderer to TileManager and refactor
- move overlay renderer to own package
- slight TouchHandler improvements, not start rotation when scaling
2013-10-09 01:40:21 +02:00
Hannes Janetzek
4a06553ddc more work on overlay renderer:
- moved text rendering to overlay
- added grid overlay
2013-10-09 01:27:43 +02:00
Hannes Janetzek
33d8865d7b - started overlays
- started symbol layer
- move renderer and generator out of view package
  - hopefully the last big refactoring for a while...
- improve perspective, plane should be more far away to decrease foreshortening
2013-10-09 01:27:43 +02:00
Hannes Janetzek
525af0e2a4 - no need for double precision in visible tile calculation 2013-10-09 01:22:48 +02:00
Hannes Janetzek
5c36bd7c46 improve tilt gesture detection a little 2013-10-09 01:22:48 +02:00
Hannes Janetzek
b4dd83fc09 - improve tile locking (use ref counter instead of boolean)
- flip over date line (inserting placeholder tiles in renderer)
- make view coordinates consistent with tile coordinates (flip on y-axis)
2013-10-09 01:22:48 +02:00
Hannes Janetzek
5bf9deef89 - prevent possible concurrency between updateMap 'clear' tiles and onDrawFrame
- no need to sync tile in uploadTileData anymore, now that proxies are locked properly
- cleanups
2013-10-09 01:22:48 +02:00
Hannes Janetzek
fbc39c65cb cleanups 2013-10-09 01:22:48 +02:00
Hannes Janetzek
7b247f3af3 refactor for readability 2013-10-09 01:22:48 +02:00
Hannes Janetzek
93d57c2577 add copyright 2013-10-09 01:22:48 +02:00
Hannes Janetzek
c5e3be9d2b - started to move Matrices to MapViewPosition as these can be shared with
MapRenderer(TileLoader) and GLRenderer.
- using inverse projection to determine visible tiles and mapping screen-coordinates to model
- making MapPosition not final, reuse instance to get Position in Map-/GLRender

added: ScanBox scanline fill used for calculating visible tiles

rename:
- ShortPool -> VertexPool
- tile.isActive -> isLocked
2013-10-09 01:22:47 +02:00
Hannes Janetzek
8ec405cf5c - added tilt view gesture
- use simple line shader when rotation is disabled
2013-10-09 01:22:47 +02:00
Hannes Janetzek
7d7cf10d89 - fixed MapViewPosition scaleMap
- fixed GLRender isVisible() for proxy tiles
- smoother scale animation
2013-10-09 01:22:47 +02:00
Hannes Janetzek
8d57bc7531 unprojection stuff, needed for scan-line visibility checker 2013-10-09 01:22:47 +02:00
Hannes Janetzek
4a5142fdf6 keep mapfile-writer/db from bit-rotting 2013-10-09 01:22:47 +02:00
Hannes Janetzek
19344e39cf starting to add some perspective 2013-10-09 01:22:47 +02:00