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
Lutz Helm
c25dba415f
Add more IIIF tile source tests
2019-05-09 18:00:18 +02:00
Lutz Helm
27d943dcc3
Add tests for IIIF tile source and fix source
...
The tests are still incomplete.
This commit also corrects the IIIF source where tests have failed.
2019-05-09 18:00:18 +02:00
lucien
81f99f1579
Write placemark's ExtendedData tag after Style tag
2019-05-07 09:02:28 +02:00
ahocevar
12289b8ef9
Declutter in correct order and for all layers
2019-05-05 12:20:38 +02:00
Olivier Guyot
d3e6f4c3b2
Restore code coverage in Karma config
...
The transpiling step is done by babel instead of bublé now.
Bublé caused the istanbul instrumenter step to crash because of an
unexpected SourceMap object format.
2019-05-03 15:15:14 +02:00
ahocevar
dde9c59021
Use nearest lower resolution of vector tiles
2019-04-26 14:29:09 +02:00
ahocevar
752b69680e
Do not round view center to pixels
2019-04-17 15:52:58 -07:00
Frederic Junod
2989c84248
Implement translate function for circle geometry
2019-04-11 16:12:41 +02:00
Frederic Junod
319a905ec0
Implement rotate function for circle geometry
2019-04-09 16:58:44 +02:00
Frederic Junod
746f92d597
Fix tile state condition in raster layer test
...
The state was duplicated from the beginning, see 3ddb8712a3
2019-04-08 17:04:37 +02:00
Frederic Junod
187f58c1c3
Remove opt_this param in ol/extent
2019-04-08 13:46:54 +02:00
Andreas Hocevar
10a2b718f5
Merge pull request #9286 from ahocevar/interim-transition
...
Disable transition when an interim tile is available
2019-04-05 17:33:58 +02:00
ahocevar
070c1ec029
Resolve constraints for View#animate() API calls
2019-04-05 17:13:55 +02:00