Commit Graph

300 Commits

Author SHA1 Message Date
Tim Schaub 2526a04f2a Merge pull request #13338 from tschaub/get-layer-data
Get pixel data
2022-02-08 20:46:18 -07:00
Tim Schaub 97a1c196cc Merge pull request #13334 from EvertEt/strictnullchecks-4
Improve some null types for strictNullChecks
2022-02-08 10:32:32 -07:00
Tim Schaub eb4d5e0784 Get pixel data 2022-02-07 18:35:47 -07:00
Tim Schaub d9a11195e0 Merge pull request #13269 from mike-000/TileTexture-tilePixelRatio-gutter
Pass tilePixelRatio and gutter to TileTexture
2022-02-07 13:45:22 -07:00
EvertEt 25e1d6c5d6 Improve some null types for strictNullChecks 2022-02-06 19:36:30 +01:00
Tim Schaub adbbc05159 Avoid rendering outside WebGL layer and source extent 2022-02-05 21:02:22 -07:00
Tim Schaub f10ba5c1e3 Avoid duplicate imports 2022-02-05 11:46:26 -07:00
mike-000 7af366586f Pass tilePixelRatio and gutter to TileTexture 2022-01-20 17:50:49 +00:00
mike-000 70ee68c649 Add crossOrigin option
Co-Authored-By: Andreas Hocevar <andreas.hocevar@gmail.com>
2022-01-18 23:14:30 +00:00
Tim Schaub e71a8b65e1 Default CORS request mode for tiles used in WebGL rendering 2022-01-11 14:21:48 -07:00
Tim Schaub 8d8632bff7 Allow interpolation to be configured for data tile sources 2021-12-27 10:11:36 -07:00
Tim Schaub 59186f2afd Support paletted rendering in WebGL 2021-12-22 11:14:46 -07:00
mike-000 792f937aa5 don't try to access properties of null attributes 2021-12-21 17:21:25 +00:00
Tim Schaub 0cc3bae8fe Preserve the drawing buffer by default for WebGL layers 2021-12-18 12:25:03 -07:00
Tim Schaub 68ea485e69 Dispatch precompose and postcompose events for WebGL layers 2021-12-15 16:59:51 -07:00
Tim Schaub f5803ad6ca Support expressions for band arguments 2021-12-05 17:04:50 -07:00
Tim Schaub c2fc800fc1 Allow WebGL tile layer style to be updated 2021-12-02 16:32:00 -07:00
Tim Schaub 611d455708 Tests for and adjustments to unpack alignment handling 2021-11-19 21:11:32 -07:00
mike-000 dc7303967c Use appropriate unpackAlignment for data textures 2021-11-19 21:11:32 -07:00
Tim Schaub f336cf30b0 Additional types for WebGL renderer, sources, and tiles 2021-11-16 11:24:41 -07:00
Tim Schaub 71020bb5e4 Merge pull request #12976 from mike-000/WebGL-ReprojTile
Handle ReprojTile in ol/layer/WebGLTile
2021-11-16 09:40:00 -07:00
Tim Schaub a2f3c02ac5 Allow canvas reuse for WebGL layers 2021-11-14 12:34:14 -07:00
mike-000 f4134b873b Handle ReprojTile 2021-11-08 12:39:17 +00:00
Tim Schaub a332842540 More cleanup in the WebGL tile layer's dispose method 2021-09-23 12:00:00 +00:00
Tim Schaub da256e6c00 Enable WebGL extensions when required 2021-09-17 14:14:12 -06:00
Duck 05615df1a3 Allow TileTexture to select float or int based textures. 2021-09-15 15:10:55 -07:00
Duck 17394cc8be Ensure the texture is loaded into the correct index.
The previous code would try to load subsequent textures into the 0th slot.
2021-09-15 15:10:08 -07:00
Duck 5afd25150f Add additional extension requirements for floating point textures. 2021-09-15 09:35:23 -07:00
mike-000 cb6995d71a Various fixes for browser compatibility issues (#12740)
* Replace Math.log2 with ol/math.log2
* TypedArray.from() browser compatibility fallback
* listen for input and change events for range
2021-09-15 08:45:12 -06:00
Andreas Hocevar 4526f2ef34 Properly handle alt tiles of transparent images 2021-08-18 11:24:34 +02:00
Tim Schaub 7f3f4e6cdd Set tile after creating helper
Co-authored-by: MoonE <maxi_kroeg@web.de>
2021-08-18 11:24:30 +02:00
Andreas Hocevar 311247265b Add interim tiles handling 2021-08-18 11:24:26 +02:00
Tim Schaub af80477c1d Rendering raster tiles with WebGL 2021-08-18 11:24:23 +02:00
Andreas Hocevar 79f5f46d27 Remove lint 2021-06-28 18:10:51 +02:00
Tim Schaub f08f31101c Lowercase module names for modules without a default export 2021-05-03 07:32:12 -06:00
Tim Schaub a7684d8fbf Avoid colliding user variables with internal names 2021-02-11 07:38:46 -07:00
Tim Schaub f121db1ad8 Fix buffer deletion 2021-02-10 18:39:45 -07:00
Simon Seyock 2ad5789797 Add descriptions for properties. 2021-02-04 18:19:33 +01:00
Simon Seyock 8facb252f1 Replace google closure syntax = with brackets around name 2021-02-03 14:06:02 +01:00
Tim Schaub 19bb3f8c88 Consistent use of Array and Object types 2021-02-02 13:53:10 -07:00
Simon Seyock f590cb3473 Harmonize jsdoc 2021-02-02 12:14:56 +01:00
Tim Schaub afd0b8f757 Throw an error if shaders fail to compile or program fails to link 2021-01-05 17:24:58 -07:00
Tim Schaub 054af09032 Make code prettier
This updates ESLint and our shared eslint-config-openlayers to use Prettier.  Most formatting changes were automatically applied with this:

    npm run lint -- --fix

A few manual changes were required:

 * In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
 * In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason.  While editing this, I reworked `ExampleBuilder` to be a class.
 * In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Frederic Junod d15ec1c12c Remove all inheritDoc tags from disposeInternal functions 2020-04-03 08:10:41 +02:00
Olivier Guyot 40d44db85e Shader Builder / use vertex context to parse the symbol rotation expression
Previously the expression was parsed in the fragment shader context, which
meant in case the expression used an attributes the resulting GLSL code
would be wrong.

Fragment shader context:
`float angle = v_heading; // we're using the varying: not OK`

Vertex shader context:
`float angle = a_heading; // we're using the attribute: OK`
2020-03-03 10:09:39 +01:00
John Leonard 8fe71bbbff perf: only do expensive reload when texture changes 2020-02-14 11:39:54 +00:00
Olivier Guyot 6c46eb1dd0 Webgl / add support for a rotation parameter in LiteralStyle
The ShaderBuilder can now take a rotation expression.
2019-12-20 17:39:40 +01:00
Olivier Guyot cae32edb02 WebGL Postprocess / fix viewport computation with pixelratio != 1 2019-12-13 10:34:31 +01:00
Frederic Junod 5c023adc08 Remove unused variable from vertex shader 2019-11-07 09:02:50 +01:00
Olivier Guyot 7da86ae71f Webgl points renderer / slight improvements following review
Also fixes a lint error.
2019-11-04 09:55:54 +01:00