55 Commits

Author SHA1 Message Date
Maximilian Ammann
6334e837aa Fix links 2022-06-03 13:11:36 +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
Maximilian Ammann
873e351890 Fix tests for various platforms 2022-06-01 18:05:38 +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
774708a787 Remove dynamic dispatch for schedule 2022-05-31 21:45:44 +02:00
Maximilian Ammann
06cca68e8e Fix tests 2022-05-31 21:24:52 +02:00
Maximilian Ammann
f17e3a6ef2 Add comment 2022-05-31 21:15:55 +02:00
Maximilian Ammann
b80aa42fdb Simplify pipeline API 2022-05-31 21:15:55 +02:00
Maximilian Ammann
e1aceabd0b Improve pipeline types 2022-05-31 21:15:55 +02:00
Maximilian Ammann
e1706b0228 Remove mem::replace usage 2022-05-31 21:15:55 +02:00
Maximilian Ammann
79a4f6d195 Fix web 2022-05-31 21:15:55 +02:00
Maximilian Ammann
deb442287e Refactor thread state and pipeline 2022-05-31 21:15:55 +02:00
Maximilian Ammann
c40f39a72c Refactor thread state and pipeline 2022-05-31 21:15:55 +02:00
Maximilian Ammann
ad6a0be20d Start working on a specific headless API 2022-05-31 21:15:55 +02:00
Maximilian Ammann
1c297ff10b Improve the style significantly. The colors are taken from the default OSM map style 2022-05-31 21:15:55 +02:00
Maximilian Ammann
94b8f27bf8 Use pipeline in headless rendering 2022-05-31 21:15:55 +02:00
Maximilian Ammann
cdb7f1395e Start implementing pipeline steps 2022-05-31 21:15:55 +02:00
Maximilian Ammann
1fd40c2fe9 Add pipeline draft 2022-05-31 21:15:55 +02:00
Maximilian Ammann
40db69c864 Fix tests 2022-05-31 21:15:52 +02:00
Maximilian Ammann
810954f49d Rename runnable to eventloop and fix variable names 2022-05-31 21:14:46 +02:00
Maximilian Ammann
675e62bae1 Refactor stages and context 2022-05-31 21:14:46 +02:00
Maximilian Ammann
ae36e4f7d4 Rename HttpClient 2022-05-31 21:14:46 +02:00
Maximilian Ammann
03f38c2725 Simplify and fix headless rendering 2022-05-31 21:14:46 +02:00
Maximilian Ammann
355977e3b7 Simplify window traits 2022-05-31 21:14:46 +02:00
Maximilian Ammann
1e63718dfc Implement headless rendering 2022-05-31 21:14:46 +02:00
Zsolt Bölöny
e59dacdb45
Fix unit test build and run tests on CI (on some platforms) (#117)
* Fix unit test build

* Don't run static tile fetching test if no tiles are embedded

* Don't test code examples which use private modules

* Disable Tokio tests on WASM32 platform

* Move linux-demo action into demo folder for consistency

* Run tests on Windows and Linux (at least)
2022-05-31 21:07:54 +02:00
Jackson Shi
6bc9a792fd
Add sqlite feature flag (#111)
Co-authored-by: Max Ammann <max@maxammann.org>
2022-05-26 11:27:05 +02:00
Yuri Astrakhan
204f8625f6
Remove tilejson fork (#114)
TileJSON code is not being used anywhere, so removing it to keep things simple.  In the future, lets try to use [tilejson crate](https://crates.io/crates/tilejson), which is nearly identical to the code being deleted.
2022-05-25 19:38:50 +02:00
Max Ammann
916af61abc
Add Render Graph from Bevy (#93)
* Add render graph from bevy with graph runner

* Add surface

* Continue to refactor renderer

* Make ScheduleMethod object safe in order to be able to have a dyn object in MapContext

* Cleanup, add some more documentation and simplify

Support resizing

Fix late init

* Update apple docs

* Give bevy attribution

* Pass github token

* Improve some comments
2022-05-23 16:53:51 +02:00
Drabble
1f43dfc480
Add Windows as a target OS in Cargo dependencies (#103) 2022-05-23 10:55:16 +02:00
Drabble
c3edea26e5
Improve the Cargo documentation (#87)
* Improve the Cargo documentation

* Fix mistakes with merge on main branch

* Fix the guide book url within the API documentation

* Update the documentation on `QuadKey`
2022-05-12 13:38:10 +00:00
Max Ammann
feff3201c9
Move winit code to maplibre-winit (#86)
* Extract winit code to maplibre-winit

* Run clippy

* Fix android and apple

* Remove import

* Fix android compilation

* Fix android

* Update dependencies

* Fix android

* Fix android

* Add map window config

* Fix feature flag

* Add title to config

* Remove unused export

* Fix for android
2022-05-10 08:58:45 +02:00
Max Ammann
bac7ffb8c1
Move platform specific code to web (#63)
* Add a view state for input processing

* Move platform specific web code to web crate

* Run clippy

* Fix apple and android

* Move error function

* Do not enable all features

* Remove header from .h file

* Refactor to use where clauses
2022-05-02 20:29:05 +02:00
Max Ammann
7df6ca49d3
Fix window size (#62)
* Add a MapWindow traid which exposes the window dimensions.

* Remove broken run configs

* Fix run config

* Adjust FromCanvas
2022-05-02 16:18:38 +02:00
Max Ammann
a10ab2f888
Prepare for publishing on crates.io (#46)
* Update geozero

* Make maplibre- packages ready for publishing
2022-05-01 17:15:48 +00:00
Yuri Astrakhan
4f2a5da25a
optimize zoom bounds (#38)
Minor optimization - no point to compute bounds on every calculation - enough to keep them around with const pre-generation.

Co-authored-by: Max Ammann <max@maxammann.org>
2022-05-01 16:23:38 +00:00
Maximilian Ammann
722a1f5579 Add missing features 2022-04-25 21:01:41 +02:00
Maximilian Ammann
6e01e48e32 Enable all rendering backends 2022-04-25 19:23:47 +02:00
Maximilian Ammann
d478775113 Format files 2022-04-23 18:39:51 +02:00
Maximilian Ammann
630a1e4bf7 Allow late initialization of render state 2022-04-23 18:37:12 +02:00
Maximilian Ammann
08a3983390 Fix version declarations 2022-04-23 18:35:20 +02:00
Max Ammann
0512e536f9
Refactor XCode project and build xcframework (#15)
Refactored xcode project into a framework.

* This framework can be bundled into an xcframework
* The xcframework can be added to a swift package

Deployment happens through #21
2022-04-23 14:36:51 +02:00
Maximilian Ammann
c57b67426e Fix formatting 2022-04-22 21:22:22 +02:00