Lutz Helm
3cc18b6ea1
Test full region zoom levels with IIIF Image API v3 tile source
2019-07-02 13:39:23 +02:00
Lutz Helm
0507132a21
Correct and test IIIF version 3 image info parser
2019-07-02 13:21:09 +02:00
Lutz Helm
cc976dd4ad
Adjust IIIF info parsing to 3.0-beta spec
...
- respect `preferredFormats`
- correct compliance level profile formats and features
2019-07-01 17:51:52 +02:00
Andreas Hocevar
8ff29f8431
Merge pull request #9732 from ahocevar/vectortile-empty-key
...
Fix EMPTY state and source key handling
2019-06-29 10:18:53 +02:00
ahocevar
c4937bc716
Fix EMPTY state and source key handling
2019-06-28 23:25:36 +02:00
Frederic Junod
933a6297bb
Remove unused hasFeatureAtCoordinate from ol/renderer/Layer
2019-06-28 11:10:33 +02:00
Olivier Guyot
28b99767f8
Webgl points / read only one pixel for feature hit detection
...
Also implements `hasFeatureAtCoordinate`.
`hitTolerance` is not supported for now.
2019-06-28 09:12:20 +02:00
Olivier Guyot
e852294938
Webgl / improve reading of render targets data
...
Now two methods are available: `readAll` and `readPixel`,
and the data from the render target is not re-read every time unless
`clearCachedData` is called.
2019-06-28 09:12:20 +02:00
Olivier Guyot
6224d749c4
WebGL / Introduced the WebGLRenderTarget class
...
This utility class simplifies rendering to a texture & reading the
results of the render.
It also allows clearing its content before a new render.
2019-06-28 09:12:20 +02:00
Olivier Guyot
1257ade199
Webgl renderer / rename function to avoid confusion
...
`getBlankTexture` was too close to `WebGLHelper#createTexture`
2019-06-28 09:12:20 +02:00
Olivier Guyot
f25a16d90c
Webgl helper / rework create texture utils
...
Now only one util is available: `createTexture`, which
is tested and allows binding an image and reusing an existing texture.
2019-06-28 09:12:20 +02:00
Olivier Guyot
8145b358c0
Webgl renderer / add id encode/decode utils
2019-06-28 09:06:16 +02:00
Olivier Guyot
034e0be76f
Vector Source / index all features by uid
...
Previously features were indexed by uid only when they
did not have a defined id.
A new method was added: `getFeatureByUid`. This is not part of
the public API.
This will facilitate the lookup of features for hit detection.
2019-06-28 09:06:16 +02:00
Tim Schaub
08c494dd11
Allow an arbitrary tag to be used as feature id
2019-06-24 12:01:12 -06: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
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