Johannes Hofmann
4803a02187
Update dependencies (except glutin/winit)
hace 7 años
Johannes Hofmann
cf7f21acc3
Restructure modules
* Split up map_view module into
* map_view
* mercator_view
* orthografic_view
hace 7 años
Johannes Hofmann
333593ca95
Rename ViewMode -> Projection
ViewMode::Flat -> Projection::Mercator
ViewMode::Globe -> Projection::Orthografic
hace 7 años
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...
hace 7 años
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
hace 7 años
Johannes Hofmann
c8959c4fdc
coord: Add TileCoord::globe_norm
hace 7 años
Johannes Hofmann
e64385d0ca
Add TileCoord::children_iter method and Iterator
hace 7 años
Johannes Hofmann
cfbf9d20fa
globe_tile_layer: Add missing tiles to globe's edge
hace 7 años
Johannes Hofmann
f482a08091
coord: Fix conversion edge cases
This removes the holes of the globe at the poles.
hace 7 años
Johannes Hofmann
d51ed6a905
globe_tile_layer: Combine transformation matrices
hace 7 años
Johannes Hofmann
7034b667a9
Fix seams between globe tiles
hace 7 años
Johannes Hofmann
408f7da93e
Rename coord::LatLon -> coord::LatLonDeg
hace 7 años
Johannes Hofmann
f5f4e00d26
coord: Add some conversions and tests
hace 7 años
Johannes Hofmann
d7a9681521
Render the map as a sphere
A work in progress...
hace 7 años
Johannes Hofmann
86d79ff4e3
Fix test
hace 7 años
Johannes Hofmann
d3c51824af
Add option --list-paths
hace 7 años
Johannes Hofmann
71befdbef1
Update dependencies (glutin->winit is now 0.15.1)
hace 7 años
Johannes Hofmann
d543ec8738
search: Fix bug and report all matching ways
hace 7 años
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.
hace 7 años
Johannes Hofmann
e115c2acd1
search: Extract function for parallel blob iteration
hace 7 años
Johannes Hofmann
247770609a
Fix window title with restored session
hace 7 años
Johannes Hofmann
bfa801d2e3
Add option to store and restore last session
hace 7 años
Johannes Hofmann
c64b1bf28e
Fix clippy warnings
hace 7 años
Johannes Hofmann
2f257afb43
Add config key pbf_file
hace 7 años
Johannes Hofmann
2120e9b16f
Speed up searching
* Decode/search in parallel
* Start decoding the first Blob as soon as possible
* Update multiple markers at once
hace 7 años
Johannes Hofmann
fc394f3d20
Add coord::LatLon
hace 7 años
Johannes Hofmann
13d366fc1d
Extract code into tile_layer module
hace 7 años
Johannes Hofmann
ec1da095e8
Update dependencies
hace 7 años
Johannes Hofmann
3ffbe5011c
search_pbf: Update closure can change control flow
hace 7 años
Johannes Hofmann
ea610bdeaa
travis: Add Rust beta channel
hace 7 años
Johannes Hofmann
5f47684dc4
Extract code into marker_layer module
hace 7 años
Johannes Hofmann
b12e7885ed
Add search module
hace 7 años
Johannes Hofmann
2f5db2e7ad
Fix marker visibility calculation
hace 7 años
Johannes Hofmann
bea18cc290
Add some jobs to .appveyor.yml
hace 7 años
Johannes Hofmann
f478fc1e07
Search Nodes in addition to DenseNodes
hace 7 años
Johannes Hofmann
0f30790da8
Search PBF files and display matches as markers
Use the parameters -s and --pbf for this.
hace 7 años
Johannes Hofmann
c430500e69
Support drawing markers
hace 7 años
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`
hace 7 años
Johannes Hofmann
43ecb10350
context: Cache active buffer
This reduces calls to glUseBuffer.
hace 7 años
Johannes Hofmann
4962639d01
context: Cache active program
This would reduce the calls to glUseProgram if there actually was more
than one program.
hace 7 años
Johannes Hofmann
c7f1518897
Cache active texture unit, assign unit to texture
Each Texture is bound to a unique texture unit (glBindTexture is called
only once). Context keeps track of the current active texture unit and
reduces the number of glActiveTexture calls to a minimum.
hace 7 años
Johannes Hofmann
d52ac36ff6
Fix clippy warning
hace 7 años
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.
hace 7 años
Johannes Hofmann
78bcd3a363
config: Improve logging
hace 7 años
Johannes Hofmann
a215b897bb
main: Simplify event handling
and only call glViewport once per frame when resizing.
hace 7 años
Johannes Hofmann
43e33e7072
Use directories crate instead of xdg
This should improve platform independence.
hace 7 años
Johannes Hofmann
18111f53e8
map_view: Fix zoom calculation for pixel snapping
hace 7 años
Johannes Hofmann
5f0777c521
url_template: Small doc fixes
hace 7 años
Johannes Hofmann
02f1f9c9d6
Add .appveyor.yml
hace 7 años
Johannes Hofmann
19e28a35d8
Don't call glClear when map fills the whole screen
hace 7 años