Andreas Hocevar
70706443f5
Merge pull request #10048 from ahocevar/early-empty-state
...
Early EMPTY state for VectorRenderTile
2019-09-27 22:29:42 +02:00
Andreas Hocevar
47dd60104d
Set EMPTY state of VectorRenderTile early
2019-09-27 19:04:21 +02:00
Tim Schaub
80cf76e783
Merge pull request #10043 from tschaub/snap-geographic
...
User coordinates during snapping
2019-09-27 17:20:16 +02:00
Tim Schaub
a996d62d46
Test snap with geographic coordinates
2019-09-27 14:12:10 +02:00
Andreas Hocevar
99c56a1f08
Additional tests for LineString
2019-09-27 11:10:14 +02:00
Andreas Hocevar
ac8f8f4e88
Merge pull request #10024 from ahocevar/focus-condition-target
...
Allow EventTarget to use a different default target
2019-09-26 19:59:27 +02:00
Andreas Hocevar
fd594c2001
Do not remove listeners that do not exist
2019-09-26 19:02:06 +02:00
Andreas Hocevar
3a10476c1c
Merge pull request #10007 from mike-000/patch-1
...
Changes for #9395 CircleStyle inconsistency
2019-09-26 18:46:24 +02:00
Tim Schaub
b56c8b6630
Merge pull request #10027 from tschaub/fix-test
...
Confirm zoomByDelta calls view.animate()
2019-09-26 18:39:36 +02:00
Tim Schaub
53e2f432e7
Confirm zoomByDelta calls view.animate()
2019-09-26 18:30:16 +02:00
Olivier Guyot
8c19399d0b
Merge pull request #10016 from jahow/webgl-attribute-link
...
WebGL Points Layer: allow expressions in literal style
2019-09-26 18:02:26 +02:00
Andreas Hocevar
899af3e5c7
Allow EventTarget to use a different default target
2019-09-26 17:56:51 +02:00
Tim Schaub
5d4e77151c
Handle event coordinate in the user projection
2019-09-26 17:24:58 +02:00
Tim Schaub
1e27846d6d
Use user projection for event coordinate
2019-09-26 17:23:39 +02:00
Olivier Guyot
28d157af56
Shader builder / add circle and triangle shapes for symbols
2019-09-26 16:30:19 +02:00
Olivier Guyot
9b3a9b5eca
Shader builder / add logic for transforming a style into shader params
...
This was previously handled by the WebGLPointsLayer class, but is now
externalized and tested.
2019-09-26 16:20:35 +02:00
Olivier Guyot
d5caabbbfc
Shader builder / add basic expression parsing
...
Only a handful of expressions for now, very loosely based on the
mapbox style spec. Also only work on numerical values.
2019-09-26 16:20:35 +02:00
Olivier Guyot
02e5e1776c
Hit detection / fix test for wrapped geometries hit detection
...
Also restores the whole unit test suite.
2019-09-26 15:59:14 +02:00
Andreas Hocevar
28fb7c5590
Merge pull request #10010 from ahocevar/require-type-and-listener
...
Require type and listener for addEventListener/removeEventListener
2019-09-26 15:29:50 +02:00
mike-000
e28fa56edd
Changes for the CircleStyle inconsistency seen in #9395
...
Change hit detection test to reflect fix for #9395 CircleStyle inconsistency
Update ol/style/Circle and ol/style/RegularShapen tests
Revise test for no fill
Add test for transparent fill
Update Upgrade notes
Changes to hit detection with unfilled styles
2019-09-26 14:27:31 +01:00
Andreas Hocevar
d2e33a0df0
Add a test that shows the fixed issue
2019-09-26 15:20:29 +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
Tim Schaub
14a9002ee2
Merge pull request #10006 from KlausBenndorf/check-wrapped
...
Check hits for wrapped around geometries
2019-09-26 14:07:02 +02:00
Simon Seyock
edc95abc3b
added test for off-world geometries
2019-09-26 11:46:10 +02:00
Tim Schaub
965d0541f2
Merge pull request #10004 from tschaub/revisions
...
Return a new simplified geometry after modification
2019-09-26 09:22:12 +02:00
Tobias Kohr
347f5df32e
Fix some cosmetics on Select interaction
2019-09-25 17:34:26 +02:00
Tim Schaub
680372ac3f
Return a new simplified geometry after modification
2019-09-25 17:26:22 +02:00
Olivier Guyot
34572da17b
Webgl shader builder / expanded functionality
...
Now takes in a custom object with attributes, uniforms etc.
The WebGLPointsLayer uses this to handle image icons.
2019-09-25 17:22:36 +02:00
Olivier Guyot
9e55a8b2f0
Webgl / linting & test fixes
2019-09-25 17:22:36 +02:00
Tobias Kohr
2ccaed0ace
Add back Select interaction without Overlay
2019-09-25 16:37:28 +02:00
Tobias Kohr
38124d770b
Revert delete Select interaction commit 3838b68427
2019-09-25 16:37:28 +02:00
Olivier Guyot
4ad582ff01
Merge pull request #9986 from mike-000/patch-2
...
Make Circle geometry hit detection consistent with Polygon
2019-09-25 15:38:50 +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
Tim Schaub
f4ba9dd9dc
Add geographic tests for hasFeatureAtPixel and getFeaturesAtPixel
2019-09-25 10:18:46 +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
mike-000
678f9136c6
Make Circle hit detection consistent with Polygon
...
Fixes one of the inconsistencies seen in #9395
Add hit detection for no fill and transparent fill
Based on the example used in #9395 The tests expect consistency between Polygon and Circle geometries but currently expect the inconsistent behaviour seen when using CircleStyle
2019-09-24 22:06:28 +01:00
Olivier Guyot
076b674d6f
Webgl helper / easier utility for binding attributes
...
also a bit of improvement on the doc
2019-09-24 19:10:07 +02:00
Tim Schaub
7be4835144
Merge pull request #9973 from tkohr/user-projection-map
...
Make map work with user projected coordinates
2019-09-24 18:21:56 +02:00
Tobias Kohr
8c4937170b
rename external methods to API names
2019-09-24 18:13:57 +02:00
Tim Schaub
c071c749eb
Merge pull request #9981 from KlausBenndorf/replace-geometry-cache
...
Remove simplified geometry cache
2019-09-24 18:11:33 +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
Tobias Kohr
182ed012e2
review corrections
2019-09-24 17:58:56 +02:00
Tobias Kohr
a0df485736
add tests for modified methods
2019-09-24 17:58:56 +02:00
Tobias Kohr
d4c1589a01
Seperate internal and API methods for the map
2019-09-24 17:58:56 +02:00
Simon Seyock
04738f494f
Removed tests for simplified geometry cache
2019-09-24 17:47:32 +02:00
Tim Schaub
30cbbfea9d
Get simplified transformed geometry and load features in user projection
2019-09-24 17:45:04 +02:00
Simon Seyock
82486899df
getFeatureAtPixel always returns array
2019-09-24 17:16:25 +02:00
Olivier Guyot
a6b8d920b7
Webgl / add a fixed fragment shader builder for symbols
2019-09-24 15:49:07 +02:00
Olivier Guyot
4de0c0b082
Webgl / add a very simple vertex shader builder utility
...
This only allows including hardcoded values in the shader,
and only for symbols.
2019-09-24 15:43:26 +02:00