Johannes Hofmann
2651bfe138
Fix clippy warnings
преди 7 години
Johannes Hofmann
b3e327b59c
Add overly dramatic atmosphere layer
Toggle with Ctrl+h
преди 7 години
Johannes Hofmann
1bad7a91bd
Also draw markers in orthografic view
преди 7 години
Johannes Hofmann
b3dc228f1e
Remove redundant viewport parameter from draw fns
преди 7 години
Johannes Hofmann
2642342dab
Add module projection, store projection in Session
and restore the projection of the last session.
преди 7 години
Johannes Hofmann
69a245c187
Fix accuracy issue at high zoom levels in ortho view
This now uses an f64 transformation matrix (instead of f32) to transform
points on the sphere to screen coordinates. Conversion to f32 vertex
positions happens as a last step before uploading to a GPU buffer.
преди 7 години
Johannes Hofmann
6269775c2c
buffer: Add missing draw modes
преди 7 години
Johannes Hofmann
7d5997991a
Improve tile rendering in orthografic view
* Reach feature parity with mercator view:
* Resize tile atlas to reduce draw calls
* Fill in tiles from other zoom layers
преди 7 години
Johannes Hofmann
d92bde5ac4
Add trait tile_atlas::VisibleTilesProvider
This enables the implementation of TileAtlas::textured_visible_tiles for
different kinds of visible tiles, e.g. for different layers.
преди 7 години
Johannes Hofmann
7a3a12aa68
Rename tile_layer -> mercator_tile_layer
and TileLayer -> MercatorTileLayer
преди 7 години
Johannes Hofmann
2084a7bb2d
Update dependencies
This fixes a glutin/winit issue that resulted in 100% CPU usage because
of repeated X11 ConfigureWindow/ConfigureNotify events.
преди 7 години
Johannes Hofmann
cf5a195488
Spherical tile visibility, part III
Still a partial solution. Uses region growing starting from the central
tile and checks if at least one of the vertices is visible.
преди 7 години
Johannes Hofmann
eefea571ea
Add orthografic_view::tile_neighbors and tests
преди 7 години
Johannes Hofmann
cd29a5f0c8
Update glutin (to 0.17) and become DPI aware
преди 7 години
Johannes Hofmann
4803a02187
Update dependencies (except glutin/winit)
преди 7 години
Johannes Hofmann
cf7f21acc3
Restructure modules
* Split up map_view module into
* map_view
* mercator_view
* orthografic_view
преди 7 години
Johannes Hofmann
333593ca95
Rename ViewMode -> Projection
ViewMode::Flat -> Projection::Mercator
ViewMode::Globe -> Projection::Orthografic
преди 7 години
Johannes Hofmann
c8f358ebc6
Spherical tile visibility, part II
Still not solved. Tried to approach by calculating properties of
elliptical arcs, but there are so many edge cases...
преди 7 години
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
преди 7 години
Johannes Hofmann
c8959c4fdc
coord: Add TileCoord::globe_norm
преди 7 години
Johannes Hofmann
e64385d0ca
Add TileCoord::children_iter method and Iterator
преди 7 години
Johannes Hofmann
cfbf9d20fa
globe_tile_layer: Add missing tiles to globe's edge
преди 7 години
Johannes Hofmann
f482a08091
coord: Fix conversion edge cases
This removes the holes of the globe at the poles.
преди 7 години
Johannes Hofmann
d51ed6a905
globe_tile_layer: Combine transformation matrices
преди 7 години
Johannes Hofmann
7034b667a9
Fix seams between globe tiles
преди 7 години
Johannes Hofmann
408f7da93e
Rename coord::LatLon -> coord::LatLonDeg
преди 7 години
Johannes Hofmann
f5f4e00d26
coord: Add some conversions and tests
преди 7 години
Johannes Hofmann
d7a9681521
Render the map as a sphere
A work in progress...
преди 7 години
Johannes Hofmann
86d79ff4e3
Fix test
преди 7 години
Johannes Hofmann
d3c51824af
Add option --list-paths
преди 7 години
Johannes Hofmann
71befdbef1
Update dependencies (glutin->winit is now 0.15.1)
преди 7 години
Johannes Hofmann
d543ec8738
search: Fix bug and report all matching ways
преди 7 години
Johannes Hofmann
e2f7171031
search: Find OSM ways in a second pass
search::par_search_blocking: Remember node ids for matching ways and
return the positions of these nodes in a second pass over the file.
преди 7 години
Johannes Hofmann
e115c2acd1
search: Extract function for parallel blob iteration
преди 7 години
Johannes Hofmann
247770609a
Fix window title with restored session
преди 7 години
Johannes Hofmann
bfa801d2e3
Add option to store and restore last session
преди 7 години
Johannes Hofmann
c64b1bf28e
Fix clippy warnings
преди 7 години
Johannes Hofmann
2f257afb43
Add config key pbf_file
преди 7 години
Johannes Hofmann
2120e9b16f
Speed up searching
* Decode/search in parallel
* Start decoding the first Blob as soon as possible
* Update multiple markers at once
преди 7 години
Johannes Hofmann
fc394f3d20
Add coord::LatLon
преди 7 години
Johannes Hofmann
13d366fc1d
Extract code into tile_layer module
преди 7 години
Johannes Hofmann
ec1da095e8
Update dependencies
преди 7 години
Johannes Hofmann
3ffbe5011c
search_pbf: Update closure can change control flow
преди 7 години
Johannes Hofmann
ea610bdeaa
travis: Add Rust beta channel
преди 7 години
Johannes Hofmann
5f47684dc4
Extract code into marker_layer module
преди 7 години
Johannes Hofmann
b12e7885ed
Add search module
преди 7 години
Johannes Hofmann
2f5db2e7ad
Fix marker visibility calculation
преди 7 години
Johannes Hofmann
bea18cc290
Add some jobs to .appveyor.yml
преди 7 години
Johannes Hofmann
f478fc1e07
Search Nodes in addition to DenseNodes
преди 7 години
Johannes Hofmann
0f30790da8
Search PBF files and display matches as markers
Use the parameters -s and --pbf for this.
преди 7 години