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
jahow
f7b0f6750b
Resolve memory leak when deleting a webgl layer
...
Various references were kept, preventing the layer and underlying
renderer and webgl context to be garbage collected.
Also, the Helper was simplified because it turns out deleting manually
all Webgl objects is useless: these objects will be released when
the context is garbage collected anyway.
Note: this touches the Layer and BaseLayer classes, as the following were
preventing the layer from being garbage collected:
* layer reference in the `state_` object in BaseLayer
* dangling listener for source change in Layer
2019-11-04 09:31:38 +01:00
Olivier Guyot
e5e03d46a0
Webgl points renderer / more optimizations
...
Simplify calls in the attributes callback, also less stress
on garbage collection.
2019-11-04 09:31:38 +01:00
Olivier Guyot
e78c14c061
Webgl points renderer / add a cache for features in the source
...
This allows quicker access to features as well as their geometries
and properties, reducing the time taken by a rebuildBuffers call.
2019-11-04 09:31:38 +01:00
Andreas Hocevar
ac50cc3460
New eslint config with no-multi-assign
2019-11-02 15:20:21 +01:00
Andreas Hocevar
442213f85b
Store correct font value
2019-11-01 22:06:00 +01:00
Andreas Hocevar
2a96b6a8e3
Merge pull request #10239 from ahocevar/simpler-container-reuse
...
Simpler container reuse
2019-11-01 19:14:05 +01:00
Frédéric Junod
89f92a53b4
Merge pull request #10237 from fredj/zIndex_falsy_value
...
Fix layer zIndex test with falsy values
2019-11-01 08:25:56 +01:00
Andreas Hocevar
9c26d9d7dd
Merge pull request #10221 from Kai-W/source-undefined-bug
...
Fix for undefined Source
2019-10-31 22:21:45 +01:00
Andreas Hocevar
3de05c249b
Fix container transform comparison
2019-10-31 20:29:20 +01:00
Andreas Hocevar
bb2bdb17aa
Render vector tile layers to a single canvas
2019-10-31 20:29:19 +01:00
Frederic Junod
b8c70bcbe7
Fix layer zIndex test with falsy values
2019-10-31 15:58:36 +01:00
Andreas Hocevar
5dec336f94
Merge pull request #10228 from ahocevar/vectortile-hitdetect-rendertile
...
Use render tiles instead of source tiles for hit detection
2019-10-31 10:44:52 +01:00
Andreas Hocevar
e3f83f3601
Merge pull request #10226 from ahocevar/reproj-tile-abort
...
ABORT reproj tiles properly
2019-10-30 16:55:35 +01:00
Andreas Hocevar
4b13c6dae0
Speed up rendering by not using alpha
2019-10-30 14:36:23 +01:00
Andreas Hocevar
7097a4c6ba
Use render tiles instead of source tiles for hit detection
2019-10-30 11:44:12 +01:00
Andreas Hocevar
79ea5bf9cd
Set ABORT state in base class
2019-10-30 10:29:58 +01:00