Rename to maplibre-rs except for apple stuff

This commit is contained in:
Maximilian Ammann 2022-04-20 13:06:24 +02:00
parent f479d01bf6
commit ac3224256e
29 changed files with 66 additions and 82 deletions

View File

@ -53,12 +53,12 @@ jobs:
run: | run: |
echo "$SSH_KEY" > id_rsa echo "$SSH_KEY" > id_rsa
chmod 600 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' 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/mapr/api-docs/ 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 - uses: actions/upload-artifact@v2
with: with:
name: mapr name: maplibre-rs
path: target/debug/mapr path: target/debug/maplibre
build-aarch64-android: build-aarch64-android:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@ -85,8 +85,8 @@ jobs:
run: just build-apk run: just build-apk
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: mapr.apk name: maplibre-rs.apk
path: target/debug/apk/mapr-demo.apk path: target/debug/apk/maplibre-rs-demo.apk
build-wasm-webgl: build-wasm-webgl:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@ -118,8 +118,8 @@ jobs:
run: | run: |
echo "$SSH_KEY" > id_rsa echo "$SSH_KEY" > id_rsa
chmod 600 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' 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/mapr/webgl/ rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "dist/demo/." max@maxammann.org:~/public_html/maplibre-rs/webgl/
build-wasm-webgpu: build-wasm-webgpu:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@ -151,8 +151,8 @@ jobs:
run: | run: |
echo "$SSH_KEY" > id_rsa echo "$SSH_KEY" > id_rsa
chmod 600 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' 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/mapr/webgpu/ rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "dist/demo/." max@maxammann.org:~/public_html/maplibre-rs/webgpu/
book: book:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@ -185,5 +185,5 @@ jobs:
run: | run: |
echo "$SSH_KEY" > id_rsa echo "$SSH_KEY" > id_rsa
chmod 600 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' 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/mapr/docs/ rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "book/." max@maxammann.org:~/public_html/maplibre-rs/docs/

2
.gitignore vendored
View File

@ -18,7 +18,7 @@ dist/
# Cache by reqwest-middleware-cache # Cache by reqwest-middleware-cache
*reqwest*cache* *reqwest*cache*
*mapr*cache* *maplibre*cache*
logs/ logs/

2
Cargo.lock generated
View File

@ -1750,7 +1750,7 @@ dependencies = [
] ]
[[package]] [[package]]
name = "mapr" name = "maplibre"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"bytemuck", "bytemuck",

View File

@ -8,7 +8,7 @@ members = [
] ]
[package] [package]
name = "mapr" name = "maplibre"
version = "0.1.0" version = "0.1.0"
authors = ["Maximilian Ammann <max@maxammann.org>"] authors = ["Maximilian Ammann <max@maxammann.org>"]
edition = "2021" edition = "2021"
@ -126,7 +126,7 @@ name = "render"
harness = false harness = false
[package.metadata.android] [package.metadata.android]
apk_name = "mapr-demo" apk_name = "maplibre-rs-demo"
[[package.metadata.android.uses_permission]] [[package.metadata.android.uses_permission]]
name = "android.permission.INTERNET" name = "android.permission.INTERNET"
[[package.metadata.android.uses_permission]] [[package.metadata.android.uses_permission]]

View File

@ -1,9 +1,9 @@
<h1 align="center">mapr</h1> <h1 align="center">maplibre-rs</h1>
<p align="center"> <p align="center">
<img width="200px" alt="Logo" src="https://"> <img width="200px" alt="Logo" src="https://">
</p> </p>
<div align="center"> <div align="center">
<img width="300px" src="docs/src/figures/mapr-ios.png" alt="preview"> <img width="300px" src="docs/src/figures/maplibre-rs-ios.png" alt="preview">
</div> </div>
<div align="center"> <div align="center">
<strong>Native Maps for Web, Mobile and Linux</strong> <strong>Native Maps for Web, Mobile and Linux</strong>
@ -15,12 +15,12 @@
<div align="center"> <div align="center">
<img src="https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square" <img src="https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square"
alt="Stability" /> alt="Stability" />
<a href="https://github.com/maxammann/mapr/actions/workflows/rust.yml"> <a href="https://github.com/maplibre/maplibre-rs/actions/workflows/rust.yml">
<img src="https://github.com/maxammann/mapr/actions/workflows/rust.yml/badge.svg" <img src="https://github.com/maplibre/maplibre-rs/actions/workflows/rust.yml/badge.svg"
alt="Build status" /> alt="Build status" />
</a> </a>
<a href="https://matrix.to/#/#mapr:matrix.org"> <a href="https://matrix.to/#/#maplibre:matrix.org">
<img src="https://img.shields.io/static/v1?label=Space&message=%23mapr&color=blue&logo=matrix" <img src="https://img.shields.io/static/v1?label=Space&message=%23maplibre&color=blue&logo=matrix"
alt="Build status" /> alt="Build status" />
</a> </a>
</div> </div>
@ -31,13 +31,13 @@
Example Example
</a> </a>
<span> | </span> <span> | </span>
<a href="https://maxammann.org/mapr/docs"> <a href="https://maxammann.org/maplibre-rs/docs">
Book Book
</a> | </span> </a> | </span>
<a href="https://maxammann.org/mapr/api-docs/mapr/"> <a href="https://maxammann.org/maplibre-rs/api-docs/maplibre/">
API API
</a> | </span> </a> | </span>
<a href="https://matrix.to/#/#mapr:matrix.org"> <a href="https://matrix.to/#/#maplibre:matrix.org">
Chat in Matrix Space Chat in Matrix Space
</a> </a>
</h3> </h3>
@ -53,16 +53,16 @@ next-gen mapping solution.
## Description ## 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 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 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. 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 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. 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 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 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. graphics are achievable using the current stack.
@ -86,9 +86,12 @@ https://user-images.githubusercontent.com/905221/163552617-5db04c66-23e3-4915-87
* Rendering Text * Rendering Text
* Per-Feature Rendering * Per-Feature Rendering
* Rendering: * Rendering:
* Labels
* Symbols
* Raster data * Raster data
* 3D terrain * 3D terrain
* Hill-shade (DEM) * Hill-shade (DEM)
* Collision detection
* Support for: * Support for:
* GeoJSON * GeoJSON
* API for: * API for:
@ -96,31 +99,12 @@ https://user-images.githubusercontent.com/905221/163552617-5db04c66-23e3-4915-87
* Swift * Swift
* Java/Kotlin * 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 ## Building & Running
Now, to clone the project: Now, to clone the project:
```bash ```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: 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 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: > __Note for Mac__: Before opening the XCode project, you need to build manually using the following command:
> `cargo build --target aarch64-apple-darwin --lib` > `cargo build --target aarch64-apple-darwin --lib`

View File

@ -1,6 +1,6 @@
use criterion::{criterion_group, criterion_main, Criterion}; use criterion::{criterion_group, criterion_main, Criterion};
use mapr::window::FromWindow; use maplibre::window::FromWindow;
use mapr::{MapBuilder, ScheduleMethod, TokioScheduleMethod}; use maplibre::{MapBuilder, ScheduleMethod, TokioScheduleMethod};
fn render(c: &mut Criterion) { fn render(c: &mut Criterion) {
c.bench_function("render", |b| { c.bench_function("render", |b| {

View File

@ -1,7 +1,7 @@
use criterion::{criterion_group, criterion_main, Criterion}; use criterion::{criterion_group, criterion_main, Criterion};
use lyon::tessellation::VertexBuffers; use lyon::tessellation::VertexBuffers;
use mapr::benchmarking::io::static_tile_fetcher::StaticTileFetcher; use maplibre::benchmarking::io::static_tile_fetcher::StaticTileFetcher;
use mapr::benchmarking::tessellation::Tessellated; use maplibre::benchmarking::tessellation::Tessellated;
use std::io::Cursor; use std::io::Cursor;
const MUNICH_X: u32 = 17425; const MUNICH_X: u32 = 17425;

View File

@ -3,4 +3,4 @@ authors = ["Maximilian Ammann"]
language = "en" language = "en"
multilingual = false multilingual = false
src = "src" src = "src"
title = "mapr documentation" title = "maplibe-rs documentation"

View File

@ -1,4 +1,4 @@
# mapr documentation # maplibre-rs documentation
[Introduction](./introduction.md) [Introduction](./introduction.md)
[Supported Platforms](./supported-platforms.md) [Supported Platforms](./supported-platforms.md)

View File

@ -2,7 +2,7 @@
## Talks ## 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 ## Related Projects

View File

@ -1,3 +1,3 @@
# Developer Log # Developer Log
I'm regularly releasing blog posts [on my blog](https://maxammann.org/categories/mapr/). I'm regularly releasing blog posts [on my blog](https://maxammann.org/categories/maplibre/).

View File

@ -1,7 +1,7 @@
# Caching # 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 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 mapr library is not introducing a separate serialization format for caching. 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 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. honor HTTP headers which configure caching. This is very important for fetched tiles, as they can have an expiry date.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -53,7 +53,7 @@ cd web
npm run start 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. command.
```bash ```bash

View File

@ -1,5 +1,5 @@
use mapr::window::FromWindow; use maplibre::window::FromWindow;
use mapr::{MapBuilder, ScheduleMethod, TokioScheduleMethod}; use maplibre::{MapBuilder, ScheduleMethod, TokioScheduleMethod};
#[cfg(feature = "enable-tracing")] #[cfg(feature = "enable-tracing")]
fn enable_tracing() { fn enable_tracing() {

View File

@ -25,12 +25,12 @@ webpack-production: nightly-toolchain
wasm-pack-webgl: nightly-toolchain wasm-pack-webgl: nightly-toolchain
./wasm-pack-v0.10.1-x86_64-unknown-linux-musl/wasm-pack build . \ ./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 --features "web-webgl" -Z build-std=std,panic_abort
wasm-pack: nightly-toolchain wasm-pack: nightly-toolchain
./wasm-pack-v0.10.1-x86_64-unknown-linux-musl/wasm-pack build . \ ./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 -Z build-std=std,panic_abort
build-web-webgl: nightly-toolchain build-web-webgl: nightly-toolchain
@ -42,7 +42,7 @@ build-web: nightly-toolchain
wasm-bindgen: wasm-bindgen:
cargo install wasm-bindgen-cli cargo install wasm-bindgen-cli
# TODO: Untested: --reference-types # 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 build-wasm-bindgen: build-web wasm-bindgen

View File

@ -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;
use std::fmt::Formatter; use std::fmt::Formatter;

View File

@ -30,7 +30,7 @@ impl HttpSourceClient {
Self { Self {
#[cfg(not(target_arch = "wasm32"))] #[cfg(not(target_arch = "wasm32"))]
inner_client: crate::platform::http_client::ReqwestHttpClient::new(Some( 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")] #[cfg(target_arch = "wasm32")]
inner_client: crate::platform::http_client::WHATWGFetchHttpClient::new(), inner_client: crate::platform::http_client::WHATWGFetchHttpClient::new(),

View File

@ -8,7 +8,7 @@ pub use std::time::Instant;
pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Bgra8UnormSrgb; pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Bgra8UnormSrgb;
#[no_mangle] #[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")); env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));
MapBuilder::from_window("A fantastic window!") MapBuilder::from_window("A fantastic window!")

View File

@ -67,7 +67,7 @@ pub async fn run(scheduler_ptr: *mut Scheduler) {
let scheduler: Box<Scheduler> = unsafe { Box::from_raw(scheduler_ptr) }; let scheduler: Box<Scheduler> = unsafe { Box::from_raw(scheduler_ptr) };
// Either call forget or the main loop to keep worker loop alive // Either call forget or the main loop to keep worker loop alive
MapBuilder::from_canvas("mapr") MapBuilder::from_canvas("maplibre")
.with_existing_scheduler(*scheduler) .with_existing_scheduler(*scheduler)
.build() .build()
.initialize() .initialize()

View File

@ -1,5 +1,5 @@
//! This module implements the rendering algorithm of mapr. It manages the whole communication with //! This module implements the rendering algorithm of maplibre-rs. It manages the whole
//! the GPU. //! communication with the GPU.
mod buffer_pool; mod buffer_pool;
mod options; mod options;

2
web/.gitignore vendored
View File

@ -1,5 +1,5 @@
node_modules node_modules
libs/mapr* libs/maplibre*
dist dist

View File

@ -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 {Spector} from "spectorjs"
import {WebWorkerMessageType} from "./types" import {WebWorkerMessageType} from "./types"
import { import {

View File

@ -1,7 +1,7 @@
{ {
"name": "web", "name": "web",
"version": "0.0.1", "version": "0.0.1",
"description": "A mapr demo", "description": "A maplibre demo",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "RUSTUP_TOOLCHAIN=nightly-2022-04-04-x86_64-unknown-linux-gnu webpack-dev-server --mode=development", "start": "RUSTUP_TOOLCHAIN=nightly-2022-04-04-x86_64-unknown-linux-gnu webpack-dev-server --mode=development",
@ -14,7 +14,7 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/maxammann/mapr" "url": "https://github.com/maplibre/maplibre-rs"
}, },
"dependencies": { "dependencies": {
"spectorjs": "^0.9.27", "spectorjs": "^0.9.27",

View File

@ -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 => { onmessage = async message => {
const initialised = init(message.data[0], message.data[1]).catch(err => { const initialised = init(message.data[0], message.data[1]).catch(err => {

View File

@ -4,6 +4,6 @@
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
</head> </head>
<body style="margin: 0; padding: 0; width:100%; height: 100%; max-height: 100%;"> <body style="margin: 0; padding: 0; width:100%; height: 100%; max-height: 100%;">
<canvas id="mapr" style="position:absolute;"></canvas> <canvas id="maplibre" style="position:absolute;"></canvas>
</body> </body>
</html> </html>

View File

@ -52,7 +52,7 @@ module.exports = (env) => ({
WEBGL: !!env.webgl WEBGL: !!env.webgl
}), }),
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
title: 'mapr', title: 'maplibre demo',
}), }),
new WasmPackPlugin({ new WasmPackPlugin({
crateDirectory: path.resolve(__dirname, '../'), crateDirectory: path.resolve(__dirname, '../'),
@ -73,7 +73,7 @@ module.exports = (env) => ({
// ], // ],
// The same as the `--out-dir` option for `wasm-pack` // 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` // The same as the `--out-name` option for `wasm-pack`
// outName: "index", // outName: "index",

View File

@ -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" import {WebWorkerMessageType} from "./types"
let module: Promise<InitOutput> = null let module: Promise<InitOutput> = null