Hannes Janetzek
e8ffbd79f2
move OSMData to utils
2013-10-09 01:56:05 +02:00
Hannes Janetzek
5ab4ce50af
add 'project' utility function to project to double array
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
40886fd34c
more default Tag keys
2013-10-09 01:56:04 +02:00
Hannes Janetzek
5d4b472514
add TagSet.clear()
2013-10-09 01:56:04 +02:00
Hannes Janetzek
127deb0655
- extract common protobuf decoder to ProtobufDecoder
...
- move LwHttp and ProtobufDecotder to common
- rename MapDatabaseCallback to MapDataSink
2013-10-09 01:56:04 +02:00
Hannes Janetzek
00abbc839b
compile TagSet to Tag[]
2013-10-09 01:56:04 +02:00
Hannes Janetzek
b92afea6d1
more internal strings
2013-10-09 01:56:04 +02:00
Hannes Janetzek
dc547bb077
more tag keys
2013-10-09 01:56:03 +02:00
Hannes Janetzek
08ea40851f
smaller default GeomBuffer
2013-10-09 01:56:03 +02:00
Hannes Janetzek
6483902901
fix startPolygon for more than one polygon..
2013-10-09 01:56:03 +02:00
Hannes Janetzek
1359dedcd4
some more TagSet utilities
2013-10-09 01:56:03 +02:00
Hannes Janetzek
ff8e1801bf
no need to internalize these
2013-10-09 01:56:03 +02:00
Hannes Janetzek
05d4dba5fc
always internalize tag key Strings
2013-10-09 01:56:03 +02:00
Hannes Janetzek
9bbfef02ad
fix: grow of GeometryBuffer properly
2013-10-09 01:56:03 +02:00
Hannes Janetzek
9d96be70fa
add string formatter
2013-10-09 01:56:02 +02:00
Hannes Janetzek
055cd92935
always internalize Tag.key
2013-10-09 01:56:02 +02:00
Hannes Janetzek
85257a0ac8
add TagSet class
2013-10-09 01:56:02 +02:00
Hannes Janetzek
d94874882c
print center tile of MapPosition
2013-10-09 01:56:02 +02:00
Hannes Janetzek
da53b02e8a
add OSM datatypes
2013-10-09 01:56:01 +02:00
Hannes Janetzek
923019a34a
improve GeometryBuffer API
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
2bc71090b3
join nested if
2013-10-09 01:56:01 +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
c305cbc828
start of an API for GeometryBuffer
...
- fix bug in ensure size
2013-10-09 01:56:00 +02:00
Hannes Janetzek
c08b481796
remove unused WebMercator
2013-10-09 01:56:00 +02:00
Hannes Janetzek
18a8b292d2
use MapPosition.scale: get rid of zoomLevel relative functions in MercatorProjection
2013-10-09 01:55:59 +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
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
a1fcac202c
unused function
2013-10-09 01:55:57 +02:00
Hannes Janetzek
efaafce08c
use PointF instead of android int Point
2013-10-09 01:55:56 +02:00
Hannes Janetzek
f508ddc1ff
this--
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
2cb8a9d45f
keep a reference to MapView in Overlay
2013-10-09 01:55:56 +02:00
Hannes Janetzek
55030c1166
refactor: dont pass matrices with MapPosition -> use GLRender.Matrices
2013-10-09 01:55:53 +02:00
Hannes Janetzek
f2b7a9fdf8
formatting
2013-10-09 01:55:52 +02:00
Hannes Janetzek
fb1b0d4087
docs
2013-10-09 01:55:51 +02:00
Hannes Janetzek
2f3ae3e7c0
add static 'building' key to Tag
2013-10-09 01:55:49 +02:00
Hannes Janetzek
6c28a63cc1
poi search: use bounding box when available
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
ab5962d56c
add osmdroid overlays + bonuspack
2013-10-09 01:40:21 +02:00
Hannes Janetzek
9efe46e3ba
cleanups
2013-10-09 01:39:51 +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
dae474922a
shorten string
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
7d7cf10d89
- fixed MapViewPosition scaleMap
...
- fixed GLRender isVisible() for proxy tiles
- smoother scale animation
2013-10-09 01:22:47 +02:00