From a7800bf14c2ca2ba3f47e8c9866896e0f515f500 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Wed, 20 Apr 2022 12:17:32 +0200 Subject: [PATCH 1/4] fix clone url in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6125d4dc..a647b6f8 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ https://user-images.githubusercontent.com/905221/163552617-5db04c66-23e3-4915-87 Now, to clone the project: ```bash -git clone --recursive git@github.com/maxammann/mapr +git clone --recursive git@github.com:maxammann/mapr ``` and then build it for running on a desktop: From ac3224256e001784082c16e0238ecc5f5cef4673 Mon Sep 17 00:00:00 2001 From: Maximilian Ammann Date: Wed, 20 Apr 2022 13:06:24 +0200 Subject: [PATCH 2/4] Rename to maplibre-rs except for apple stuff --- .github/workflows/rust.yml | 24 ++++----- .gitignore | 2 +- Cargo.lock | 2 +- Cargo.toml | 4 +- README.md | 50 +++++++------------ benches/render.rs | 4 +- benches/tessellation.rs | 4 +- docs/book.toml | 2 +- docs/src/SUMMARY.md | 2 +- docs/src/appendix/link-collection.md | 2 +- docs/src/developer-log.md | 2 +- docs/src/development-documents/caching.md | 4 +- .../figures/gpu-stack.drawio.svg | 2 +- .../figures/os-stack.drawio.svg | 2 +- docs/src/development-guide/building.md | 2 +- examples/desktop.rs | 4 +- justfile | 6 +-- src/coords.rs | 2 +- src/io/source_client.rs | 2 +- src/platform/apple/mod.rs | 2 +- src/platform/web/mod.rs | 2 +- src/render/mod.rs | 4 +- web/.gitignore | 2 +- web/index.ts | 2 +- web/package.json | 4 +- web/pool_worker.ts | 2 +- web/src/index.ejs | 2 +- web/webpack.config.js | 4 +- web/worker.ts | 2 +- 29 files changed, 66 insertions(+), 82 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5cfad7e4..78b7860d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -53,12 +53,12 @@ jobs: run: | echo "$SSH_KEY" > id_rsa chmod 600 id_rsa - ssh -o StrictHostKeyChecking=no -i id_rsa max@maxammann.org 'mkdir -p ~/public_html/mapr/api-docs && find ~/public_html/mapr/api-docs -type f -not -name ".htaccess" -delete' - rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "target/x86_64-unknown-linux-gnu/doc/." max@maxammann.org:~/public_html/mapr/api-docs/ + ssh -o StrictHostKeyChecking=no -i id_rsa max@maxammann.org 'mkdir -p ~/public_html/maplibre-rs/api-docs && find ~/public_html/maplibre-rs/api-docs -type f -not -name ".htaccess" -delete' + rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "target/x86_64-unknown-linux-gnu/doc/." max@maxammann.org:~/public_html/maplibre-rs/api-docs/ - uses: actions/upload-artifact@v2 with: - name: mapr - path: target/debug/mapr + name: maplibre-rs + path: target/debug/maplibre build-aarch64-android: runs-on: ubuntu-20.04 @@ -85,8 +85,8 @@ jobs: run: just build-apk - uses: actions/upload-artifact@v2 with: - name: mapr.apk - path: target/debug/apk/mapr-demo.apk + name: maplibre-rs.apk + path: target/debug/apk/maplibre-rs-demo.apk build-wasm-webgl: runs-on: ubuntu-20.04 @@ -118,8 +118,8 @@ jobs: run: | echo "$SSH_KEY" > id_rsa chmod 600 id_rsa - ssh -o StrictHostKeyChecking=no -i id_rsa max@maxammann.org 'mkdir -p ~/public_html/mapr/webgl && find ~/public_html/mapr/webgl -type f -not -name ".htaccess" -delete' - rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "dist/demo/." max@maxammann.org:~/public_html/mapr/webgl/ + ssh -o StrictHostKeyChecking=no -i id_rsa max@maxammann.org 'mkdir -p ~/public_html/maplibre-rs/webgl && find ~/public_html/maplibre-rs/webgl -type f -not -name ".htaccess" -delete' + rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "dist/demo/." max@maxammann.org:~/public_html/maplibre-rs/webgl/ build-wasm-webgpu: runs-on: ubuntu-20.04 @@ -151,8 +151,8 @@ jobs: run: | echo "$SSH_KEY" > id_rsa chmod 600 id_rsa - ssh -o StrictHostKeyChecking=no -i id_rsa max@maxammann.org 'mkdir -p ~/public_html/mapr/webgpu && find ~/public_html/mapr/webgpu -type f -not -name ".htaccess" -delete' - rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "dist/demo/." max@maxammann.org:~/public_html/mapr/webgpu/ + ssh -o StrictHostKeyChecking=no -i id_rsa max@maxammann.org 'mkdir -p ~/public_html/maplibre-rs/webgpu && find ~/public_html/maplibre-rs/webgpu -type f -not -name ".htaccess" -delete' + rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "dist/demo/." max@maxammann.org:~/public_html/maplibre-rs/webgpu/ book: runs-on: ubuntu-20.04 @@ -185,5 +185,5 @@ jobs: run: | echo "$SSH_KEY" > id_rsa chmod 600 id_rsa - ssh -o StrictHostKeyChecking=no -i id_rsa max@maxammann.org 'mkdir -p ~/public_html/mapr/docs && find ~/public_html/mapr/docs -type f -not -name ".htaccess" -delete' - rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "book/." max@maxammann.org:~/public_html/mapr/docs/ + ssh -o StrictHostKeyChecking=no -i id_rsa max@maxammann.org 'mkdir -p ~/public_html/maplibre-rs/docs && find ~/public_html/maplibre-rs/docs -type f -not -name ".htaccess" -delete' + rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "book/." max@maxammann.org:~/public_html/maplibre-rs/docs/ diff --git a/.gitignore b/.gitignore index de68db31..07585a30 100644 --- a/.gitignore +++ b/.gitignore @@ -18,7 +18,7 @@ dist/ # Cache by reqwest-middleware-cache *reqwest*cache* -*mapr*cache* +*maplibre*cache* logs/ diff --git a/Cargo.lock b/Cargo.lock index b23f3476..242f3961 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1750,7 +1750,7 @@ dependencies = [ ] [[package]] -name = "mapr" +name = "maplibre" version = "0.1.0" dependencies = [ "bytemuck", diff --git a/Cargo.toml b/Cargo.toml index afb197f0..891696cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ members = [ ] [package] -name = "mapr" +name = "maplibre" version = "0.1.0" authors = ["Maximilian Ammann "] edition = "2021" @@ -126,7 +126,7 @@ name = "render" harness = false [package.metadata.android] -apk_name = "mapr-demo" +apk_name = "maplibre-rs-demo" [[package.metadata.android.uses_permission]] name = "android.permission.INTERNET" [[package.metadata.android.uses_permission]] diff --git a/README.md b/README.md index 6125d4dc..aa4540d1 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -

mapr

+

maplibre-rs

Logo

- preview + preview
Native Maps for Web, Mobile and Linux @@ -15,12 +15,12 @@
Stability - - + Build status - - + Build status
@@ -31,13 +31,13 @@ Example | - + Book | - + API | - + Chat in Matrix Space @@ -53,16 +53,16 @@ next-gen mapping solution. ## Description -mapr is a portable and performant vector maps renderer. We aim to support the web, mobile and desktop applications. This +maplibre-rs is a portable and performant vector maps renderer. We aim to support the web, mobile and desktop applications. This is achieved by the novel [WebGPU](https://www.w3.org/TR/webgpu/) specification. Plenty of native implementations are already implementing this specification. On the web it is implemented by Firefox, Chrome and Safari. There are also -standalone implementations which directly use Vulkan, OpenGL or Metal as a backend. Those backends allow mapr to run on +standalone implementations which directly use Vulkan, OpenGL or Metal as a backend. Those backends allow maplibre-rs to run on mobile and desktop applications. Rust is used as a Lingua-franka on all platforms. This is made possible by WebAssembly which allows us to use Rust for web development. -The goal of mapr is to render maps in order to visualize data. Right now the goal of mapr is not to replace existing +The goal of maplibre-rs is to render maps in order to visualize data. Right now the goal of maplibre-rs is not to replace existing vector map renderers like Google Maps, Apple Maps or MapLibre. The current implementation serves as a proof-of-concept of the used technology stack. It is unclear whether the high-performance requirements of rendering maps using vector graphics are achievable using the current stack. @@ -86,9 +86,12 @@ https://user-images.githubusercontent.com/905221/163552617-5db04c66-23e3-4915-87 * Rendering Text * Per-Feature Rendering * Rendering: + * Labels + * Symbols * Raster data * 3D terrain * Hill-shade (DEM) +* Collision detection * Support for: * GeoJSON * API for: @@ -96,31 +99,12 @@ https://user-images.githubusercontent.com/905221/163552617-5db04c66-23e3-4915-87 * Swift * Java/Kotlin -## Repository Layout - -(Note: to be changed) - -```bash -. -├── docs # Documentation for mapr -├── src # The source code of the mapr library -├── libs # Libraries which will eventually be published as separate crates -│ ├── mbtiles # Library for extracting .mbtiles files -│ ├── style_spec # Library for interpreting MapLibre style specifications -│ └── wgsl_validate # Library for validating WGSL shaders -├── apple # Platform specific files for Apple (iOS and MacOS) -├── web # Platform specific files for Web (WebGL and WebGPU) -├── benches # Benchmarks for specific parts of the library -├── examples # Examples which can be run -└── test-data # Geo data which can be used for tests (Usually as .mbtiles) -``` - ## Building & Running Now, to clone the project: ```bash -git clone --recursive git@github.com/maxammann/mapr +git clone --recursive git@github.com/maplibre/maplibre-rs ``` and then build it for running on a desktop: @@ -136,7 +120,7 @@ cargo run --example desktop -- ``` More information about building for different platforms can be -found [here](https://maxammann.org/mapr-docs/building.html). +found [here](https://maxammann.org/maplibre-rs/docs/development-guide/building.html). > __Note for Mac__: Before opening the XCode project, you need to build manually using the following command: > `cargo build --target aarch64-apple-darwin --lib` diff --git a/benches/render.rs b/benches/render.rs index 2f991660..d91bb01a 100644 --- a/benches/render.rs +++ b/benches/render.rs @@ -1,6 +1,6 @@ use criterion::{criterion_group, criterion_main, Criterion}; -use mapr::window::FromWindow; -use mapr::{MapBuilder, ScheduleMethod, TokioScheduleMethod}; +use maplibre::window::FromWindow; +use maplibre::{MapBuilder, ScheduleMethod, TokioScheduleMethod}; fn render(c: &mut Criterion) { c.bench_function("render", |b| { diff --git a/benches/tessellation.rs b/benches/tessellation.rs index 03868822..254a0dfd 100644 --- a/benches/tessellation.rs +++ b/benches/tessellation.rs @@ -1,7 +1,7 @@ use criterion::{criterion_group, criterion_main, Criterion}; use lyon::tessellation::VertexBuffers; -use mapr::benchmarking::io::static_tile_fetcher::StaticTileFetcher; -use mapr::benchmarking::tessellation::Tessellated; +use maplibre::benchmarking::io::static_tile_fetcher::StaticTileFetcher; +use maplibre::benchmarking::tessellation::Tessellated; use std::io::Cursor; const MUNICH_X: u32 = 17425; diff --git a/docs/book.toml b/docs/book.toml index 999571d7..50112f45 100644 --- a/docs/book.toml +++ b/docs/book.toml @@ -3,4 +3,4 @@ authors = ["Maximilian Ammann"] language = "en" multilingual = false src = "src" -title = "mapr documentation" +title = "maplibe-rs documentation" diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md index cb19088d..d326435e 100644 --- a/docs/src/SUMMARY.md +++ b/docs/src/SUMMARY.md @@ -1,4 +1,4 @@ -# mapr documentation +# maplibre-rs documentation [Introduction](./introduction.md) [Supported Platforms](./supported-platforms.md) diff --git a/docs/src/appendix/link-collection.md b/docs/src/appendix/link-collection.md index 5a28d38f..14605993 100644 --- a/docs/src/appendix/link-collection.md +++ b/docs/src/appendix/link-collection.md @@ -2,7 +2,7 @@ ## Talks -* [Project_ Demonstration_mapr](https://docs.google.com/presentation/d/1mhpKTIf3iv3T1Lucfuyiry5Vg9bNuzLCXkLLKN3R1AA/edit?usp=sharing) +* [2022-04-13-World-in-Vectors](https://docs.google.com/presentation/d/e/2PACX-1vRsi-sGsqwUXEIQDClaZF4BH2RgjufQQ-yxFDWeOGrm0EbIf4H4lFY3U4at4cAIlxSTWi4XyF2LKjRu/pub) ## Related Projects diff --git a/docs/src/developer-log.md b/docs/src/developer-log.md index f8f0375b..a97df451 100644 --- a/docs/src/developer-log.md +++ b/docs/src/developer-log.md @@ -1,3 +1,3 @@ # Developer Log -I'm regularly releasing blog posts [on my blog](https://maxammann.org/categories/mapr/). \ No newline at end of file +I'm regularly releasing blog posts [on my blog](https://maxammann.org/categories/maplibre/). \ No newline at end of file diff --git a/docs/src/development-documents/caching.md b/docs/src/development-documents/caching.md index 4d9d9ade..046d1292 100644 --- a/docs/src/development-documents/caching.md +++ b/docs/src/development-documents/caching.md @@ -1,7 +1,7 @@ # Caching -The caching for mapr is handled on the networking layer. This means that data which is fetched over slow IO is cached in -the format of the network requests. The mapr library is not introducing a separate serialization format for caching. +The caching for maplibre-rs is handled on the networking layer. This means that data which is fetched over slow IO is cached in +the format of the network requests. The maplibre-rs library is not introducing a separate serialization format for caching. Instead, caching functionality of HTTP client libraries of the web platform are used. This has the advantage that we can honor HTTP headers which configure caching. This is very important for fetched tiles, as they can have an expiry date. diff --git a/docs/src/development-documents/figures/gpu-stack.drawio.svg b/docs/src/development-documents/figures/gpu-stack.drawio.svg index 2ae8ba5f..4769a974 100644 --- a/docs/src/development-documents/figures/gpu-stack.drawio.svg +++ b/docs/src/development-documents/figures/gpu-stack.drawio.svg @@ -1,4 +1,4 @@ -
mapr
mapr
wgpu
wgpu
Metal
Metal
Vulkan
Vulkan
WebGPU JS
WebGPU JS
OpenGL (ES)
Angle
OpenGL (ES)...
Renderer in
Browser
Renderer in...
WebGPU    Specification
WebGPU    Specification
Text is not SVG - cannot display
\ No newline at end of file +
maplibre-rs
maplibre-rs
wgpu
wgpu
Metal
Metal
Vulkan
Vulkan
WebGPU JS
WebGPU JS
OpenGL (ES)
Angle
OpenGL (ES)...
Renderer in
Browser
Renderer in...
WebGPU    Specification
WebGPU    Specification
Text is not SVG - cannot display
\ No newline at end of file diff --git a/docs/src/development-documents/figures/os-stack.drawio.svg b/docs/src/development-documents/figures/os-stack.drawio.svg index 670080fe..acafd4b9 100644 --- a/docs/src/development-documents/figures/os-stack.drawio.svg +++ b/docs/src/development-documents/figures/os-stack.drawio.svg @@ -1,4 +1,4 @@ -
Operating System
Operating System
Compilation Target
Compilation Target
mapr
mapr
WASM with threads support
WASM with threads support
Native Code (X86, ARM)
Native Code (X86, ARM)
Browser (Firefox/Chrome)
Browser (Firefox/Chrome)
Linux/Anroid/iOS
Linux/Anroid/iOS
Rust Compiler 
Rust Compiler 
Viewer does not support full SVG 1.1
\ No newline at end of file +
Operating System
Operating System
Compilation Target
Compilation Target
maplibre-rs
maplibre-rs
WASM with threads support
WASM with threads support
Native Code (X86, ARM)
Native Code (X86, ARM)
Browser (Firefox/Chrome)
Browser (Firefox/Chrome)
Linux/Anroid/iOS
Linux/Anroid/iOS
Rust Compiler 
Rust Compiler 
Viewer does not support full SVG 1.1
\ No newline at end of file diff --git a/docs/src/development-guide/building.md b/docs/src/development-guide/building.md index bceb3b76..ab569851 100644 --- a/docs/src/development-guide/building.md +++ b/docs/src/development-guide/building.md @@ -53,7 +53,7 @@ cd web npm run start ``` -If you want to run mapr with WebGL which is supported on every major browser, then you have to use the following +If you want to run maplibre-rs with WebGL which is supported on every major browser, then you have to use the following command. ```bash diff --git a/examples/desktop.rs b/examples/desktop.rs index 35cc5a7d..5a968fce 100644 --- a/examples/desktop.rs +++ b/examples/desktop.rs @@ -1,5 +1,5 @@ -use mapr::window::FromWindow; -use mapr::{MapBuilder, ScheduleMethod, TokioScheduleMethod}; +use maplibre::window::FromWindow; +use maplibre::{MapBuilder, ScheduleMethod, TokioScheduleMethod}; #[cfg(feature = "enable-tracing")] fn enable_tracing() { diff --git a/justfile b/justfile index 7f7cf8d4..7f2c9e0b 100644 --- a/justfile +++ b/justfile @@ -25,12 +25,12 @@ webpack-production: nightly-toolchain wasm-pack-webgl: nightly-toolchain ./wasm-pack-v0.10.1-x86_64-unknown-linux-musl/wasm-pack build . \ - --release --target web --out-dir dist/mapr -- \ + --release --target web --out-dir web/dist/maplibre-rs -- \ --features "web-webgl" -Z build-std=std,panic_abort wasm-pack: nightly-toolchain ./wasm-pack-v0.10.1-x86_64-unknown-linux-musl/wasm-pack build . \ - --release --target web --out-dir dist/mapr -- \ + --release --target web --out-dir web/dist/maplibre-rs -- \ -Z build-std=std,panic_abort build-web-webgl: nightly-toolchain @@ -42,7 +42,7 @@ build-web: nightly-toolchain wasm-bindgen: cargo install wasm-bindgen-cli # TODO: Untested: --reference-types - wasm-bindgen --target web --out-dir dist/mapr-pain-bindgen target/wasm32-unknown-unknown/debug/mapr.wasm + wasm-bindgen --target web --out-dir web/dist/maplibre-rs-plain-bindgen target/wasm32-unknown-unknown/debug/maplibre.wasm build-wasm-bindgen: build-web wasm-bindgen diff --git a/src/coords.rs b/src/coords.rs index 172cb278..0601cbbb 100644 --- a/src/coords.rs +++ b/src/coords.rs @@ -1,4 +1,4 @@ -//! File which exposes all kinds of coordinates used throughout mapr +//! File which exposes all kinds of coordinates used throughout maplibre-rs use std::fmt; use std::fmt::Formatter; diff --git a/src/io/source_client.rs b/src/io/source_client.rs index bfaa5080..043f95f8 100644 --- a/src/io/source_client.rs +++ b/src/io/source_client.rs @@ -30,7 +30,7 @@ impl HttpSourceClient { Self { #[cfg(not(target_arch = "wasm32"))] inner_client: crate::platform::http_client::ReqwestHttpClient::new(Some( - "./mapr-cache".to_string(), // TODO make path dynamic + "./maplibre-cache".to_string(), // TODO make path dynamic )), #[cfg(target_arch = "wasm32")] inner_client: crate::platform::http_client::WHATWGFetchHttpClient::new(), diff --git a/src/platform/apple/mod.rs b/src/platform/apple/mod.rs index 3b82c446..4a0d9971 100644 --- a/src/platform/apple/mod.rs +++ b/src/platform/apple/mod.rs @@ -8,7 +8,7 @@ pub use std::time::Instant; pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Bgra8UnormSrgb; #[no_mangle] -pub fn mapr_apple_main() { +pub fn maplibre_apple_main() { env_logger::init_from_env(env_logger::Env::default().default_filter_or("info")); MapBuilder::from_window("A fantastic window!") diff --git a/src/platform/web/mod.rs b/src/platform/web/mod.rs index c5d3bdd1..35ad8942 100644 --- a/src/platform/web/mod.rs +++ b/src/platform/web/mod.rs @@ -67,7 +67,7 @@ pub async fn run(scheduler_ptr: *mut Scheduler) { let scheduler: Box = unsafe { Box::from_raw(scheduler_ptr) }; // Either call forget or the main loop to keep worker loop alive - MapBuilder::from_canvas("mapr") + MapBuilder::from_canvas("maplibre") .with_existing_scheduler(*scheduler) .build() .initialize() diff --git a/src/render/mod.rs b/src/render/mod.rs index 709638b0..59d639e7 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -1,5 +1,5 @@ -//! This module implements the rendering algorithm of mapr. It manages the whole communication with -//! the GPU. +//! This module implements the rendering algorithm of maplibre-rs. It manages the whole +//! communication with the GPU. mod buffer_pool; mod options; diff --git a/web/.gitignore b/web/.gitignore index 4c98d050..0c37a4be 100644 --- a/web/.gitignore +++ b/web/.gitignore @@ -1,5 +1,5 @@ node_modules -libs/mapr* +libs/maplibre* dist \ No newline at end of file diff --git a/web/index.ts b/web/index.ts index c75dc8a9..025e67e5 100644 --- a/web/index.ts +++ b/web/index.ts @@ -1,4 +1,4 @@ -import init, {create_pool_scheduler, new_thread_local_state, run} from "./dist/libs/mapr" +import init, {create_pool_scheduler, new_thread_local_state, run} from "./dist/libs/maplibre" import {Spector} from "spectorjs" import {WebWorkerMessageType} from "./types" import { diff --git a/web/package.json b/web/package.json index d243e915..bef6a3d8 100644 --- a/web/package.json +++ b/web/package.json @@ -1,7 +1,7 @@ { "name": "web", "version": "0.0.1", - "description": "A mapr demo", + "description": "A maplibre demo", "main": "index.js", "scripts": { "start": "RUSTUP_TOOLCHAIN=nightly-2022-04-04-x86_64-unknown-linux-gnu webpack-dev-server --mode=development", @@ -14,7 +14,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/maxammann/mapr" + "url": "https://github.com/maplibre/maplibre-rs" }, "dependencies": { "spectorjs": "^0.9.27", diff --git a/web/pool_worker.ts b/web/pool_worker.ts index a3a69753..be3faf61 100644 --- a/web/pool_worker.ts +++ b/web/pool_worker.ts @@ -1,4 +1,4 @@ -import init, {child_entry_point} from "./dist/libs/mapr" +import init, {child_entry_point} from "./dist/libs/maplibre" onmessage = async message => { const initialised = init(message.data[0], message.data[1]).catch(err => { diff --git a/web/src/index.ejs b/web/src/index.ejs index 2c553ea3..0be0a801 100644 --- a/web/src/index.ejs +++ b/web/src/index.ejs @@ -4,6 +4,6 @@ <%= htmlWebpackPlugin.options.title %> - + diff --git a/web/webpack.config.js b/web/webpack.config.js index 42c26e1d..6424758c 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -52,7 +52,7 @@ module.exports = (env) => ({ WEBGL: !!env.webgl }), new HtmlWebpackPlugin({ - title: 'mapr', + title: 'maplibre demo', }), new WasmPackPlugin({ crateDirectory: path.resolve(__dirname, '../'), @@ -73,7 +73,7 @@ module.exports = (env) => ({ // ], // The same as the `--out-dir` option for `wasm-pack` - outDir: path.resolve(__dirname, 'dist/libs/mapr'), + outDir: path.resolve(__dirname, 'dist/libs/maplibre'), // The same as the `--out-name` option for `wasm-pack` // outName: "index", diff --git a/web/worker.ts b/web/worker.ts index 41456209..65b838c4 100644 --- a/web/worker.ts +++ b/web/worker.ts @@ -1,4 +1,4 @@ -import init, {InitOutput, tessellate_layers} from "./dist/libs/mapr" +import init, {InitOutput, tessellate_layers} from "./dist/libs/maplibre" import {WebWorkerMessageType} from "./types" let module: Promise = null From a084c17244bec93614fb19144d939dda853f2e4f Mon Sep 17 00:00:00 2001 From: Maximilian Ammann Date: Wed, 20 Apr 2022 13:13:59 +0200 Subject: [PATCH 3/4] Rename intellij project --- .idea/dataSources.xml | 12 ------------ .idea/{mapr.iml => maplibre-rs.iml} | 10 ++++------ .idea/modules.xml | 2 +- 3 files changed, 5 insertions(+), 19 deletions(-) delete mode 100644 .idea/dataSources.xml rename .idea/{mapr.iml => maplibre-rs.iml} (85%) diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml deleted file mode 100644 index a3edc46e..00000000 --- a/.idea/dataSources.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - sqlite.xerial - true - org.sqlite.JDBC - jdbc:sqlite:$PROJECT_DIR$/test-data/munich-12.mbtiles - $ProjectFileDir$ - - - \ No newline at end of file diff --git a/.idea/mapr.iml b/.idea/maplibre-rs.iml similarity index 85% rename from .idea/mapr.iml rename to .idea/maplibre-rs.iml index a4f66400..b84de464 100644 --- a/.idea/mapr.iml +++ b/.idea/maplibre-rs.iml @@ -2,16 +2,14 @@ + + + - + - - - - - diff --git a/.idea/modules.xml b/.idea/modules.xml index b078d2fd..a08c02c1 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,7 +2,7 @@ - + \ No newline at end of file From e9a61e53ce092465f3b0fd4598d169c5ad021d4a Mon Sep 17 00:00:00 2001 From: Maximilian Ammann Date: Wed, 20 Apr 2022 13:14:29 +0200 Subject: [PATCH 4/4] Fix image name --- .../figures/{mapr-ios.png => maplibre-rs-ios.png} | Bin 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/src/figures/{mapr-ios.png => maplibre-rs-ios.png} (100%) diff --git a/docs/src/figures/mapr-ios.png b/docs/src/figures/maplibre-rs-ios.png similarity index 100% rename from docs/src/figures/mapr-ios.png rename to docs/src/figures/maplibre-rs-ios.png