Skip to content
jiri-b edited this page Dec 8, 2016 · 1 revision

A simplest way to run the demo applications is to copy whole library to a Web server and visit the example directory through HTTP browser.

The library is based on JavaScript and several WebGL shaders (Shaders are small programs dedicated for GPU rendering). The shaders are loaded dynamically through HTTP requests therefore a HTTP server is needed to run the app locally. To use the library you need to copy the shader folder shipped with WebGLayer to the sub-folder of your application. Once you are done you can use the relative URL to the shader directory to instantiate the WGL javascript object.

WGL = WGL.init(number_of_records,url_to_shader_dir, mapdivid);	

See the JavaScript development console if everything goes well.

Clone this wiki locally