Frédéric Junod
300522e3cc
Merge pull request #9701 from fredj/overlay_will-change
...
Remove will-change CSS rule for Overlay container
2019-06-21 16:36:27 +02:00
Tim Schaub
3ede6e32be
Merge pull request #9702 from lutzhelm/typecheck-iiif
...
Fix several TypeScript type check problems
2019-06-21 07:53:59 -06:00
Lutz Helm
d6dc7a926d
Fix several TypeScript type check problems
2019-06-21 15:26:28 +02:00
Frederic Junod
a6ebad008f
Remove will-change CSS rule for Overlay container
...
Fixes #9467
Fixes #9139
Chrome doesn't force a composition if the `will-change` CSS rule is different from `transform` or `opacity`.
See https://bugs.chromium.org/p/chromium/issues/detail?id=960953
2019-06-21 14:22:46 +02:00
Kai Volland
ed5d4aaf6d
Fixes typing issue in mat4.js
2019-06-21 13:35:40 +02:00
Kai Volland
f507efe77d
Fixes typing issue in Composite.js
2019-06-21 13:31:27 +02:00
Kai Volland
83173cd385
Fixes typing issue in VectorTile.js
2019-06-21 13:30:35 +02:00
Kai Volland
b6b91abc27
Fixes typing issue in DragPan.js
2019-06-21 13:28:56 +02:00
Frederic Junod
ef10834eb3
Remove unused constants from ol/webgl
...
And change the `EXTENSIONS` constant to a function
2019-06-20 10:25:22 +02:00
Frederic Junod
1f00da8d83
Remove glContext from RenderEvent
2019-06-17 13:52:56 +02:00
Andreas Hocevar
edebf35135
Merge pull request #9677 from ahocevar/featureformat-tilepixels
...
Add support for tile pixel projection in feature formats
2019-06-15 08:22:28 +02:00
Frederic Junod
ec5e8bfa50
Set pixelTransform and inversePixelTransform as protected
...
The variables are used in child classes
2019-06-14 14:52:28 +02:00
ahocevar
76f44efbb6
Add support for tile pixels to feature formats
2019-06-14 14:28:37 +02:00
Frédéric Junod
ef1b672323
Merge pull request #9658 from fredj/f9628
...
Don't use HTMLImageElement.decode method on Safari
2019-06-06 16:34:57 +02:00
Frederic Junod
002dc34455
Don't use HTMLImageElement.decode method on Safari
...
The decode function is supported by Safari but not when the image is a svg file.
2019-06-06 16:15:36 +02:00
Frederic Junod
a8e0e4e960
Better documentation for getFeaturesInExtent function
2019-06-06 14:08:25 +02:00
Olivier Guyot
9ae7256048
Merge pull request #9562 from jahow/webgl-worker
...
Optimize the WebGL points renderer using a worker
2019-06-06 08:48:29 +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
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
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
ahocevar
8f77a300de
Handle case of no used tiles
2019-06-04 14:07:23 +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
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
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
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
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
Frederic Junod
7c215b2532
Remove TOUCH, POINTER and MSPOINTER from ol/has
2019-06-01 07:18:23 +02: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