Marc Jansen
c97a728531
Merge pull request #9394 from KaiVolland/docs-import-functions
...
Introduces import snippets for static functions
2019-06-05 22:20:15 +02:00
Olivier Guyot
811bff0430
Merge pull request #9638 from agpixdev/translate-interaction-filter
...
#9625 : Add filter function to translate interaction
2019-06-05 15:32:29 +02:00
Olivier Guyot
2412fe0211
Webgl / remove handling of element_index_uint extension
...
From now on we will assume this extension is always enabled.
An error message have been added in the unlikely scenario of a lack
of support.
2019-06-05 14:46:15 +02:00
Tim Schaub
32084a7fce
Merge pull request #9649 from openlayers/greenkeeper/webpack-4.33.0
...
Update webpack to the latest version 🚀
2019-06-04 20:11:55 -07:00
André Garneau
7817cf31c6
Changes following code review
...
Add a type for FilterFunction and add tests for filter option.
2019-06-04 17:45:28 -04:00
greenkeeper[bot]
2e5aac8dba
chore(package): update webpack to version 4.33.0
2019-06-04 20:02:28 +00:00
Frédéric Junod
8b08996703
Merge pull request #9644 from fredj/webgl_layer_compose
...
Use compose function from ol/transform
2019-06-04 15:35:05 +02:00
Andreas Hocevar
1fbbc56f93
Merge pull request #9645 from ahocevar/no-used-tiles
...
Handle case of no used tiles
2019-06-04 15:26:27 +02:00
ahocevar
8f77a300de
Handle case of no used tiles
2019-06-04 14:07:23 +02:00
Frederic Junod
91d49b26b5
Round the transform values in makeProjectionTransform test
2019-06-04 14:00:39 +02:00
Frederic Junod
02ce2f4bec
Use compose function from ol/transform
2019-06-04 13:23:12 +02:00
Andreas Hocevar
d4f98c8e59
Merge pull request #9640 from ahocevar/base-docs
...
Import options directly instead of importing a typedef
2019-06-04 09:30:38 +02:00
Andreas Hocevar
ab0860a22a
Merge pull request #9641 from ahocevar/less-proj-imports
...
Only import what's needed from projections
2019-06-04 09:27:05 +02:00
ahocevar
dd478167a0
Only import what's needed from projections
2019-06-04 09:14:08 +02:00
ahocevar
2df911e0a8
Import options directly instead of importing a typedef
2019-06-04 08:41:08 +02:00
Andreas Hocevar
e9939ecc38
Merge pull request #9637 from ahocevar/detach-labelcache-on-settarget
...
Detach label cache on Map#setTarget()
2019-06-03 16:03:30 +02:00
Frédéric Junod
d058439756
Merge pull request #9633 from fredj/rm_typecast
...
Mark the `layers` property as optional in OverviewMap constructor
2019-06-03 15:46:23 +02:00
ahocevar
8c21c9196d
Move label cache listener management to the renderer
2019-06-03 15:13:30 +02:00
ahocevar
68b7831daf
Listen to label cache again when we have a target
2019-06-03 14:28:20 +02:00
ahocevar
153e06e4d5
Detach label cache on Map#setTarget()
2019-06-03 14:14:13 +02:00
Andreas Hocevar
9bedfb7cb0
Merge pull request #9634 from ahocevar/remove-old-android-workaround
...
Remove old Android workaround
2019-06-03 10:17:44 +02:00
ahocevar
1bd23a0c32
Remove old Android workaround
2019-06-03 10:03:53 +02:00
Frederic Junod
50343afa61
Remove unnecessary typecasts in constructors options
2019-06-03 09:08:41 +02:00
Frederic Junod
a9e1ebccd3
Mark the layers property as optional in OverviewMap constructor
2019-06-03 09:07:20 +02:00
Andreas Hocevar
9672142c1e
Merge pull request #9629 from ahocevar/reuse-vectortile-overlay
...
Clear overlay canvas when reusing containers
2019-06-02 18:20:24 +02:00
ahocevar
6123be726a
Handle layer removal on shared containers
2019-06-02 13:59:06 +02:00
ahocevar
05d8517686
Clear overlay canvas when reusing containers
2019-06-02 11:07:30 +02:00
Frederic Junod
87d5f4c8bc
Use 'helper' from WebGLHelper in tests
2019-06-01 15:35:31 +02:00
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