@geonet/layergl

1.0.0 • Public • Published

layergl

See geonet-layergl for more info

Usage

const layergl = require('@geonet/layergl');

L.tileLayer.layerGl( {
    uniforms: {
        u_brightness: +document.getElementById( 'u_brightness' ).value,
        u_contrast: +document.getElementById( 'u_contrast' ).value,
        u_rangeCenter: +document.getElementById( 'u_rangeCenter' ).value,
        u_rangeWidth: +document.getElementById( 'u_rangeWidth' ).value,
        u_sharpen: +document.getElementById( 'u_sharpen' ).value,
        u_sharpenRadius: +document.getElementById( 'u_sharpenRadius' ).value
    },
    vertexShader: <vertexShader>,
    fragmentShader: <fragmentShader>,
    tileLayers: {
        u_texture0: L.tileLayer.wms( ... )
    }
} )
    .addTo( this.map );

Readme

Keywords

Package Sidebar

Install

npm i @geonet/layergl

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

29.8 kB

Total Files

4

Last publish

Collaborators

  • putipong
  • codebuddha