Petr Sloup
168b675191
Add reprojectionErrorThreshold option to the tiled image sources
2015-10-16 09:28:41 +02:00
Petr Sloup
ebc1bc0096
Better handling of tilegrids without extent during reprojection
...
For WMTS source, the tilegrid has no extent, but the projection can
2015-10-16 09:28:41 +02:00
Petr Sloup
be6bf00d74
Add defines for certain reprojection constants
2015-10-16 09:28:41 +02:00
Petr Sloup
f481070f82
Handle tilegrids without extent during tile reprojection
2015-10-16 09:28:41 +02:00
Petr Sloup
9a460b5f6b
Handle cross-browser canvas antialiasing issues during reprojection
...
By doing strictly 1 drawImage per triangle; triangle overlapping and
using different blending mode.
2015-10-16 09:28:41 +02:00
Petr Sloup
8b38928aad
Make rendering of reprojection edges configurable
2015-10-16 09:28:41 +02:00
Petr Sloup
30cd0aa584
Improve reprojection performance
...
Utilize the numerical shifting during reprojection to easily reduce
complexity of the linear system that needs to be solved.
2015-10-16 09:28:41 +02:00
Petr Sloup
8ab197eba6
Optimize the reprojection by stitching the sources prior to rendering
...
This solves canvas antialiasing issues and also simplifies the code
handling wrapX in the source projection.
2015-10-16 09:28:41 +02:00
Petr Sloup
6482ccf2f7
Make ol.reproj.Triangulation a class
2015-10-16 09:28:41 +02:00
Petr Sloup
0f408e341f
Rename ol.source.Image#getImage implementations to #getImageInternal
...
This allows for the reprojection to be initialized in the #getImage,
while #getImageInternal is used to obtain the actual data.
2015-10-16 09:28:41 +02:00
Petr Sloup
ed1e49045a
Allow different source and view projection in image layer renderers
...
To enable image layer reprojection.
2015-10-16 09:28:41 +02:00
Petr Sloup
be0a0de759
Integrate image reprojection with ol.source.Image
2015-10-16 09:28:41 +02:00
Petr Sloup
15575288e0
Add ol.ENABLE_RASTER_REPROJECTION define
2015-10-16 09:28:41 +02:00
Petr Sloup
f2f77091ad
Handle tile sources without projection
...
Such sources should never be reprojected (and no additional tilecache or
tilegrid should be created).
2015-10-16 09:28:41 +02:00
Petr Sloup
c205323ff2
Reproject correctly when transform returns +-Infinity values
2015-10-16 09:28:41 +02:00
Petr Sloup
b0694c1e3b
Add projection parameter to ol.source.Tile#expireCache and #useTile
...
This is required to be able to determine which cache the xyz coordinates
refer to (in case we have more caches).
2015-10-16 09:28:41 +02:00
Petr Sloup
e0cfa1951a
Add projection parameter to ol.source.Tile#forEachLoadedTile
2015-10-16 09:28:41 +02:00
Petr Sloup
63084d30e9
Improve numerical stability of reprojection
...
By shifting the source points before calculating the affine transform to
obtain values from similar ranges (inputs and outputs of the transform).
2015-10-16 09:28:41 +02:00
Petr Sloup
9b82f19cc2
Simplify triangle-shifting logic for reprojection
2015-10-16 09:28:41 +02:00
Petr Sloup
3f567b0bf0
Use per-projection tilecaches and tilegrids (persistent instances)
2015-10-16 09:28:40 +02:00
Petr Sloup
bc74273208
Reproject every image only once per triangle
...
If the triangle has to be shifted, determine if the image has to be rendered shifted or not.
2015-10-16 09:28:40 +02:00
Petr Sloup
6e08fc9e13
Rename triangles to triangulation to be more precise
2015-10-16 09:28:40 +02:00
Petr Sloup
bf65b8a4fe
Stronger typing of triangles and triangulation
2015-10-16 09:28:40 +02:00
Petr Sloup
e14bede9e9
Make projection parameter of ol.source.Tile#getTile no longer optional
2015-10-16 09:28:40 +02:00
Petr Sloup
ac76989447
Detect and handle triangles (tiles) crossing the dateline (projection edge)
2015-10-16 09:28:40 +02:00
Petr Sloup
b221e1ac1f
Basic integration of raster reprojection for tiled sources
...
To allow for easier testing and debugging
2015-10-16 09:28:40 +02:00
Petr Sloup
ebc3f24671
Clamp the triangulation vertices if partially outside source extent
2015-10-16 09:28:40 +02:00
Petr Sloup
fcffce46b4
More robust way of handling non-global projections
...
If the target projection has specified extent, it is respected.
Also adds various checks to optimize performance and/or
prevent potential errors.
2015-10-16 09:28:40 +02:00
Petr Sloup
2cc2027353
More precise and robust way of calculating source resolution
2015-10-16 09:28:40 +02:00
Petr Sloup
c425b9c0e6
Verify triangulation against source/target extents
...
If we do this here, we can avoid some computations on triangles that will
be unused in the future anyway + reduce problems with non-global projections
without specified extents.
2015-10-16 09:28:40 +02:00
Petr Sloup
1222287f22
Add ol.reproj
2015-10-16 09:28:40 +02:00
Petr Sloup
44a64ba451
Add ol.math.solveLinearSystem
2015-10-16 09:28:40 +02:00
Andreas Hocevar
2d50511527
Use overlay container instead of viewport for ol.render.Box
2015-10-15 20:22:14 +02:00
Andreas Hocevar
7a070dd859
Use DOM instead of map canvas for ol.render.Box
2015-10-15 17:34:16 +02:00
Frédéric Junod
a3550a5b00
Merge pull request #4276 from fredj/platformModifierKeyOnly_doc
...
Better ol.events.condition.platformModifierKeyOnly documentation
2015-10-15 13:34:45 +02:00
Frederic Junod
b477367099
Better ol.events.condition.platformModifierKeyOnly documentation
...
See https://github.com/google/closure-library/blob/master/closure/goog/events/browserevent.js#L175-L180
2015-10-15 12:55:23 +02:00
Frédéric Junod
671f774593
Merge pull request #4102 from fredj/ol.Observable_dispatchEvent
...
Export ol.Observable#dispatchEvent function
2015-10-15 12:53:41 +02:00
Frederic Junod
552e345fbf
Fix ol.events.condition.mouseOnly parameter type
...
From `ol.MapBrowserEvent` to `ol.MapBrowserPointerEvent` and remove the
instanceof assert.
2015-10-15 11:43:30 +02:00
Frédéric Junod
4d43fe3346
Merge pull request #4261 from fredj/mouseOnly
...
ol.events.condition.mouseOnly may be wrong
2015-10-15 10:42:46 +02:00
Andreas Hocevar
6ec5e9a07d
Merge pull request #4269 from adube/fix-zoomcontrol-duration
...
Fix Zoom control duration option - allow `0` as value
2015-10-14 22:43:05 +02:00
Andreas Hocevar
ee82fde184
Merge pull request #4268 from jonataswalker/get-overlay-by-id
...
Add method for retrieving ol.Overlay by id
2015-10-14 22:12:59 +02:00
jonataswalker
5dbaeb9ee5
Add method for retrieving ol.Overlay by id
2015-10-14 16:55:39 -03:00
Marc Jansen
cd99d44704
Use Math.cosh of ES6/2015 if available
2015-10-14 21:54:45 +02:00
Marc Jansen
449131a516
Use MDN polyfill for Math.cosh
...
This commit replaces the current implementation of ol.math.cosh with the
reference implementation of the Mozilla developer network. This method
only has one call to the Math.exp-function compared to two in the original
implementation.
See also: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Math/cosh
2015-10-14 21:54:45 +02:00
Marc Jansen
2f5ccbd54d
Remove unused ol.math-methods
2015-10-14 21:40:42 +02:00
Alexandre Dubé
718f32b177
Fix Zoom control duration option - allow 0 as value
2015-10-14 15:19:16 -04:00
Andreas Hocevar
1f8ee3a5ae
Merge pull request #4270 from adube/fix-keyboardinteraction-options
...
Fix Keyboard zoom interation options
2015-10-14 21:08:57 +02:00
Andreas Hocevar
16b3893166
Merge pull request #4272 from adube/fix-interactiondefaults-zoomduration
...
Allow the DragZoom interaction created in defaults to use zoomDuration option.
2015-10-14 21:08:38 +02:00
jonataswalker
fce065e185
Add method for retrieving ol.Overlay by id
2015-10-14 16:01:48 -03:00
Alexandre Dubé
b54bc6cd42
Fix KeyboardZoom interation duration option, allow 0 value.
2015-10-14 14:43:04 -04:00