Tim Schaub
6b4e00e6ac
Remove description from type tag
2019-10-23 10:27:56 -06:00
Andreas Hocevar
062614388c
Merge pull request #10161 from ahocevar/vectorimage-getfeatures
...
Implement getFeatures() for ol/layer/VectorImage
2019-10-23 11:26:08 +02:00
Olivier Guyot
a1c00744d1
Webgl points renderer / throw if shader compilation fails
...
This should only happen if providing handcrafted shaders to the renderer.
2019-10-22 23:17:00 +02:00
Andreas Hocevar
39012a58f8
Implement getFeatures() for ol/layer/VectorImage
2019-10-22 11:27:26 +02:00
Andreas Hocevar
36a366bfeb
Do not stop event propagation in prepareTile
2019-10-18 20:50:01 +02:00
Andreas Hocevar
54884314ee
Merge pull request #10094 from ahocevar/immediate-hitdetection
...
New Layer#getFeatures method with fast hit detection
2019-10-14 22:21:08 +02:00
Andreas Hocevar
90d6a6f441
Move hit detection to its own module
2019-10-14 14:40:06 +02:00
Andreas Hocevar
7454df0c2f
Resolve empty when tile not loaded yet
2019-10-14 14:13:57 +02:00
Simon Seyock
5b1106ac23
some type corrections
2019-10-10 09:07:35 +02:00
Andreas Hocevar
3c243b0236
getFeature() for VectorTile layer
2019-10-08 08:23:38 +02:00
Andreas Hocevar
e9785317eb
Move hit detection code to Immediate.js
2019-10-08 08:23:38 +02:00
Andreas Hocevar
315695eeb8
New Layer#getFeatures method with fast hit detection for VectorLayer
2019-10-08 08:23:38 +02:00
Frederic Junod
f20db28901
Align layer canvas to the left
...
So that the position is not affected by the `text-align` css rule.
2019-10-07 13:48:32 +02:00
Frederic Junod
41b7893523
Mark properties as nullable
2019-10-01 10:47:07 +02:00
Tim Schaub
d3b47c794e
Make the immediate API work with a user projection
2019-09-30 08:28:50 -06:00
Frederic Junod
ea88e6cbd4
Remove invalid undefined type in params
2019-09-27 11:01:50 +02:00
Andreas Hocevar
838edfa369
Recover from skip feature removal regressions
2019-09-26 16:56:38 +02:00
Olivier Guyot
b89c1255f7
Canvas vector / Avoid modifying the coordinates array in place
2019-09-26 15:34:31 +02:00
Olivier Guyot
7e4383f554
Webgl renderer / now accepts any kind of layer (not just vector)
2019-09-26 15:33:54 +02:00
Olivier Guyot
607f2f0746
Merge pull request #9994 from jahow/add-webgl-layer-type
...
Add a new layer type: WebGLPointsLayer
2019-09-26 14:55:09 +02:00
Simon Seyock
54cbe14f88
Check hits for wrapped around geometries
2019-09-26 11:46:10 +02:00
Olivier Guyot
9e9aa66f5f
Webgl points renderer / restore check for hit detection readiness
2019-09-25 17:22:36 +02:00
Olivier Guyot
b8564d503a
Webgl icon example / restore texture for icons
2019-09-25 17:22:36 +02:00
Olivier Guyot
9e55a8b2f0
Webgl / linting & test fixes
2019-09-25 17:22:36 +02:00
Olivier Guyot
610a846149
Webgl points renderer / make the hit detection optional
2019-09-25 17:22:36 +02:00
Simon Seyock
6b5c2f47bb
reduced typecasts in layerrenderer
2019-09-25 15:24:37 +02:00
Simon Seyock
bb0b94fedf
fixed typescript issues
2019-09-25 14:10:05 +02:00
Olivier Guyot
23c2999cab
Webgl points renderer / fix hit detection
...
Due to the fact that the points renderer does not know for sure
which attributes will be used for rendering, it is now mandatory
to provide both vertex/fragment shaders for rendering AND hit
detection.
The hit detection shaders should expect having an `a_hitColor`
that they should return to allow matching the feature uid.
This will be all one eventually by shader builders under the hood.
2019-09-25 12:11:09 +02:00
Olivier Guyot
2b36445ecc
Webgl / Adapt the points renderer to use custom attributes
...
Now most attributes will be custom ones defined by the user of the renderer.
The hit detection is broken for now and still has to be fixed.
Also it is not possible anymore to give a texture to the renderer,
this will have to be fixed as well.
2019-09-25 10:11:27 +02:00
Tim Schaub
fed6aef057
Merge pull request #9980 from tschaub/use-geographic-geom
...
Get simplified transformed geometry
2019-09-24 18:07:06 +02:00
Olivier Guyot
30f19f8317
Webgl points renderer / terminates worker & dispose helper
2019-09-24 17:59:21 +02:00
Tim Schaub
30cbbfea9d
Get simplified transformed geometry and load features in user projection
2019-09-24 17:45:04 +02:00
Andreas Hocevar
3ed1a433fb
Don't attempt to render when there is no source
2019-09-24 17:37:22 +02:00
Olivier Guyot
4d7562fca2
Add a new WebGLPointsLayer type using the shader builder utilities
...
This required adding a `a_index` attribute in the points layer renderer
to be able to make the precomputed shaders to work.
2019-09-24 17:24:56 +02:00
Tim Schaub
3c38a38570
Merge pull request #9961 from KlausBenndorf/remove-select-interaction
...
SelectInteraction removal
2019-09-24 10:27:20 +02:00
Simon Seyock
acac7a9403
remove skipFeature logic
2019-09-24 10:12:30 +02:00
Andreas Hocevar
db529a0d49
Merge pull request #9957 from ahocevar/vectortile-labels
...
Get hasOverlay from child element count
2019-09-23 23:20:17 +02:00
Tim Schaub
54d3af40dd
Transform the layer extent when a user projection is set
2019-09-23 17:23:20 +02:00
Andreas Hocevar
6a53ed3a68
Get hasOverlay from child element count
2019-09-23 08:40:00 +02:00
mike-000
50be36fc43
Correct clipping error seen in #9585
...
Clipping does not need to consider view rotation
2019-09-13 12:06:03 +01:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
Olivier Guyot
732b383b53
Webgl points / re-render when buffers have been built offthread
2019-08-31 08:41:04 +02:00
Olivier Guyot
5c1191dd5c
Webgl points / skip hit detection render when out of sync
...
This happens when the indices buffer has been generated by the
worker but not the hit detection vertices buffer.
2019-08-30 10:38:41 +02:00
Olivier Guyot
c48350b666
Webgl buffer / add utility getSize function
...
Saves checking whether the buffer was initialized with
an array already
2019-08-30 10:38:02 +02:00
Olivier Guyot
e57e660819
Webgl points / use default vertex shader for hit detection
...
Otherwise we were getting errors if the custom
vertex shader was missing varyings expected by
HIT_FRAGMENT_SHADER.
2019-08-30 10:16:55 +02:00
Tim Schaub
99462d3b53
Only get squared tolerance once per render
2019-08-17 07:10:10 -06:00
Maximilian Krög
200392785d
Squared tolerance does not change for each style.
2019-08-17 11:15:06 +02:00
Tim Schaub
e94c7b6c39
Only set frameState.animate true if in transition and alpha < 1
2019-08-15 12:55:27 -06:00
Andreas Hocevar
ec10cda088
Merge pull request #9812 from ahocevar/zdirection
...
Make zDirection configurable on tile source
2019-08-07 08:56:23 +02:00
Tim Schaub
65ad4932f4
Support zoom limits for layers
2019-08-06 21:19:09 -04:00