Hannes Janetzek
0a2bb1026e
update map position animation at beginning of each frame
2013-10-09 01:56:05 +02:00
Hannes Janetzek
4abec66e39
finish first part of database -> tilesource refactoring
...
- now there is a clean separation between TileSource type
and TileDataSource(worker instances)
2013-10-09 01:56:04 +02:00
Hannes Janetzek
477548c5f7
use new Martix4 function which use temporary array
...
- avoid 'undefined behaviour' which did work for most cases...
2013-10-09 01:56:03 +02:00
Hannes Janetzek
82a3a880ac
add MapView.clearMap() -> clear all previous map state in Layers on next onUpate
...
- now labels are cleared properly when the or mapdb changes.
- getTileSet now requires a TileSet instance as input
2013-10-09 01:56:03 +02:00
Hannes Janetzek
00839e9a9a
move overlays to layers.overlay
2013-10-09 01:56:02 +02:00
Hannes Janetzek
5e6a78c0eb
move MapScaleBar to overlays
2013-10-09 01:56:02 +02:00
Hannes Janetzek
d71b90df10
document MapViewPosition.getViewBox
2013-10-09 01:56:02 +02:00
Hannes Janetzek
7e12159178
smoother fling
2013-10-09 01:56:01 +02:00
Hannes Janetzek
28ecec811a
rename -> getLayerManager
2013-10-09 01:56:01 +02:00
Hannes Janetzek
54911083af
change MapEventLayer to subclass of InputLayer
2013-10-09 01:56:01 +02:00
Hannes Janetzek
9824aa72e5
rename RenderOverlay -> RenderLayer
2013-10-09 01:56:01 +02:00
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