Commit Graph

1693 Commits

Author SHA1 Message Date
ahocevar 32696638d2 Simplify vector tile code 2019-01-09 13:45:01 +01:00
Frédéric Junod cf6b1ca1cc Merge pull request #9072 from fredj/rm_layerStates
Remove 'layerStates' property from the FrameState
2019-01-07 10:11:52 +01:00
Olivier Guyot 62c7a49943 Webgl points / added a texture option & improved doc 2018-12-28 15:53:07 +01:00
Olivier Guyot 0acfd7ab59 WebGL points / Added a color attribute 2018-12-28 15:53:07 +01:00
Frederic Junod a0f15e1eb6 Only schedule the unused layers renderer removal when it's needed 2018-12-21 10:37:03 +01:00
Frederic Junod 3193de0906 Only schedule the icon cache expire when it's needed 2018-12-19 14:34:22 +01:00
Frederic Junod a4fe067aad Create a layer state map instead of an array of uids 2018-12-19 12:45:39 +01:00
Frederic Junod 016d738269 Move frameState test on top in removeUnusedLayerRenderers_ 2018-12-18 13:34:19 +01:00
Frederic Junod 5d1c27d05d Don't create an array of managed layers 2018-12-18 13:17:00 +01:00
Frederic Junod 1750ff43e0 Always schedule unused layers removal function 2018-12-18 09:49:47 +01:00
Frederic Junod 5195adea85 Remove 'layerStates' property from the FrameState 2018-12-18 09:49:38 +01:00
Andreas Hocevar 0cda18f58a Merge pull request #9008 from ahocevar/decouple-group-creation
Decouple render instruction creation from rendering
2018-12-07 14:33:54 +01:00
Olivier Guyot 27b0cf18e7 Update default shaders in documentation of webgl classes 2018-12-07 09:32:52 +01:00
Olivier Guyot f177a2bcd5 Simple handling of layer opacity in webgl points layer
Now the layer opacity is simply handled by a CSS property on the layer DOM element. As such it does not have to be
taken into account in shaders.
2018-12-07 09:02:02 +01:00
Olivier Guyot a6989af00a Webgl points layer / added callbacks for attributes
Now opacity, rotateWithView and tex coords can be set with callbacks per feature.
2018-12-07 08:57:12 +01:00
Andreas Hocevar 4ce5379a4b Merge pull request #9039 from OSHistory/tsFunctionReturnVoid
Add ': void' to non returning functions (error TS7014)
2018-12-07 07:58:40 +01:00
Andreas Hocevar 1c4cfc9559 Merge pull request #9024 from ahocevar/imagelayer-events
Add prerender and postrender events for Image layer
2018-12-07 07:46:39 +01:00
Niklas Alt 4bc9216e41 Add ': void' to non returning functions (error TS7014) 2018-12-06 19:57:45 +01:00
ahocevar 6202a0cf05 Bring back interim tiles, but don't block user interaction 2018-12-04 11:09:51 +01:00
Niklas Alt 3ef6e39c26 Use camel-cased inheritDoc for consistency 2018-12-03 20:42:03 +01:00
ahocevar 976863c376 Add prerender and postrender events for Image layer 2018-12-02 21:05:20 +01:00
jahow 8bb7d77f68 Update PointsLayer documentation 2018-12-01 00:11:27 +01:00
jahow 78028893e2 Added missing attributes in PointsLayer
Attributes were used in the shader but not bound to a buffer, which made the
rendering failed in some implementations.
2018-12-01 00:01:55 +01:00
ahocevar 1d243a7f37 Add comments and TODOs 2018-11-29 22:35:46 +01:00
ahocevar fbf98a44ea Streamline tile preparation and remove unused code 2018-11-29 22:35:46 +01:00
ahocevar 2ce8fa6f10 Render only when we have time, and not during interaction/animation 2018-11-28 14:42:41 +01:00
ahocevar 82e2a84862 Remove interim tile handling for now 2018-11-28 14:42:41 +01:00
ahocevar 43759fd846 Decouple executor group creation from rendering 2018-11-28 14:42:40 +01:00
ahocevar f4aec3fd01 Remove unused Builder/Executor functions and members 2018-11-25 20:06:37 +01:00
Andreas Hocevar 66ec9983b2 Fix module path 2018-11-25 14:19:56 +01:00
Frederic Junod e66a84c897 Add imageRatio option for VectorImage layers 2018-11-22 09:38:08 +01:00
Frédéric Junod 5951e147c0 Merge pull request #8995 from fredj/vec_render_mode
Remove leftover comments and code for 'vector' render mode
2018-11-22 08:44:37 +01:00
Tim Schaub e9a30c5cb7 Use standard tile coords 2018-11-21 11:14:17 -07:00
Frederic Junod cb44775306 Remove leftover comments and code for 'vector' render mode 2018-11-21 16:58:27 +01:00
Tim Schaub c6be2c7ff5 Merge pull request #8977 from jahow/add-webgl-rendering-tests
Add WebGL rendering tests & improve the WebGLHelper API
2018-11-20 03:59:06 -08:00
Tim Schaub 7036064ffc Add tiles to avoid 404s in rendering tests 2018-11-19 13:50:52 -07:00
Tim Schaub 898c349fbf Stacking contexts for layers, overlays, and controls 2018-11-19 11:00:33 -07:00
Olivier Guyot 0b23e94a2a Fixed internal var name on WebGLPoints renderer. 2018-11-19 13:11:23 +01:00
jahow 6b82cf0b84 Simplified the API of WebGLHelper
Now the shader and program caches are simply arrays of native WebGL created objects.
The WebGLHelper simply takes the sources of the frag and vert shader and produces a program.

This removes 2 classes & reduces the general verbosity of the API.

Also a `getShaderCompilationErrors` was added on `WebGLHelper` to help debug GLSL errors.
2018-11-19 13:11:23 +01:00
ahocevar 5cc74ee1d2 Scale tiles instead of canvas 2018-11-18 19:31:14 +01:00
ahocevar 366588d07e Avoid layers getting rendered above the overlay container 2018-11-17 18:12:43 +01:00
Tim Schaub 5d528dca3b Target, source arg order for make* transform functions 2018-11-17 16:28:29 +01:00
Tim Schaub c169fec4a8 Invert and set transform in one step 2018-11-17 16:28:28 +01:00
Tim Schaub 06a0a7f33b Use the inverse pixel transform when clipping and getting pixel data 2018-11-17 16:28:28 +01:00
Tim Schaub af10f6a75c Use the inverse pixel transform in pre/post render events 2018-11-17 16:28:28 +01:00
Tim Schaub 686847f491 Make forward and inverse pixel transforms during render 2018-11-17 16:28:27 +01:00
Frederic Junod a64ca2b4bf Use CSS z-index to order layers 2018-11-17 09:03:59 +01:00
Tim Schaub d6add33df0 Use map and new method 2018-11-16 14:58:02 +01:00
Tim Schaub a490c658fb Overscale canvas if sources have non-zero min zoom 2018-11-16 14:57:18 +01:00
Tim Schaub 038f122d11 Clip tile layers by extent 2018-11-16 14:57:17 +01:00