Olivier Guyot
3530b4cf12
Merge pull request #10120 from mike-000/patch-9
...
Resolve constraints using anchor if following a cancelled animation
2019-12-03 09:37:48 +01:00
Andreas Hocevar
2b6925dc1e
Remove line that was accidently added with #10332
2019-11-30 18:16:54 +01:00
Andreas Hocevar
057650fe7d
Merge pull request #10309 from ahocevar/vectortile-rendermode-vector
...
Bring back vector render mode for vector tile layers
2019-11-29 11:51:38 +01:00
Andreas Hocevar
10a6284b0b
Merge pull request #10332 from ahocevar/no-touch-action-css
...
Conditional default prevention instead of touch-action: none
2019-11-29 09:52:29 +01:00
Andreas Hocevar
0a319ea2a2
Merge pull request #10301 from ahocevar/getfeatures-fixes
...
Create hit detection data per layer and without requestAnimationFrame
2019-11-29 09:44:09 +01:00
Alexandre Dubé
d87caed50f
Set utfgrid tile as loaded after load instead of empty
2019-11-27 11:37:52 -05:00
Andreas Hocevar
cda01cfeb9
Merge pull request #10344 from ahocevar/preemptive-tilejson
...
Fix lazy UTFGrid loading
2019-11-27 10:21:30 +01:00
Andreas Hocevar
79074d31c1
Fix lazy UTFGrid loading
2019-11-27 09:44:43 +01:00
Andreas Hocevar
e2c4670d6a
Merge pull request #10321 from greggian/touch-dragbox
...
Support touch events for DragBox interaction
2019-11-26 18:34:28 +01:00
Andreas Hocevar
a66734dd20
Merge pull request #10330 from greggian/modify-circle
...
Fix modifying circle geometries
2019-11-26 17:42:33 +01:00
Andreas Hocevar
88b8b2f7cb
Conditional default prevention instead of touch-action: none
2019-11-25 01:09:05 +01:00
Greg Gianforcaro
93d3ddb033
Fix modifying circle geometries
...
The Snap interaction may have altered the event coordinate, so Modify
should use the event coordinate whenever available.
Resolves #10316
2019-11-23 00:36:42 -05:00
Greg Gianforcaro
d99c77b992
Update DragBox jsdoc
...
- update the typedef to change the condition default value to {@link ol/events/condition~mouseActionButton}
- remove 'This interaction is only supported for mouse devices' comment
2019-11-22 16:35:31 -05:00
Andreas Hocevar
0ed57b8b7c
Merge pull request #10318 from ahocevar/elm-pep
...
Use a minimalist pointer events polyfill
2019-11-21 14:45:34 +01:00
mike-000
8865f22020
Fix trailing space
2019-11-20 18:28:59 +00:00
mike-000
fb7060a4d0
Update tile grid option descriptions
...
In version 6 coordinate increase downwards. Revise the description for "sizes" to better distinguish zoom level and overall grid extents. Remove reference to the "widths" options which was deprecated over 4 years ago.
2019-11-20 18:15:31 +00:00
mike-000
c3153075b2
Update tile grid option descriptions
...
In version 6 coordinate increase downwards. Add a description for "sizes"
2019-11-20 18:02:42 +00:00
Greg Gianforcaro
2df22af3ca
Update DragBox to use only condition for filtering
...
- Remove mouseOnly and mouseActionButton hardcoded filters
- Default condition to mouseActionButton
2019-11-20 11:01:57 -05:00
Andreas Hocevar
569deddd06
Use elm-pep instead of PEP as pointer events polyfill
2019-11-20 07:59:32 +01:00
Andreas Hocevar
9317ad850e
Create hit detection data per layer and without requestAnimationFrame
2019-11-20 00:50:43 +01:00
Andreas Hocevar
32932a7fd3
Merge pull request #10308 from ahocevar/hitdetect-index
...
Fix feature lookup after removal of alpha
2019-11-19 08:46:55 +01:00
Brian Helba
c5ad886d7c
Ensure that OverviewMap respects the initial rotation of attached Maps
2019-11-18 05:33:28 -05:00
Andreas Hocevar
cf6cd09f58
Bring back vector render mode for vector tile layers
2019-11-18 10:40:05 +01:00
Andreas Hocevar
d0b4967ec0
Fix feature lookup after removal of alpha
2019-11-18 08:56:20 +01:00
Andreas Hocevar
3cca945002
Do not use Math.sign() to support very old browsers
2019-11-18 07:54:20 +01:00
Andreas Hocevar
fcd98774a0
Do not fail when hit detecting features without style
2019-11-14 14:32:11 +01:00
Andreas Hocevar
54c86b1a04
Merge pull request #10293 from ahocevar/vectortile-getfeatures
...
Do not hit detect while tile is loading
2019-11-14 11:03:35 +01:00
Andreas Hocevar
818113e3ce
Do not hit detect while tile is loading
2019-11-14 10:30:13 +01:00
Frédéric Junod
47216505de
Merge pull request #10292 from jomue/patch-1
...
Fix typo in jsdoc in ol/source/WMTS
2019-11-14 09:11:21 +01:00
Andreas Hocevar
0a4c9edde7
Merge pull request #10291 from ahocevar/tabindex
...
tabindex without focus condition
2019-11-14 09:07:37 +01:00
Andreas Hocevar
30c4ce51b2
Merge pull request #10286 from ahocevar/passive
...
Use passive option to avoid Chrome warning
2019-11-14 09:06:50 +01:00
Jonas
5dbd1e4cbb
Fix typo in jsdoc
2019-11-14 08:50:35 +01:00
Andreas Hocevar
643a3ad86b
tabindex without focux condition
2019-11-13 23:24:53 +01:00
Andreas Hocevar
fab8a449c3
Use passive option to avoid Chrome warning
2019-11-13 11:08:44 +01:00
Frédéric Junod
9478cb1945
Merge pull request #10283 from fredj/targetNotEditable
...
Use the originalEvent in the targetNotEditable condition
2019-11-12 08:24:20 +01:00
Frederic Junod
fc7cb5cd51
Use the originalEvent in the targetNotEditable condition
2019-11-11 14:41:39 +01:00
Jan Suleiman
2581252f88
Fix documentation of Stroke.lineDash default value
...
Documentation states that default value of lineDash is `undefined`, but it is `null` actually.
2019-11-11 11:39:26 +01:00
Frédéric Junod
6fe5c88614
Merge pull request #10259 from fredj/abortDrawing
...
Remove all the sketch features in abortDrawing
2019-11-08 09:35:33 +01:00
Andreas Hocevar
366d548b91
Merge pull request #10256 from ahocevar/no-measuretextwidth-bypass
...
Do not bypass measureTextWidth
2019-11-07 10:30:52 +01:00
Frédéric Junod
222a344ae9
Merge pull request #10264 from fredj/webgl_var
...
Remove unused variable from vertex shader
2019-11-07 09:22:34 +01:00
Olivier Guyot
3d1cef9aa2
Merge pull request #10257 from brianhelba/patch-1
...
Allow View.adjust* methods to take a null opt_anchor
2019-11-07 09:10:11 +01:00
Frederic Junod
5c023adc08
Remove unused variable from vertex shader
2019-11-07 09:02:50 +01:00
Olivier Guyot
ae66471e78
Webgl renderer / hide shader compile errors
...
Turns out there are sometimes errors that will not prevent the
shader from functioning normally. As such, it is not possible
to simply throw when there are errors/warnings.
Since we are not logging to the console, these errors will have to stay hidden
unless the user requests them explicitly.
2019-11-06 21:40:39 +01:00
Frederic Junod
51c9b56254
Remove all the sketch features in abortDrawing
2019-11-06 14:18:55 +01:00
Brian Helba
d90a4569da
Allow View.adjust* methods to take a null opt_anchor
...
The methods `View.adjustRotation`, `View.adjustZoom` and `View.adjustResolution`
optionally take an `opt_anchor` parameter. When `opt_anchor` is `undefined`, the
methods work properly. When it is `null`, they currently attempt to access the
`null` value as though it is a `Coordinate` object, and throw:
```
TypeError: Cannot read property '0' of null
```
This change allows `opt_anchor` to safely be `null`.
Existing code paths already expect this to be supported. For example, when
`MouseWheelZoom.useAnchor_` is `false`, then
[`MouseWheelZoom.lastAnchor_` remains `null`](77bc6897dd/src/ol/interaction/MouseWheelZoom.js (L166) );
thus, this `null` value
[is passed to `View.adjustZoom` as `opt_anchor`](77bc6897dd/src/ol/interaction/MouseWheelZoom.js (L209) ).
2019-11-05 21:30:17 -05:00
Andreas Hocevar
48ec398037
Do not bypass measureTextWidth
2019-11-05 21:08:48 +01:00
Frederic Junod
6978c69f20
Don't use instanceof HTMLElement in handleMapBrowserEvent
...
Because not all elements in the DOM are instance of `HTMLElement`.
For example, SVGs created with `document.createElementNS` are instances of `Element`.
2019-11-05 11:08:14 +01:00
Olivier Guyot
7da86ae71f
Webgl points renderer / slight improvements following review
...
Also fixes a lint error.
2019-11-04 09:55:54 +01:00
Olivier Guyot
600e1a4647
Webgl points renderer / use a smaller canvas for hit detection render
...
The hit detection render is now done against a canvas with half the
width/height of the main render. This still provides sufficient precision
while requiring a much smaller memory allocation (especially for
retina devices).
2019-11-04 09:31:38 +01:00
Olivier Guyot
43010c8934
Webgl / return 0 if doing renderTarget.read outside of data width/height
...
This would happen when WebGLPointsLayerRenderer.forEachFeatureAtCoordinate
is called on "warped" worlds at -360/+360 degrees, and may produce false
positives.
2019-11-04 09:31:38 +01:00