mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
13 lines
279 B
JavaScript
13 lines
279 B
JavaScript
import init from "./mapr.js";
|
|
|
|
var init_output;
|
|
|
|
onmessage = async m => {
|
|
let msg = m.data;
|
|
|
|
if (msg.type === "init") {
|
|
init_output = await init(undefined, msg.memory);
|
|
console.log(msg.address)
|
|
postMessage(init_output.get54(msg.address));
|
|
}
|
|
}; |