Commit Graph

13626 Commits

Author SHA1 Message Date
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
Simon Seyock 6b5c2f47bb reduced typecasts in layerrenderer 2019-09-25 15:24:37 +02:00
Kai Volland 8611475477 Transforms TEXT_ALIGN enum
This transforms the TEXT_ALIGN enum to
avoid "empty enum" warning when running jsdoc.
2019-09-25 15:05:39 +02:00
Kai Volland 7c5f144cf4 Removes @fires annotation from LabelCache 2019-09-25 15:04:49 +02:00
Kai Volland 4fe157e7fb Removes invalid description on @type annotation 2019-09-25 15:03:37 +02:00
Tim Schaub 426cd754cd Merge pull request #9999 from KlausBenndorf/typescript-fixes
fixed typescript issues
2019-09-25 14:19:16 +02:00
Simon Seyock bb0b94fedf fixed typescript issues 2019-09-25 14:10:05 +02:00
Tim Schaub 8f7f76188a Avoid error from tsc 2019-09-25 12:16:16 +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 109f9718f9 Webgl renderer / fix existing examples
The shaders were rewritten manually for those, althoughj eventually they
should use the shader builder utilities as well.
2019-09-25 11:09:07 +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
Frédéric Junod 0c8775b3c8 Merge pull request #9982 from fredj/css_vendor
Don't use vendor prefixes for the transform property
2019-09-25 08:26:11 +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
Tim Schaub b1f0b6997b Additional changes to work with user projection 2019-09-24 19:58:53 +02: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 b1196e7601 fix linting 2019-09-24 17:58:56 +02:00
Tobias Kohr 5711cd30d0 Seperate getEventCoordinate into internal/external method 2019-09-24 17:58:56 +02:00
Tobias Kohr 686c185de3 Call internal method in MousePosition 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
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
Simon Seyock 82486899df getFeatureAtPixel always returns array 2019-09-24 17:16:25 +02:00
Frederic Junod 75a553b37c Don't use vendor prefixes for the transform property
We are already not using the prefixes in other part of the library.
For example:
https://github.com/openlayers/openlayers/blob/v6.0.0-beta.15/src/ol/renderer/canvas/TileLayer.js#L356
2019-09-24 16:58:49 +02:00
Simon Seyock 6866f06375 Remove simplified geometry cache 2019-09-24 16:55:33 +02:00
Andreas Hocevar f21d698915 Merge pull request #9960 from ahocevar/lazy-event-calculations
Always dispatch pointermove events, but calculate event pixel and coordinate lazily
2019-09-24 16:11:17 +02:00
Andreas Hocevar 60c2c4e088 Get rid of map focus 2019-09-24 16:02:36 +02:00
Andreas Hocevar a139b01f8e Always dispatch pointermove, but calculate coordinates lazily 2019-09-24 16:02:36 +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
Andreas Hocevar 818bdc411c Handle empty source tiles and queue them properly 2019-09-24 15:18:59 +02:00
Marc Jansen 3992aede9d Merge pull request #9974 from KaiVolland/9865-xhr
Introduces the _withCredentials flag
2019-09-24 14:37:25 +02:00
Kai Volland 87e63ee4df Introduces the _withCredentials flag
This introduces the _withCredentials flag and the
corresponding setter to the featureloader.

Co-authored-by: mstenta <mike@mstenta.net>
2019-09-24 14:18:37 +02:00
Olivier Guyot b97647d39b Merge pull request #9966 from jahow/allow-disable-canvas-reuse
Document how to circumvent the canvas reuse optimization
2019-09-24 11:16:45 +02:00
Olivier Guyot 167fa6b8a0 Add property to all layers api doc 2019-09-24 10:58:55 +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
Simon Seyock 3838b68427 Removed SelectInteraction 2019-09-24 10:12:30 +02:00
Olivier Guyot 449686527b Document how to avoid canvas reuse for layers
This restores the `map.forEachLayerAtPixel` functionality.

This is intended to help with openlayers#9720
2019-09-24 09:46:32 +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
Olivier Guyot 4abb9c2fd0 Merge pull request #9962 from mike-000/patch-1
Improve the API description for "multiWorld"
2019-09-23 16:36:48 +02:00
Olivier Guyot 5cb99d0f84 Merge pull request #9710 from jahow/fix-typings
Additional Typescript compliance fixes
2019-09-23 16:36:23 +02:00