111 Commits

Author SHA1 Message Date
Hannes Janetzek
4f3560d810 MapEventLayer: take over gesture detection after double tap 2013-10-09 01:56:01 +02:00
Hannes Janetzek
5222609025 LayerManager: add cancelGesture method
-  add 'debug' output to see which InputLayer took the event
2013-10-09 01:56:01 +02:00
Hannes Janetzek
ae993eccce added BitmapTileLayer, and TileSource interface from mapsforge 2013-10-09 01:56:01 +02:00
Hannes Janetzek
78f05992f4 log map layer updates 2013-10-09 01:56:01 +02:00
Hannes Janetzek
54035374bd fix order of input layer processing 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
55fc510d51 cleanups 2013-10-09 01:56:00 +02:00
Hannes Janetzek
8f543362e9 make sure to run 'redrawMap' on main loop 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
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
8a808265a5 reset gesture state on ActionDown instead of ActionUp
-> this should help when up event was consumed by overlay
2013-10-09 01:55:59 +02:00
Hannes Janetzek
5862ae4e7d - extracted MapEventLayer from TouchHandler
- rename OverlayManager to LayerManager
- move event-dispatching from TouchHandler to LayerManager
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
5d08d13b51 on animateTo also rotate to bbox 2013-10-09 01:55:58 +02:00
Hannes Janetzek
76c3e71ae4 moved to backup 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
eac8047527 tile overlay experiments II 2013-10-09 01:55:58 +02:00
Hannes Janetzek
a87a1b761c testing tile overlay 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
bef8e125fb MapPosition: use int to represent zoomLevel
add MapPosition.setFromLatLon utility
2013-10-09 01:55:58 +02:00
Hannes Janetzek
72741ced7f smoother fling 2013-10-09 01:55:57 +02:00
Hannes Janetzek
654ca7c5b8 merge updateVisibleList into updateMap 2013-10-09 01:55:57 +02:00
Hannes Janetzek
8d51c54318 share MapView with subclasses 2013-10-09 01:55:57 +02:00
Hannes Janetzek
38e2ac110d - use self-made fling
- add utilities from libgdx
2013-10-09 01:55:57 +02:00
Hannes Janetzek
f262efee7f Use native Matrix4 instead of float[16] 2013-10-09 01:55:56 +02:00
Hannes Janetzek
e47594d2b8 decrease fling speed 2013-10-09 01:55:56 +02:00
Hannes Janetzek
edd74160a1 fix bbox scale calculation 2013-10-09 01:55:56 +02:00
Hannes Janetzek
555a951d25 improve MapViewAnimation 2013-10-09 01:55:56 +02:00
Hannes Janetzek
1dbd30307b cleanups + tweaks 2013-10-09 01:55:56 +02:00
Hannes Janetzek
6b39c95905 moving all animation to MapViewPostion,
- this also allows TileManager to predict next visible tiles
- got rid of zoom-level dependent scale
2013-10-09 01:55:56 +02:00
Hannes Janetzek
5230aee091 avoid zoom-level relative calculation 2013-10-09 01:55:56 +02:00
Hannes Janetzek
c14d101aef - allow bbox zoom to scale to MAX_END_SCALE
- use FastMath.clamp
2013-10-09 01:55:56 +02:00
Hannes Janetzek
2cb8a9d45f keep a reference to MapView in Overlay 2013-10-09 01:55:56 +02:00
Hannes Janetzek
cd54f0dfe6 begin integrating of area zoom interaction 2013-10-09 01:55:56 +02:00
Hannes Janetzek
e05921efdd make getStartPosition() public 2013-10-09 01:55:55 +02:00
Hannes Janetzek
e1ce1b056b mapsforge should also produce implicitly clsed polys 2013-10-09 01:55:55 +02:00
Hannes Janetzek
0e96747939 cleanups 2013-10-09 01:55:55 +02:00
Hannes Janetzek
ebd7453348 more tilt 2013-10-09 01:55:55 +02:00
Hannes Janetzek
722663c5f8 dont mess with which pointer is which.. just use index 0 and 1 in gestures 2013-10-09 01:55:55 +02:00
Hannes Janetzek
a581996f25 On options change set 'clearMap' flag instead of direct clearAndRedraw 2013-10-09 01:55:54 +02:00
Hannes Janetzek
54d3fe332b cleanups 2013-10-09 01:55:54 +02:00
Hannes Janetzek
45bb326258 update copyright 2013-10-09 01:55:53 +02:00
Hannes Janetzek
55030c1166 refactor: dont pass matrices with MapPosition -> use GLRender.Matrices 2013-10-09 01:55:53 +02:00
Hannes Janetzek
8db24eaacf add labeling debug option 2013-10-09 01:55:53 +02:00
Hannes Janetzek
7b87e8fdc1 block 'tilt' gesture only when 'rotation' is active 2013-10-09 01:55:53 +02:00
Hannes Janetzek
bdbdbb5905 tweak gesture detection 2013-10-09 01:55:52 +02:00
Hannes Janetzek
023755655b fix jumping gestures: update pointer IDs on pointer up/down 2013-10-09 01:55:52 +02:00
Hannes Janetzek
ed34c3b63a decrease change of scale by the change of rotation 2013-10-09 01:55:52 +02:00