包详细信息

leaflet.tilelayer.gloperations

equinor116BSD-3-Clause0.4.2

Custom Leaflet TileLayer using WebGL to do operations on and colorize floating-point pixels.

leaflet, raster, plugin, mapping

自述文件

npm version Build Status Total alerts Language grade: JavaScript Known Vulnerabilities

Leaflet.TileLayer.GLOperations

Custom Leaflet TileLayer using WebGL to do operations on and colorize floating-point pixels

Resources

Features

  • GPU rendering
  • A simple declarative API
  • A small configuration language for describing how to colorize pixels
    • Interpolated color scale
    • Sentinel values with optional labels
  • Raw float pixel value(s) provided to mouse event handlers
  • Hillshading
  • Contours
  • Animated per-pixel transitions when changing URL and/or colormaps
  • Load multiple tile layers, do operations on them and return result layer:
    • Difference between two tile layers
    • Analysis of multiple tile layers (supports 1-6 layers currently). Filter values and use a multiplier for each layer.
    • Return pixel values for both input and result layers

更新日志

Changelog

Unreleased

0.4.2

Added

  • Added optional smoothing of input data for advanced hillshading:
    • hsAdvSmoothInput (default: false)
    • hsAdvSmoothInputKernel (default: 3)

0.4.1

Fixed

  • Hillshading options set correctly if used in initial options.

0.4.0

Added

  • Added advanced hillshading option. See Wiki for available options.
  • Support for loading DEM tile format
  • Can specify color as hex values (#FF0000) in addition to existing rgb format (rgb(255,0,0)).

Changed

  • Send colormaps as textures to webgl. Reduces the number of fragment uniforms used.

Fixed

  • Plugin now works on mobile devices. Advanced hillshading does not yet work on iOS devices, but works fine on Android.

0.3.0

Added

  • New options to specify max length of color scale and sentinels:
    • colorscaleMaxLength (default: 16)
    • sentinelMaxLength (default: 16)
  • New option required when using contours: contourPane specifies Leaflet pane containing the contour canvas. Necessary addition to fix positioning of canvas when using fractional zoom.

Changed

  • Workaround to remove dependency on 'OES_texture_float' extension.

0.2.0

Added

  • Option to smooth contour input data
    • Set contourSmoothInput to enable
    • Set the convolution kernel size with contourSmoothInputKernel

Changed

  • contourSmooth option changed name to contourSmoothLines.

0.1.1

Added

  • Initial release