Frederic Junod
06be00bbd5
Webgl Helper / add an API for OESElementIndexUint extension
2019-06-01 15:35:27 +02:00
Frederic Junod
7fb113c3dc
Mark 'helper' variable protected
2019-06-01 15:33:36 +02:00
Olivier Guyot
98b0c65450
Rendering tests / add custom web worker loader
...
Also includes a change in the rollup-babel plugin to avoid
adding helpers as dependencies (which would give out errors).
2019-06-01 15:33:36 +02:00
Olivier Guyot
698816030e
Webgl points / fix unit tests
2019-06-01 15:33:36 +02:00
Olivier Guyot
03e70bd10e
Webgl points / handle using short instead of int for indices
...
This is controlled by the availability of the OES_element_index_uint
webgl extension.
2019-06-01 15:33:36 +02:00
Olivier Guyot
e0983cb1c6
Webgl worker / add tests, some typing and documentation
...
The worker currently works by receiving GENERATE_BUFFERS messages and
will send back the same kind of message, with the generated buffers
attached. All properties of the original message are kept, so that
when a GENERATE_BUFFERS message comes back to the main thread it
is possible to know what and how the buffers where generated.
This is typically used for the `projectionTransform` matrix, and
will also be necessary when working with tiles.
2019-06-01 15:33:36 +02:00
Olivier Guyot
a366803cdd
Webgl / use the new buffer API in helper & the points renderer
2019-06-01 15:33:36 +02:00
Olivier Guyot
33d007ce01
Webgl buffer / now stores data in typed arrays
...
The `WebGLBuffer` class API was changed in order to allow populating
the internal array in different ways.
2019-06-01 15:33:31 +02:00
Olivier Guyot
8566cfc227
Webgl points / get back the instructions array from the worker
...
This means we won't have to recreate a binary buffer (through a typed array)
on every `rebuildBuffer` call.
2019-06-01 15:25:24 +02:00
Olivier Guyot
65be907095
Webgl points / shifts the buffer write logic in a worker
...
The worker receives a transferable array of instructions
and sends back two transferable arrays (vertex and index buffer).
The projection transform is also sent so that when the main thread
receives the buffers from the worker it also knows which projection to
apply when rendering the geometries.
2019-06-01 15:25:11 +02:00
Olivier Guyot
532b8194b1
Webgl points / use the new typed-array based utils for buffers
...
`rebuildBuffer` is still a very CPU intensive task and is blocking the
main thread.
2019-06-01 15:20:04 +02:00
Olivier Guyot
eb912d95ca
Webgl / refactor utilities to work only on typed arrays
...
The base webgl renderer module now has two types of utilities:
* `writeXFeatureInstructions` will write a series of values in a given
typed array, which represent how a given feature will be rendered; for points,
this means position, size, color, etc.
* `writeXFeatureToBuffers` will fill up the given index & vertex buffers
with values based on the provided render instructions
As such, the logic for rendering features is:
user-input style > instructions array >(*) index/vertex buffers > draw
(*) this transformation is intended to be done on a worker.
2019-06-01 15:19:37 +02:00
Frédéric Junod
245ded43d4
Merge pull request #9626 from fredj/rm_from_has
...
Remove TOUCH, POINTER and MSPOINTER from ol/has
2019-06-01 12:09:40 +01:00
Frederic Junod
7c215b2532
Remove TOUCH, POINTER and MSPOINTER from ol/has
2019-06-01 07:18:23 +02:00
Frédéric Junod
579d05a0cb
Merge pull request #9624 from fredj/cleanup
...
Remove typecasts in ol/control/OverviewMap
2019-06-01 06:13:02 +01:00
André Garneau
b42ee8ca0f
Add filter function to translate interaction
...
Add a filter function to the translate interaction. This filter is similar to the one present in the select interaction options and provides the ability to dynamically filter which features to include in the translate interaction. Adding the existing "features" options allows further filtering to take place. In this case the filter is first applied, and features that are passing the filtering need to be present in the "features" options to be further kept. The default filter function always return true (no filtering).
2019-05-31 14:51:13 -04:00
Frederic Junod
ede864c823
Remove typecasts in ol/control/OverviewMap
...
The `options` type was not correctly detected by the typescript compiler.
2019-05-31 16:18:15 +02:00
ahocevar
a50ef05565
Set version to 6.0.0-beta.9
2019-05-30 15:55:09 +02:00
Tim Schaub
93a607d846
Merge pull request #9615 from tschaub/import-specifiers
...
Include full filename in import specifier
2019-05-29 09:35:34 -06:00
Tim Schaub
deb00f20fe
Include full filename in import specifier
2019-05-29 08:51:10 -06:00
Frédéric Junod
c4e465dcf9
Merge pull request #9592 from fredj/f9587_layerIndex
...
Remove `layerState` param from `prepareFrame` and `renderFrame` function
2019-05-29 09:27:38 +02:00
Frederic Junod
bfea858306
Add missing extension in import
2019-05-29 09:19:17 +02:00
Frédéric Junod
c92bf29677
Fix spelling
...
Co-Authored-By: Tim Schaub <tschaub@users.noreply.github.com >
2019-05-29 09:07:05 +02:00
Andreas Hocevar
6675f9be57
Merge pull request #9289 from sbrunner/vector-source-geom
...
Vector source geom
2019-05-28 11:23:31 +02:00
Frédéric Junod
1a6d67776b
Merge pull request #9608 from fredj/md_link
...
Use markdown link syntax in jsdoc
2019-05-27 14:17:18 +02:00
Stéphane Brunner
889b6a9f43
Removes unnecessary type cast
2019-05-27 11:34:33 +02:00
Stéphane Brunner
970c1bcb66
Make the vector source geometry generic
2019-05-27 11:34:31 +02:00
Frederic Junod
2db953ceb1
Use markdown link syntax in jsdoc
2019-05-27 11:06:12 +02:00
Olivier Guyot
051cc68f24
Merge pull request #9596 from jahow/fix-source-missing-event
...
Vector source / prevent adding features with duplicate id in the collection
2019-05-26 10:53:58 +02:00
Frederic Junod
40c49a9ce5
Remove layerState param from prepareFrame and renderFrame function
2019-05-25 07:19:10 +02:00
Olivier Guyot
442fa907ce
Vector source / prevent adding features with duplicate id...
...
...in the collection.
Previously two features with the same id could be pushed manually in the
features collection and stay there.
This would cause an error when clearing the source.
Fixes #6183 .
2019-05-24 23:29:48 +02:00
Bart van den Eijnden
7044e30529
Merge pull request #9604 from bartvde/window-global
...
Use window instead of global in addEventListener
2019-05-24 15:17:07 +02:00
Frédéric Junod
7cfe047feb
Merge pull request #9599 from openlayers/github_funding
...
Create FUNDING.yml
2019-05-24 15:14:26 +02:00
Tim Schaub
796f20385d
Merge pull request #9598 from openlayers/greenkeeper/puppeteer-1.17.0
...
Update puppeteer to the latest version 🚀
2019-05-24 06:58:00 -06:00
bartvde
c76aa76743
Use window instead of global in addEventListener
2019-05-24 14:51:32 +02:00
Bart van den Eijnden
2969c9e8fb
Merge pull request #9601 from bartvde/fix-addeventlistener2
...
Use global addEventListener in PluggableMap
2019-05-24 14:11:26 +02:00
bartvde
119c24faa2
Use global addEventListener in PluggableMap
2019-05-24 13:45:19 +02:00
Frédéric Junod
93711ea806
Create FUNDING.yml
2019-05-24 11:19:37 +02:00
Andreas Hocevar
96331c5d95
Merge pull request #9584 from ahocevar/reuse-render-target
...
Reuse render target
2019-05-24 10:33:36 +02:00
ahocevar
d8f41a9d73
Only reuse target when className is the same
2019-05-24 10:16:20 +02:00
greenkeeper[bot]
311900e441
chore(package): update puppeteer to version 1.17.0
2019-05-24 00:18:21 +00:00
ahocevar
bdb87f06f9
Rework tile image render queue
2019-05-23 15:55:29 +02:00
Frédéric Junod
ddb7da3733
Merge pull request #6217 from fredj/dragpan_primary
...
Add primaryAction condition to DragPan
2019-05-23 09:50:55 +02:00
Tim Schaub
a358521b2b
Merge pull request #9594 from openlayers/greenkeeper/webpack-4.32.2
...
Update webpack to the latest version 🚀
2019-05-22 21:12:52 -06:00
greenkeeper[bot]
4f833501d7
chore(package): update webpack to version 4.32.2
2019-05-22 23:39:55 +00:00
ahocevar
ace5c65ee5
Smarter opacity handling
2019-05-22 16:47:23 +02:00
ahocevar
ae47d3df58
Use opacity from layer state
2019-05-22 16:47:22 +02:00
ahocevar
4c8effe6fa
No tile transition when layer opacity is set
2019-05-22 16:47:22 +02:00
ahocevar
c56ad4363d
Canvas opacity instead of css
2019-05-22 16:47:22 +02:00
ahocevar
7895b16043
Reuse container for raster and vector image layers
2019-05-22 16:47:20 +02:00