Johannes Hofmann
7a3a12aa68
Rename tile_layer -> mercator_tile_layer
and TileLayer -> MercatorTileLayer
vor 7 Jahren
Johannes Hofmann
cd29a5f0c8
Update glutin (to 0.17) and become DPI aware
vor 7 Jahren
Johannes Hofmann
cf7f21acc3
Restructure modules
* Split up map_view module into
* map_view
* mercator_view
* orthografic_view
vor 7 Jahren
Johannes Hofmann
333593ca95
Rename ViewMode -> Projection
ViewMode::Flat -> Projection::Mercator
ViewMode::Globe -> Projection::Orthografic
vor 7 Jahren
Johannes Hofmann
696d382fc8
Add globe view mode, partially solve tile visibility
* Toggle between ViewMode::Flat and ViewMode::Globe with Ctrl+G
* Approach tile visibility problem at the sphere
vor 7 Jahren
Johannes Hofmann
408f7da93e
Rename coord::LatLon -> coord::LatLonDeg
vor 7 Jahren
Johannes Hofmann
d7a9681521
Render the map as a sphere
A work in progress...
vor 7 Jahren
Johannes Hofmann
d3c51824af
Add option --list-paths
vor 7 Jahren
Johannes Hofmann
247770609a
Fix window title with restored session
vor 7 Jahren
Johannes Hofmann
bfa801d2e3
Add option to store and restore last session
vor 7 Jahren
Johannes Hofmann
2120e9b16f
Speed up searching
* Decode/search in parallel
* Start decoding the first Blob as soon as possible
* Update multiple markers at once
vor 7 Jahren
Johannes Hofmann
fc394f3d20
Add coord::LatLon
vor 7 Jahren
Johannes Hofmann
13d366fc1d
Extract code into tile_layer module
vor 7 Jahren
Johannes Hofmann
3ffbe5011c
search_pbf: Update closure can change control flow
vor 7 Jahren
Johannes Hofmann
5f47684dc4
Extract code into marker_layer module
vor 7 Jahren
Johannes Hofmann
b12e7885ed
Add search module
vor 7 Jahren
Johannes Hofmann
f478fc1e07
Search Nodes in addition to DenseNodes
vor 7 Jahren
Johannes Hofmann
0f30790da8
Search PBF files and display matches as markers
Use the parameters -s and --pbf for this.
vor 7 Jahren
Johannes Hofmann
c430500e69
Support drawing markers
vor 7 Jahren
Johannes Hofmann
5891c0de46
Cache enabled vertex attributes, store params
* Cache the enabled vertex attributes in `Context`
* The vertex attribute parameters (offset, stride, ...) are not cached,
yet
* Store parameters as `VertexAttribParams` in `Program`
vor 7 Jahren
Johannes Hofmann
38d1cf35e5
Restructure OpenGL context sharing
Program, Buffer, Texture... structs no longer store a reference to a
Context. Now it has to be passed explicitly to all methods that mutate
the OpenGL state. This enables caching the state and removing redundant
calls to gl* functions.
vor 7 Jahren
Johannes Hofmann
a215b897bb
main: Simplify event handling
and only call glViewport once per frame when resizing.
vor 7 Jahren
Johannes Hofmann
43e33e7072
Use directories crate instead of xdg
This should improve platform independence.
vor 7 Jahren
Johannes Hofmann
19e28a35d8
Don't call glClear when map fills the whole screen
vor 7 Jahren
Johannes Hofmann
639c9f945f
Add module url_template
vor 7 Jahren
Johannes Hofmann
b26ef4c333
Use Display trait for more readable error messages
vor 7 Jahren
Johannes Hofmann
ff177a2d40
Advance in integer zoom levels with step zoom
vor 7 Jahren
Johannes Hofmann
fcbad65155
Fix clippy warnings
vor 7 Jahren
Johannes Hofmann
56ad75b327
Update glutin (to 0.15), image (to 0.19) & others
vor 7 Jahren
Johannes Hofmann
201e63197c
Merge command line arguments and `Config`
vor 7 Jahren
Johannes Hofmann
e4e11e76cd
Move glClear call out of the critical path
vor 7 Jahren
Johannes Hofmann
9c4535e568
Move clap to new module: args.rs
vor 7 Jahren
Johannes Hofmann
a6c0ea8561
Use Display trait for printing errors
...instead of using the `description` method.
vor 7 Jahren
Johannes Hofmann
5f2d077f41
Switch from servo-glutin to glutin, update dependencies
vor 7 Jahren
Johannes Hofmann
cfda9c21aa
Use Ctrl to switch to scrolling on mouse wheel events
vor 7 Jahren
Johannes Hofmann
d2f295ce4b
Show modules in docs, fix doc warnings
vor 7 Jahren
Johannes Hofmann
5d67d3bef5
Add --sync option
vor 7 Jahren
Johannes Hofmann
100562fdc1
Add member min_zoom to TileSource
vor 7 Jahren
Johannes Hofmann
7a1d847cf4
Fix some clippy warnings, update dependencies
vor 8 Jahren
Johannes Hofmann
24ef61939c
Increase tile atlas size when needed
vor 8 Jahren
Johannes Hofmann
1abbe6393d
Rename tile_cache_gl -> tile_atlas
vor 8 Jahren
Johannes Hofmann
a91637ade6
Rename render_zoom_level -> tile_zoom
vor 8 Jahren
Johannes Hofmann
b7988fd29f
Allow changing render zoom level
vor 8 Jahren
Johannes Hofmann
2cbc675050
Overestimate draw duration to reduce missed VSyncs
vor 8 Jahren
Johannes Hofmann
7b21669c01
Allow setting frames per second
vor 8 Jahren
Johannes Hofmann
00b904a720
Add option for offline usage
vor 8 Jahren
Johannes Hofmann
f1a6922601
Use log, env_logger crates for logging
vor 8 Jahren
Johannes Hofmann
68bbe544e5
Parse command line arguments, allow setting the config file
vor 8 Jahren
Johannes Hofmann
4a1bcbe16f
Read/Create config file from/in XDG directory
vor 8 Jahren
Johannes Hofmann
67ab07653c
Parse config file without serde
vor 8 Jahren