Tim Schaub
08c494dd11
Allow an arbitrary tag to be used as feature id
2019-06-24 12:01:12 -06: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
ahocevar
76f44efbb6
Add support for tile pixels to feature formats
2019-06-14 14:28:37 +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
Frederic Junod
91d49b26b5
Round the transform values in makeProjectionTransform test
2019-06-04 14:00:39 +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
Frederic Junod
87d5f4c8bc
Use 'helper' from WebGLHelper in tests
2019-06-01 15:35:31 +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
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
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
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
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
ahocevar
7895b16043
Reuse container for raster and vector image layers
2019-05-22 16:47:20 +02:00
Andreas Hocevar
579fadd797
Merge pull request #9561 from ahocevar/map-memory-leak
...
Remove memory leak caused by label cache listeners
2019-05-16 22:26:56 +02:00
ahocevar
335648d613
Remove memory leak caused by label cache listeners
2019-05-16 21:04:55 +02:00
Frederic Junod
a0e6af425e
Add tests for listenImage function, fix private variables initialization
2019-05-16 16:42:37 +02:00
Tim Schaub
442fbb13d2
Merge pull request #9550 from tschaub/worker
...
Setup for building workers
2019-05-16 07:02:34 -06:00
Frederic Junod
c2058af13a
Remove unused roundUpToPowerOfTwo function
2019-05-16 12:11:58 +02:00
Andreas Hocevar
1fc75fdc68
Merge pull request #9500 from edellucien/kml_extended_data
...
KML string validation with extendedData
2019-05-16 09:20:03 +02:00
Tim Schaub
b7b37f9548
Add worker loader to the tests
2019-05-15 16:49:54 -06:00
Tim Schaub
eafb657264
Merge pull request #9545 from tschaub/default-view-extent
...
Avoid panning off the edge of the world
2019-05-15 04:58:29 -06:00
Andreas Hocevar
11607caa81
Merge pull request #9536 from ahocevar/font-cache-hits
...
More font cache hits
2019-05-15 12:13:40 +02:00
ahocevar
41e958ea1f
Split text into single chars or don't split at all
2019-05-15 11:55:29 +02:00
Olivier Guyot
e11e3c5f6e
Webgl / minor function renaming
2019-05-15 11:30:24 +02:00
Olivier Guyot
c705775d75
Linting
2019-05-15 10:20:31 +02:00
Olivier Guyot
5d2b7fe4bb
Webgl points / use the helper ton compute the projection transform
...
The `WebGLHelper` class now provides a `makeProjectionTransform` method
that updates a transform to match the projection for a given frame state.
This also means that the WebGLHelper does not set the projection matrix
uniform anymore, this is the responsibility of the renderer as
the rendered coordinates will not be in world space from now on.
2019-05-15 10:18:47 +02:00
Olivier Guyot
3e2e45ce6d
Webgl helper / add the possibility to use transforms as custom uniforms
...
These will be translated into 4x4 matrices in GLSL.
2019-05-15 10:18:47 +02:00
Olivier Guyot
75eb62363a
WebGL points / rebuild buffers only when extent changed
2019-05-15 10:18:47 +02:00
Olivier Guyot
523097903a
WebGL points / rebuild buffers on every non animation frame
2019-05-15 10:18:22 +02:00
Olivier Guyot
c6d214b585
Webgl / implement support for custom attributes in webgl buffers
...
Only numerical attributes can be pushed in webgl buffers.
2019-05-15 10:15:55 +02:00
Olivier Guyot
3a429d3f6c
Webgl / add utils for pushing geojson geometries in webgl buffers
...
For now only point geometries are handled.
2019-05-15 09:44:41 +02:00
Olivier Guyot
5e36468245
Webgl / add a simple Layer renderer for common logic
...
This will eventually provides utilities for manipulating & rendering data
2019-05-15 09:43:29 +02:00
Olivier Guyot
a2d83f5358
WebGL points / add minimal tests
2019-05-15 09:42:15 +02:00
Tim Schaub
217c6ba764
Avoid panning off the edge of the world
2019-05-14 20:15:51 -06:00
Olivier Guyot
14f580fe30
Layer / accepts a custom render function
2019-05-13 16:16:53 +02:00
Lutz Helm
c2cbae95c6
Fix codestyle in IIIFInfo tests
2019-05-09 18:00:18 +02:00
Lutz Helm
b36ad87cb5
Extend IIIFInfo tests
2019-05-09 18:00:18 +02:00
Lutz Helm
7bfaa3b6ad
Refactor IIIFInfo and add tests
2019-05-09 18:00:18 +02:00
Lutz Helm
3895a59c5e
Fix typo
2019-05-09 18:00:18 +02:00