Matt Walker
34dc538122
Stop events that originate with a removed target
...
As discussed in https://github.com/openlayers/openlayers/issues/6948#issuecomment-565375694
The check to see if the target is within the "page" uses the viewport as
the MapBrowserEventHandler instance adds it's listeners to the viewport.
Using Node.contains appears to have a slight performance benefit
over manually walking the DOM.
2020-01-10 10:48:15 +00:00
gazza0
420e7d87ae
Fixing issue #10497 on behalf of LarryHuang
...
Since Larry is not able to access github, i'm committing on behalf of him, explanation of the issue and he's original fix can be found https://github.com/openlayers/openlayers/issues/10497
2020-01-09 02:52:21 -08:00
Andreas Hocevar
44fab1000e
Merge pull request #10496 from ahocevar/stopevent-dragging
...
Do not stop events when dragging
2020-01-09 09:52:57 +01:00
Andreas Hocevar
a4735e0700
Merge pull request #10478 from ahocevar/abort-without-dispose
...
Do not abort and dispose of tiles
2020-01-09 09:52:07 +01:00
Andreas Hocevar
b26f570cb7
Do not stop events when dragging
2020-01-08 21:39:29 +01:00
Andreas Hocevar
9f4dbd3c35
Reuse existing canvases from vector render tiles
2020-01-08 10:53:43 +01:00
Andreas Hocevar
5a8df1d4e2
We no longer need to increase the cache size
2020-01-08 10:53:42 +01:00
Andreas Hocevar
46d98201c3
Store source tiles on render tile instead of source
2020-01-08 10:53:42 +01:00
Dan Lim
21e9601d7b
typo in view.fit
2020-01-07 16:12:06 -08:00
Tim Schaub
8125463e59
Merge pull request #10473 from mike-000/patch-1
...
Fix for undefined source in Vector layer
2020-01-06 18:25:11 -07:00
mike-000
cb665b7ea7
Simplify to return false if layer has no source
2020-01-06 17:31:38 +00:00
Frederic Junod
5a1921d7bd
Use a function to get the value of the gradient
2020-01-06 10:52:16 +01:00
philip
902ed53999
Add detection of browsers which cannot render correctly with diagonal
...
clipping regions. In this case, modify the shape of the clip region
so that it has (a number) of horizontal and vertical edges.
2020-01-06 02:23:58 +00:00
Björn Harrtell
05a5f162d4
Move logic from dom to xml module
2020-01-05 13:12:27 +01:00
Björn Harrtell
5b661ed84c
Fix jsdoc
2020-01-05 13:00:44 +01:00
Björn Harrtell
bdc20e0293
Rework to register Document and add XMLSerializer
2020-01-05 13:00:44 +01:00
Björn Harrtell
fc46166821
Fix argument name mixup
2020-01-05 13:00:44 +01:00
Björn Harrtell
90d61033e0
Rework to make DOMImplementation lazy and injectable
2020-01-05 13:00:44 +01:00
Andreas Hocevar
2875685b3c
Use TileCache instead of custom structure
2020-01-05 12:25:44 +01:00
Andreas Hocevar
ae1ee192f3
Avoid misleading bind argument
2020-01-05 12:09:46 +01:00
Andreas Hocevar
bec747e513
Remove unused argument and member
2020-01-05 12:08:43 +01:00
Andreas Hocevar
6affeb0beb
Do not dispose VectorRenderTiles
2020-01-05 11:52:45 +01:00
Andreas Hocevar
da6eed850c
Do not lock label cache entries
2020-01-05 11:24:46 +01:00
Andreas Hocevar
ae336f0a1b
Remove disposeInternal of ImageTile and reproj/Tile
2020-01-05 00:13:05 +01:00
Andreas Hocevar
b91e1a893d
Do not abort and dispose of tiles
2020-01-05 00:05:24 +01:00
mike-000
5b1df4438d
Fix for undefined source in Image layer
...
Prevent error if layer does not have a source. Also clear any existing image if source is set to null or undefined by setSource.
2020-01-01 22:04:10 +00:00
mike-000
f48704cac4
Fix for undefined source in Vector layer
...
A source left or set undefined is equivalent to an empty source so treat it as such to prevent errors in prepareFrame
2020-01-01 21:04:12 +00:00
philip
e35795c5a3
Rework code to pass eslint
2019-12-30 16:46:20 +00:00
philip
89ed757273
Fix indentation
2019-12-30 16:22:44 +00:00
philip
f457093baf
Handle the zoomed out case where the source extent is infinite. This
...
does raise the question of whether an Infinite extent intersects a
finite extent. It appears not to, but maybe it should.
2019-12-28 22:31:30 +00:00
philip
4040d03ae6
Fix problem with zero size canvas drawing
2019-12-28 18:09:07 +00:00
philip
a6b1df3574
Fix missing corners of the world
2019-12-28 17:47:53 +00:00
philip
b71b87d7bb
Fix issue with reprojection and double drawing pixels.
2019-12-28 03:40:10 +00:00
Olivier Guyot
e4ea272799
Merge pull request #10413 from MoonE/zoomsliderextent
...
Limit the ZoomSlider's range to the view's constrained resolution.
2019-12-23 14:59:19 +01:00
Olivier Guyot
4440994ec8
Avoid recomputing the viewport size by reading the DOM everytime
...
Also clarify View#calculateExtent doc & remove the [data-view] attribute
on the viewport element (not needed anymore).
2019-12-23 10:47:54 +01:00
Maximilian Krög
33389969ce
Limit the ZoomSlider's range to the view's constrained resolution.
2019-12-20 23:13:41 +01:00
Maximilian Krög
d7eaacf923
Small performance improvement by saving the calculated logarithm.
2019-12-20 23:13:19 +01:00
Olivier Guyot
6c46eb1dd0
Webgl / add support for a rotation parameter in LiteralStyle
...
The ShaderBuilder can now take a rotation expression.
2019-12-20 17:39:40 +01:00
Olivier Guyot
6f000e3155
Add missing documentation in ol/style/expressions
2019-12-20 17:13:15 +01:00
mike-000
560931e976
Set reprojection canvas context options
...
Add example of disabling image smoothing
Add test for reprojection context options
2019-12-20 11:41:42 +00:00
mike-000
ab8e80fc98
Control button span element pointer events
...
Prevent pointer events on span elements within control buttons
2019-12-14 13:47:05 +00:00
mike-000
9d8609dd08
Modify and snap to circle in user coordinates
...
Correct modify interaction at center and at drawn circle circumference
Correct snap interaction at drawn circle circumference
Test circle geometry in a user projection
2019-12-13 16:40:39 +00:00
Olivier Guyot
cae32edb02
WebGL Postprocess / fix viewport computation with pixelratio != 1
2019-12-13 10:34:31 +01:00
Olivier Guyot
ca0ce4986d
Merge pull request #10119 from mike-000/patch-8
...
Add crossOrigin option to ol/format/KML for icons
2019-12-13 09:26:56 +01:00
mike-000
f13ebbee3f
Add crossOrigin option for icons
...
Add * @this {KML} to functions invoked using .call
2019-12-12 17:21:14 +00:00
Andreas Hocevar
c1857efd81
Use render feature compatible extent check
2019-12-11 22:21:15 +01:00
Andreas Hocevar
8e0a8114d7
Merge pull request #10340 from mike-000/patch-7
...
Draw circles and custom geometry in user coordinates
2019-12-11 10:07:12 +01:00
mike-000
2e544cb677
Circles and custom geometry in user coordinates
...
Pass the view projection to the geometry function so circles and other custom geometry can be given the expected shape/size in the view while being defined in user coordinates.
Add tests to draw circles in a user projection and along both axes
Draw regular polygon in a user projection
Draw box in a user projection
2019-12-10 19:47:37 +00:00
Andreas Hocevar
bbc1de280d
getFeaturesInExtent() for VectorTile source
2019-12-10 14:07:37 +01:00
Andreas Hocevar
f460198850
Simpler tileLoadFunction for vector tiles
2019-12-10 13:50:35 +01:00