Andreas Hocevar
4a3e4c7c23
Merge pull request #9733 from ahocevar/apidoc-fixes
...
Get rid of JSDoc warnings and fix fires arguments
2019-06-29 14:40:08 +02:00
ahocevar
cb77f9e3dd
Get rid of JSDoc warnings and fix fires arguments
2019-06-29 10:25:35 +02:00
Andreas Hocevar
8ff29f8431
Merge pull request #9732 from ahocevar/vectortile-empty-key
...
Fix EMPTY state and source key handling
2019-06-29 10:18:53 +02:00
ahocevar
c4937bc716
Fix EMPTY state and source key handling
2019-06-28 23:25:36 +02:00
Frédéric Junod
abb696d0fa
Merge pull request #9724 from fredj/fix_import_in_tutorial
...
Fix wrong import in tutorial
2019-06-28 16:13:17 +02:00
Frédéric Junod
75a0a0ed49
Merge pull request #9722 from fredj/rm_unused
...
Remove unused param in getState function
2019-06-28 16:13:02 +02:00
Olivier Guyot
d9a4f37f75
Merge pull request #9655 from jahow/webgl-interaction
...
Add hit detection on the WebGL points renderer
2019-06-28 11:22:03 +02:00
Frederic Junod
933a6297bb
Remove unused hasFeatureAtCoordinate from ol/renderer/Layer
2019-06-28 11:10:33 +02:00
jahow
3bca9b5297
Webgl / use feature index for hit detection in points layer
...
For each feature its opacity value index is encoded on 4 bytes
in the color values, and the uid is stored in the opacity
value, allowing for a much higher range of uids to be read.
2019-06-28 09:12:20 +02:00
Olivier Guyot
28b99767f8
Webgl points / read only one pixel for feature hit detection
...
Also implements `hasFeatureAtCoordinate`.
`hitTolerance` is not supported for now.
2019-06-28 09:12:20 +02:00
Olivier Guyot
e852294938
Webgl / improve reading of render targets data
...
Now two methods are available: `readAll` and `readPixel`,
and the data from the render target is not re-read every time unless
`clearCachedData` is called.
2019-06-28 09:12:20 +02:00
Olivier Guyot
917950a32b
Improve icon-sprite-webgl example to include hit detection
2019-06-28 09:12:20 +02:00
Olivier Guyot
5ffca0633c
Webgl Points / Add support for feature hit detection
...
For now only `forEachFeatureAtCoordinate` is implemented.
Each time the viewport is rendered, another similar render pass is
done using the specific hit detection instructions. Feature uid's are
encoded in the r,g,b,a channels and can then be decoded on the fly.
Note: the `readPixels` operation is taking a lot of time,
around 10-20ms each frame.
2019-06-28 09:12:20 +02:00
Olivier Guyot
38920867fb
Webgl Helper / Add a method to prepare drawing to render targets
2019-06-28 09:12:20 +02:00
Olivier Guyot
6224d749c4
WebGL / Introduced the WebGLRenderTarget class
...
This utility class simplifies rendering to a texture & reading the
results of the render.
It also allows clearing its content before a new render.
2019-06-28 09:12:20 +02:00
Olivier Guyot
1257ade199
Webgl renderer / rename function to avoid confusion
...
`getBlankTexture` was too close to `WebGLHelper#createTexture`
2019-06-28 09:12:20 +02:00
Olivier Guyot
f25a16d90c
Webgl helper / rework create texture utils
...
Now only one util is available: `createTexture`, which
is tested and allows binding an image and reusing an existing texture.
2019-06-28 09:12:20 +02:00
Olivier Guyot
b6425187de
Remove unused WebGLShader class
2019-06-28 09:06:16 +02:00
Olivier Guyot
2b5e5459ab
Webgl points / add hit detection buffers generation
...
Hit detection is done by rendering features with their id encoded in the
color attribute. A parallel set of render instructions and a second
vertex buffer is used specifically for that.
2019-06-28 09:06:16 +02:00
Olivier Guyot
8145b358c0
Webgl renderer / add id encode/decode utils
2019-06-28 09:06:16 +02:00
Olivier Guyot
034e0be76f
Vector Source / index all features by uid
...
Previously features were indexed by uid only when they
did not have a defined id.
A new method was added: `getFeatureByUid`. This is not part of
the public API.
This will facilitate the lookup of features for hit detection.
2019-06-28 09:06:16 +02:00
Andreas Hocevar
6b60b25e8b
Merge pull request #9728 from ahocevar/remove-package-lock
...
Remove accidently added package-lock.json
2019-06-28 09:04:39 +02:00
ahocevar
9bceccb5d1
Remove accidently added package-lock.json
2019-06-27 22:05:20 +02:00
Frederic Junod
0497225d5d
Fix wrong import in tutorial
2019-06-27 17:01:46 +02:00
Frederic Junod
49a65568d8
Remove unused param in getState function
2019-06-27 15:07:59 +02:00
Tim Schaub
a4b76b2a00
Merge pull request #9719 from petrsloup/special-maptiler-key
...
Use special MapTiler API key dedicated for OpenLayers examples
2019-06-25 17:41:32 -06:00
Petr Sloup
61fdf965ba
Use special MapTiler API key dedicated for OpenLayers examples
2019-06-25 16:34:58 +02:00
Frédéric Junod
9e928b996c
Merge pull request #9714 from fredj/f9662
...
Update the circle style after setRadius calls
2019-06-25 16:15:48 +02:00
Frédéric Junod
3d60dfdeeb
Merge pull request #9718 from fredj/cleanup
...
Remove unused variable in ol/renderer/webgl/PointsLayer
2019-06-25 15:37:23 +02:00
Frederic Junod
54c670de77
Remove unused variable in ol/renderer/webgl/PointsLayer
2019-06-25 15:24:00 +02:00
Frederic Junod
9aa11d2e11
Update the circle style after setRadius calls
2019-06-25 10:42:52 +02:00
Frederic Junod
0d6368d4ec
Remove underscore from protected function, fix indentation, remove typecast
2019-06-25 10:40:11 +02:00
Frédéric Junod
caac90e8d7
Merge pull request #9711 from fredj/viewParams_space
...
Remove extra space for the 'viewParams' attribute
2019-06-25 08:29:22 +02:00
Tim Schaub
7464cedff7
6.0.0-beta.11
v6.0.0-beta.11
2019-06-24 17:06:04 -06:00
Tim Schaub
51c49e36bc
Merge pull request #9712 from tschaub/mvt-id
...
Allow an arbitrary tag to be used as feature id
2019-06-24 16:42:06 -06:00
Andreas Hocevar
b29099a278
Merge pull request #9709 from ahocevar/circleci-puppeteer
...
Try to make rendering tests run again in puppeteer
2019-06-24 21:59:32 +02:00
Tim Schaub
08c494dd11
Allow an arbitrary tag to be used as feature id
2019-06-24 12:01:12 -06:00
Frederic Junod
c428421586
Remove extra space for the 'viewParams' attribute
2019-06-24 16:28:04 +02:00
ahocevar
c0a2549285
Try to make rendering tests run again in puppeteer
2019-06-24 10:20:47 +02:00
ahocevar
2df5f85018
Set version to 6.0.0-beta.10
2019-06-24 09:52:07 +02:00
Andreas Hocevar
4a0d6ce43c
Merge pull request #9705 from ahocevar/vectortile-render-optimizations
...
Vector tile renderer optimizations and fixes
2019-06-24 09:50:56 +02:00
Andreas Hocevar
187969cbb3
Merge pull request #9706 from ahocevar/non-browser-screen-check
...
Do not use self to check browser features
2019-06-24 09:48:59 +02:00
ahocevar
8cdfc6e17c
Do not use self to check browser features
2019-06-23 14:26:40 +02:00
ahocevar
9cd35d67a9
Fix clipping and clearing
2019-06-23 14:23:32 +02:00
ahocevar
4d2fa476a3
Simpler z sort
2019-06-23 14:22:56 +02:00
ahocevar
f864c05070
Less frame budget restrictions
2019-06-23 14:07:22 +02:00
ahocevar
3557271e5a
Use Image.prototype.decode also in Safari
2019-06-23 14:06:14 +02:00
Andreas Hocevar
8a49e06ebd
Merge pull request #9704 from ahocevar/vectortile-reuse-issue
...
Handle container reuse properly when layers are added/removed
2019-06-22 19:33:59 +02:00
ahocevar
6783f6adb9
Handle container reuse properly when layers are added/removed
2019-06-22 19:12:39 +02:00
Tim Schaub
5eb27f7704
Merge pull request #9703 from openlayers/greenkeeper/eslint-6.0.0
...
Update eslint to the latest version 🚀
2019-06-22 07:13:34 -06:00