Olivier Guyot
0f73f16cfa
View / apply constraints when an interaction starts
...
Previously, an interaction could begin while target values
(center/resolution) were out of the allowed range, causing a
glitch where the view zoom/position would jump suddenly.
2019-04-05 11:55:35 +02:00
Kai Volland
c9939d2bff
Replaces reproj image.tests.js and tile.tests.js
...
Transforms the old rendering tests for
ReprojImage and ReprojTile to the new
rendering test approach.
2019-04-03 11:01:32 +02:00
Kai Volland
94edf32540
Removes artifacts of old rendering test approach
...
Data and comparison images of the old rendering test approach
are removed as every test is transformed to the new approach.
2019-04-01 15:56:03 +02:00
Kai Volland
91d2f98774
Replaces listener test in tile.tests.js
...
Transforms the old render listener test to
the new rendering test approach.
2019-04-01 15:53:19 +02:00
Andreas Hocevar
9eb9fffc94
Merge pull request #9368 from ahocevar/multiworld
...
Show only one world
2019-03-26 14:17:21 +01:00
Marc Jansen
061965ecb7
Merge pull request #9362 from KaiVolland/text-rendering
...
Use local font "Ubuntu Regular" for rendering tests
2019-03-25 22:08:05 +01:00
Andreas Hocevar
3a7f9d93f4
Merge pull request #9357 from ahocevar/vectortile-view-resolution-2
...
Render vector tiles at the view resolution
2019-03-25 17:44:31 +01:00
ahocevar
3940b5ec88
Show only one world
2019-03-25 14:49:13 +01:00
Andreas Hocevar
a95481a8fe
Merge pull request #9374 from jahow/fix-initialzoom
...
Fix view initialization with min/max resolution constraint
2019-03-25 14:33:25 +01:00
Olivier Guyot
98994cad61
View / tests now pass without smoothResolutionConstraint: false
2019-03-25 13:21:10 +01:00
Olivier Guyot
b63c4188e4
View / add tests for parameter initialization with constraints
2019-03-25 13:18:49 +01:00
Andreas Hocevar
f32e097051
Merge pull request #9364 from KaiVolland/clip-rendering
...
Replace clip.test.js with new tests
2019-03-25 12:18:37 +01:00
Kai Volland
62ebe29ead
Enables attributions for the RasterSource
...
Attributions included in the passed sources are concatenated.
2019-03-25 11:47:45 +01:00
Kai Volland
bff3e88343
Replaces clip.test.js with new tests
...
Transforms the old rendering test for
layer clipping to the new rendering test approach.
2019-03-25 11:13:04 +01:00
Kai Volland
681a8f1d9c
Replaces remaining vectorimage.tests.js
...
Transforms the old rendering tests for the VectorImageLayer
decluttering to the new rendering test approach.
2019-03-22 10:14:41 +01:00
ahocevar
a25ca03040
Do not use tile.load() for getting source tiles
2019-03-20 22:45:17 +01:00
Tim Schaub
c4279ff665
Merge pull request #9333 from KaiVolland/unify-rendering-tests
...
Unify rendering tests
2019-03-20 08:34:54 -07:00
Kai Volland
7510a19c73
Replaces vectorimage.tests.js (partially)
...
Transforms the old rendering tests for the VectorImageLayer
to the new rendering test approach.
The declutter tests are kept in the old format for know.
2019-03-19 11:30:45 +01:00
Kai Volland
ac3a2d960a
Replaces tile.tests.js (partially) with new tests
...
Transforms the old rendering tests for the TileLayer
to the new rendering test approach.
The render-listener test is kept in the old format for know.
2019-03-18 16:39:37 +01:00
Kai Volland
fc878fd539
Replaces vectortile.tests.js with new tests
...
Transforms the old rendering tests for the VectorTileLayer
to the new rendering test approach.
2019-03-18 16:15:58 +01:00
Kai Volland
f555048319
Replaces vector.tests.js with new tests
...
Transforms the old rendering tests for the LayerVector
to the new rendering test approach.
2019-03-18 15:39:48 +01:00
Frederic Junod
72788187c8
Remove tilePixelRatio options from ol.source.VectorTile
...
Was removed in #7070
2019-03-18 14:35:58 +01:00
Kai Volland
6759641715
Replaces image.tests.js with new tests
...
Transforms the old rendering tests for the ImageLayer
to the new rendering test approach.
2019-03-18 13:56:45 +01:00
Kai Volland
58cebcc97f
Replaces tilewms.tests.js with new tests
...
Transforms the old rendering tests for the TileWMSSource
to the new rendering test approach.
2019-03-15 14:30:23 +01:00
Kai Volland
3f8da79893
Replaces raster.tests.js with new tests
...
Transforms the old rendering tests for the RasterSource
to the new rendering test approach.
2019-03-15 14:04:23 +01:00
Kai Volland
d89b909187
Replaces text.tests.js with new tests
...
Transforms the old rendering tests for the TextStyle
to the new rendering test approach.
2019-03-15 12:11:13 +01:00
Kai Volland
f79b358c92
Replaces regularshape.tests.js with new tests
...
Transforms the old rendering tests for the regularshape
to the new rendering test approach.
2019-03-15 10:42:47 +01:00
Kai Volland
e4ef5c789c
Removes map.tests.js renders
2019-03-15 10:42:47 +01:00
Kai Volland
d871196e16
Removes linestring.test.js
...
Removes linestring.test.js and related pngs as linestring
style is already tested with the new approach.
2019-03-15 10:42:47 +01:00
Kai Volland
595b74d04e
Replaces map.tests.js with new tests
...
Transforms the old rendering test for the Map
to the new rendering test approach.
2019-03-15 10:42:47 +01:00
Kai Volland
de0f5d44a3
Replaces circle.tests.js with new tests
...
Transforms the old rendering test for the CircleStyle
to the new rendering test approach.
2019-03-15 10:42:47 +01:00
Andreas Hocevar
d75caaa3df
Merge pull request #9318 from ahocevar/smart-cache-size
...
Smart cache size
2019-03-13 08:17:24 +01:00
ahocevar
ac0d67b273
Use closest lower source resolution for render tiles
2019-03-12 16:51:20 +01:00
ahocevar
cb2b57232c
Add tests
2019-03-12 08:11:17 +01:00
Andreas Hocevar
dfabcc0c66
Merge pull request #9137 from jahow/add-view-constrain-extent-2
...
Refactor the way view constraints are handled & add a view extent constraint
2019-03-11 10:38:31 +01:00
Andreas Hocevar
dee36639bd
Merge pull request #9313 from ahocevar/interpolate-tests
...
Re-enable and fix disabled tests
2019-03-11 10:18:00 +01:00
ahocevar
404b04ae59
Re-enable and fix disabled tests
2019-03-11 09:30:04 +01:00
ahocevar
b2722542fe
Simplify vector tile projection handling
2019-03-10 09:37:58 +01:00
ahocevar
4a7b3cde56
Take line-height into account when measuring text height
2019-03-09 08:25:09 +01:00
ahocevar
56f37ab347
Disable transition when an interim tile is available
2019-03-03 23:07:46 +01:00
Frederic Junod
c01dee0884
Update Bing's imagerySet used in examples
2019-02-28 10:43:59 +01:00
Frederic Junod
1338a868e9
Remove setDeclutter function
...
Changing the declutter value after the layer creating doesn't work, remove the function to avoid confusion.
2019-02-27 11:41:08 +01:00
Olivier Guyot
405e206717
View / better names for getValid* and applyParameters_ methods
2019-02-22 15:04:54 +01:00
Olivier Guyot
433bccd207
Linting and fixes for unit tests
2019-02-22 15:01:30 +01:00
Olivier Guyot
ef6d17d817
View / add a 'smoothResolutionConstraint' options
...
When enabled (true by default), the resolution min/max values will be applied with
a smoothing effect for a better user experience.
2019-02-22 15:01:30 +01:00
Olivier Guyot
e023c144bb
View / add adjust* methods to manipulate the view more easily
...
API changes:
* (breaking) the `rotate` method is gone
* the `adjustRotation`, `adjustResolution` and `adjustZoom` methods are now
available and allow using an anchor.
This means interactions do not have to do the anchor computation themselves
and this also fix anchor computation when constraints must be applied.
2019-02-22 15:01:30 +01:00
Olivier Guyot
49662b019c
View / add a constrainResolution option
...
This introduces a breaking change.
This options replaces the various `constrainResolution` options on interactions
and the `fit` method.
Since constraints are now the responsibility of the View, the fact that intermediary
zoom levels are allowed or not is now set in the view options.
By default, the view resolution is unconstrained.
2019-02-22 15:01:30 +01:00
jahow
48ad1ffcbf
View / implement a smooth rebound effect when a max extent is given
...
This is done by applying the center constraint differently when we're in the
middle of an interaction/animation or not.
When the view is moving, the center constraint will restrain the given value
in an "elastic" way, using a logarithmic function.
This can be disabled using the `smoothCenterConstrain` view parameter.
2019-02-22 15:01:30 +01:00
jahow
cd186ada7f
Add new tests for View & Interaction w/ fixes
2019-02-22 15:01:30 +01:00
Olivier Guyot
a6f65df8c4
View / add a resolveConstraints method to end interactions
...
This will help making sure that the view will come back to a "rested" state
once the interactions are over.
Interactions no longer need to handle the animation back to a rested state,
they simply call `endInteraction` with the desired duration and direction.
2019-02-22 15:01:30 +01:00