项目作者: WebGL-Map

项目描述 :
The primary repository for client side map rendering. This code can be written in any language but must be compiled to WebAssembly.
高级语言: C++
项目地址: git://github.com/WebGL-Map/glm-wasm.git
创建时间: 2018-04-14T22:26:39Z
项目社区:https://github.com/WebGL-Map/glm-wasm

开源协议:MIT License

下载


Glm-wasm License: MIT

The primary repository for client side map rendering. This code can be written in any language but must be compiled to
WebAssembly.

Prerequisites

Note: In order to build this project you will need the following installed. Some applications might also need to be
on the system path.

Building

When building this project make sure to set the -DCMAKE_TOOLCHAIN_FILE CMake option to the Emscripten.cmake
toolchain file.

Deploying

From: http://emscripten.org

To serve wasm in the most efficient way over the network, make sure your web server has the proper MIME time for .wasm
files, which is application/wasm. That will allow streaming compilation, where the browser can start to compile code
as it downloads.

In Apache, you can do this with:

  1. AddType application/wasm .wasm

Also make sure that gzip is enabled:

  1. AddOutputFilterByType DEFLATE application/wasm