895 Commits

Author SHA1 Message Date
Max Ammann
6aa0557c90
Configure rustfmt (#145)
* Configure rustfmt

* Apply new formatting rules
2022-07-17 16:14:29 +02:00
Max Ammann
d1b6360360
Improve headless rendering (#143)
* Remove util module in renderer

* Implement default for ZoomLevel

* Add function to clear the bufferpool

* Calculate camera height dynamically

* Deduplicate code and add sample tile-grid

* Remove unused function
2022-07-17 16:08:38 +02:00
karisair
6f409d7aa2
Fixes #27 - switched to macos-12 runner which is GA since 2022-06-13 (#157) 2022-07-17 15:58:31 +02:00
Max Ammann
d69f81f37f
Limit the tiles in view (#147)
* Limit the tiles in view by DEFAULT_TILE_VIEW_SIZE
2022-07-17 15:52:35 +02:00
Max Ammann
85fea15a7f
Update lyon (#153) 2022-07-15 20:59:28 +02:00
Max Ammann
a928fbd3fb
Avoid clipping in logic (#148)
* Reduce znear so the map is not cut when we tilt the camera

* Allow unbounded ground coordinate calculation

* Choose random zner and zfar values

* Move Queue to root module

Co-authored-by: Drabble <antoine.drabble@gmail.com>
2022-07-15 20:59:07 +02:00
Max Ammann
2b0a352f32
Run scheduled to we get to know when the build breaks because of dependencies (#154)
We do not use a .lock file, as maplibre is a library. Therefore, build could potentially fail if new updates to dependencies are pushed. By building maplibre scheduled we get to know that.
2022-07-14 08:28:06 +02:00
Birk Skyum
99a74d35df
Update deps with cargo upgrade (#152)
* Update deps with cargo upgrade

* Keep tracy versions aligned
2022-07-08 18:20:47 +02:00
BezPowell
93961379d2
Fix building guide link (#151)
* Fix building guide link.

Link to information on how to build for different platforms went to a 404. Changing to the current url.

* Change sentence to "running"

Co-authored-by: Antoine Drabble <antoine.drabble@gmail.com>
Co-authored-by: Max Ammann <max@maxammann.org>
2022-07-07 08:03:09 +00:00
Max Ammann
4391d216fa
Update rust toolchain version (#146) 2022-07-06 20:29:53 +00:00
Max Ammann
be5f855688
Improve CI (#144)
Co-authored-by: Yuri Astrakhan <yuriastrakhan@gmail.com>
2022-07-06 19:57:27 +00:00
Antoine Drabble
52dbca5cd1
Improve Mapbox Style support (#135)
* Add support for position, pitch and zoom in styles

* Make a struct for LatLon
2022-07-04 18:34:36 +00:00
Max Ammann
8018e76c80
Upgrade to wgpu 0.13 (#142) 2022-07-04 10:26:09 +02:00
Antoine Drabble
2b13668727
Allow panning with touch inputs (#130)
* Allow panning with touch inputs

* Fix code formatting

Co-authored-by: Max Ammann <max@maxammann.org>
2022-06-20 13:50:58 +00:00
Antoine Drabble
f0f244ee65
Fix window resizing in headed mode (#133)
* Resize the surface_config in reconfigure

* Create a resize_configure function for window
2022-06-20 15:00:38 +02:00
Antoine Drabble
172d64f1b3
Android improvements (#105)
* Improve the android demo project

* Install missing toolchain for the Android action

* Improve Android NDK installation docs

Co-authored-by: Maximilian Ammann <max@maxammann.org>
2022-06-11 21:08:10 +00:00
Jackson Shi
70cf25e0c1
Fix feature flag (#131)
* rm sqlite

* rm sqlite install

* update build dependencies

* add feature flag

Co-authored-by: Maximilian Ammann <max@maxammann.org>
2022-06-11 11:12:05 +00:00
Jackson Shi
74ca3ae4e5
Remove sqlite feature from windows build action (#120)
* rm sqlite

* rm sqlite install

* update build dependencies

Co-authored-by: Maximilian Ammann <max@maxammann.org>
2022-06-11 11:08:07 +02:00
Max Ammann
b202dc8dd4
Enable bechmarks (#129)
* Fix benchmarks

* Add test data

* Update drivers

* No vulkan-sdk
2022-06-04 10:55:09 +02:00
Max Ammann
1c46a77ce0
Improve headless feature structure (#128)
* Collect headless related stuff under feature flag

* Run clippy
2022-06-04 10:53:54 +02:00
Max Ammann
4a57d052d8
Merge pull request #78 from maxammann/architecture
Update architecture design artifacts
2022-06-03 15:27:03 +02:00
Maximilian Ammann
377c58c97a Fix artifact name 2022-06-03 14:20:51 +02:00
Max Ammann
f2e13c1317 Merge pull request #125 from maxammann/update-links
Fix links
2022-06-03 13:38:17 +02:00
Maximilian Ammann
ca2ad95260 Fix headers 2022-06-03 13:15:15 +02:00
Maximilian Ammann
6334e837aa Fix links 2022-06-03 13:11:36 +02:00
Max Ammann
95460435eb
Merge pull request #124 from maxammann/cloudflare-deploy
Deploy to cloudflare
2022-06-03 12:48:30 +02:00
Maximilian Ammann
ded62d76b1 Deploy to cloudflare 2022-06-03 12:47:59 +02:00
Max Ammann
4dbd47b09a Merge pull request #123 from maxammann/fix-deployment
Fix deployment of docs, and disable of demo
2022-06-03 11:54:52 +02:00
Maximilian Ammann
1ba6079ba2 Fix deployment of docs, and disable of demo 2022-06-03 11:10:15 +02:00
Max Ammann
cdc3c0e94e
Merge pull request #121 from maxammann/refactor-ci
Refactor CI
2022-06-02 23:41:35 +02:00
Maximilian Ammann
31fa4ed421 Fix web pipeline 2022-06-02 17:50:09 +02:00
Maximilian Ammann
0b820ab610 Speedup web checking by using same config 2022-06-02 16:45:10 +02:00
Maximilian Ammann
75f69fa840 Set NDK 2022-06-02 16:06:49 +02:00
Maximilian Ammann
c707fa3b5c Use reusable workflows 2022-06-02 15:46:34 +02:00
Maximilian Ammann
9728caa2ac Enable the test suite to use the CPU rasterizers (vulkan and egl) 2022-06-02 15:04:42 +02:00
Maximilian Ammann
07bddd2a8c Upgrade wgpu to git 2022-06-02 15:04:06 +02:00
Maximilian Ammann
dd2b88e2db Improve render test 2022-06-02 15:03:55 +02:00
Max Ammann
8248d4b4d7
Headless windows & Data pipeline (#119)
* Implement headless rendering

* Simplify window traits

* Simplify and fix headless rendering

* Rename HttpClient

* Ignore wasm-pack output

* Refactor stages and context

* Rename runnable to eventloop and fix variable names

* Fix tests

* Add pipeline draft

* Start implementing pipeline steps

* Use pipeline in headless rendering

* Improve the style significantly. The colors are taken from the default OSM map style

* Start working on a specific headless API

* Refactor thread state and pipeline

* Refactor thread state and pipeline

* Fix web

* Remove mem::replace usage

* Improve pipeline types

* Simplify pipeline API

* Add comment

* Fix tests

* Remove dynamic dispatch for schedule

* Add Run Test config

* Revive old legacy webworker example

* Fix resize detection

* Cleanup dependencies and simplify bounds

* Conditionally enable create_png

* Add some comments and rename

* Run more tests in CI

* Fix tests for various platforms

* Install missing dependency
2022-06-01 19:01:05 +02:00
Maximilian Ammann
cef804ef18 Install missing dependency 2022-06-01 18:19:33 +02:00
Maximilian Ammann
873e351890 Fix tests for various platforms 2022-06-01 18:05:38 +02:00
Maximilian Ammann
3f821e7f66 Run more tests in CI 2022-06-01 17:21:52 +02:00
Maximilian Ammann
9c5dc1965b Add some comments and rename 2022-06-01 17:15:24 +02:00
Maximilian Ammann
a150d8776c Conditionally enable create_png 2022-06-01 14:23:18 +02:00
Maximilian Ammann
6a4f240ebb Merge branch 'main' into data-pipeline 2022-06-01 14:07:48 +02:00
Maximilian Ammann
200e16f345 Cleanup dependencies and simplify bounds 2022-06-01 13:59:12 +02:00
Yaroslav Biletskyi
05dbdac924
Struct for zoom level (#118)
* add struct for zoom level

* fix linter errors

* fix build errors

* fixed for PR comments

* Simplify stencil_reference_value, the z does not need to be taken into account

Co-authored-by: Maximilian Ammann <max@maxammann.org>
2022-06-01 13:26:58 +02:00
Maximilian Ammann
cfba8189c3 Fix resize detection 2022-06-01 12:30:09 +02:00
Maximilian Ammann
005dca064e Revive old legacy webworker example 2022-05-31 21:55:20 +02:00
Maximilian Ammann
0e2f8ef2c9 Add Run Test config 2022-05-31 21:54:34 +02:00
Maximilian Ammann
774708a787 Remove dynamic dispatch for schedule 2022-05-31 21:45:44 +02:00