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
Alexandre Dubé
657b9dc018
Fix 'Shift' DragZoom in default interactions, use zoomDuration
...
This fix allows the DragZoom interaction created in the default
interactions to use the zoom duration defined in the options, if
set.
2015-10-14 13:46:30 -04:00
Alexandre Dubé
bd4b7a890d
Fix DragZoom interaction duration, allow 0 value
2015-10-14 13:39:10 -04:00
jonataswalker
d29e5eaef1
Add method for retrieving ol.Overlay by id
2015-10-14 12:15:53 -03:00
Frederic Junod
0a76145a93
Relay on the pointerType property in ol.events.condition.mouseOnly
2015-10-13 14:37:52 +02:00
Marc Jansen
b75ef3ae18
Merge pull request #4259 from marcjansen/math-radians-degrees
...
Remove use of toDegrees/toRadians util functions
2015-10-12 23:27:20 +02:00
Marc Jansen
47a7b03e0e
Remove use of toDegrees/toRadians util functions
...
Instead of goog.math.toRadians and goog.math.toDegrees, we now use
our own implementations of these basic conversion functions.
2015-10-12 21:16:03 +02:00
Marc Jansen
9386415633
Remove usage of goog.dom.TagName enum
2015-10-12 20:45:49 +02:00
Andreas Hocevar
e111e30f33
Merge pull request #4255 from ahocevar/zoomslider-width
...
Fix zoom slider width for retina displays
2015-10-12 20:19:29 +02:00
Andreas Hocevar
61ce463cf9
Fix zoom slider width for retina displays
...
This also simplifies the css by using a button for the slider, like for other
controls.
2015-10-12 19:24:00 +02:00
Julien Enselme
475504cd85
Add parser for dimension property from WMTS Capabilities.xml
...
- Correct parsing of dimension in ol.source.WMTS.optionsFromCapabilities
2015-10-09 18:43:26 +02:00
Éric Lemoine
936118955f
Merge pull request #4161 from jonataswalker/translate-events
...
Add `translatestart`, `translateend` and `translating` events to `ol.interaction.Translate`
2015-10-09 18:16:17 +02:00
Éric Lemoine
d5ec75a643
Merge pull request #4186 from elemoine/webgl-context
...
Do not export ol.webgl.Context
2015-10-09 17:59:07 +02:00
Marc Jansen
03ed8085b9
Fix a drawText regression introduced with 31a68e21
2015-10-09 11:49:45 +02:00
Andreas Hocevar
c067f40ecf
Merge pull request #3727 from bogdanvaduva/overview_map
...
Added getOverviewMap getter method in overviewmapcontrol.js
2015-10-08 19:54:16 +02:00
Andreas Hocevar
c475902e19
Merge pull request #4237 from awaterme/master
...
#3328 : GML3 - Writing features with multiple geometries
2015-10-08 18:11:53 +02:00
Bogdan Vaduva
1f7bdd10f8
Changed @api experimental to @api
2015-10-08 19:11:23 +03:00