Commit Graph

750 Commits

Author SHA1 Message Date
Tim Schaub f403a06967 Move ENABLE_RASTER_REPROJECTION to a temporary place 2017-12-12 17:30:59 -07:00
Tim Schaub 87295a74dd Use named exports from ol/index.js 2017-12-12 12:34:23 -07:00
Tim Schaub 7f47883c48 Transformed 2017-12-12 06:53:18 -07:00
Tim Schaub 1cdb6a66f0 Imports cased like the filename 2017-12-12 06:53:17 -07:00
Andreas Hocevar e318b63dff Handle skipping and unskipping features with renderMode: 'image' 2017-12-10 23:54:46 +01:00
Andreas Hocevar 4d971029f9 Only compose image vector frame when the replay group has changed 2017-12-08 10:53:45 +01:00
Andreas Hocevar 8135bd43a6 Revert "Merge pull request #7530 from raiyni/crossing-dateline"
This reverts commit fca0b0771d, reversing
changes made to c3db3e2f6f.
2017-12-07 00:08:59 +01:00
Ron Young 19bceff077 Check forward/back 1 world if wrapping 2017-11-30 14:23:42 -06:00
Andreas Hocevar ac195c46b1 Reuse declutter tree for hit detection
Replaying for hit detection no longer declutters, but uses the declutter tree
from the previous rendered frame.
2017-11-28 01:36:47 +01:00
Andreas Hocevar 3c806f924e Address review comments 2017-11-27 17:54:16 +01:00
Andreas Hocevar dde81d8585 Add renderMode option to ol.layer.Vector
This also deprecates ol.source.ImageVector.
2017-11-27 09:48:52 +01:00
Nicholas Latham 397c03a6b6 Use getGeometry
Use getGeometry for compatibility between RenderFeature and Feature
2017-11-23 15:13:47 +13:00
Andreas Hocevar 006f8d49ec Reset rotation after rendering 2017-11-16 17:22:05 +01:00
Tim Schaub dbeef9f73e Use wrapped tile coord for getting feature at coordinate 2017-11-06 10:53:44 -07:00
Andreas Hocevar 7f865b8520 Check if fonts are available and redraw when label cache was cleared 2017-11-03 13:04:06 +01:00
Andreas Hocevar 4a73754b93 Entertain the compiler 2017-10-31 11:33:48 +01:00
Andreas Hocevar 53a2cf55f1 Fix hit detection for decluttered layers 2017-10-31 11:33:48 +01:00
Andreas Hocevar 08af207724 Add decluttering for images and text 2017-10-31 11:33:48 +01:00
Andreas Hocevar dbeb3d2795 Only render parts of source tile that are needed for the view tile 2017-10-31 11:33:48 +01:00
Tim Schaub 2dd8fdb5b7 Reworked attribution handling 2017-10-08 20:29:02 -06:00
Tim Schaub ad4a258c87 Only clear the canvas when needed 2017-10-06 09:12:52 -06:00
Tim Schaub 68a1a497b0 Don't look for alt tiles if alpha is 1 2017-09-27 11:55:45 -06:00
Tim Schaub 8033e25663 Vector tile rendering requires canvas to be cleared 2017-09-27 11:55:45 -06:00
Tim Schaub 79e9dc8128 Render the view resolution tiles last 2017-09-27 11:55:45 -06:00
Tim Schaub 0f53d04361 Only clear canvas when necessary, add tests 2017-09-27 11:55:45 -06:00
Tim Schaub ecc2a9059e Check for alt tiles when in transition, always prefer higher z 2017-09-27 11:55:45 -06:00
Tim Schaub f7bfee8497 Ensure tile transitions complete 2017-09-27 11:55:45 -06:00
Tim Schaub 16e6d13700 Make tile transitions configurable 2017-09-27 11:55:45 -06:00
Tim Schaub 76726a3a6f Render tiles with an opacity transition 2017-09-27 11:55:45 -06:00
Andreas Hocevar c15aa414bd Fix hit detection for image layers 2017-09-06 07:33:07 +02:00
Tim Schaub f77c9180a0 Merge pull request #7209 from tschaub/work-with-z
Remove grid.getTileRangeForExtentAndResolution()
2017-09-02 15:14:17 -06:00
Tim Schaub 5e6a4e8cb7 Avoid unnecessary calls to tileGrid.getZForResolution() 2017-09-02 14:34:08 -06:00
Andreas Hocevar ba3570a268 Remove unnecessary array creation 2017-09-01 13:56:14 +02:00
Andreas Hocevar 6469d3e864 Handle pixelRatio on replay creation instead of replay 2017-08-31 21:41:07 +02:00
Andreas Hocevar 35bd92b713 Prerender labels and cache them as images 2017-08-31 21:41:07 +02:00
Andreas Hocevar 4b4f383043 Transform tile-pixels coordinates only once
This allows us to simplify the vector tile renderer significantly, because
there are no more coordinates that need special tile-pixel handling.
2017-08-28 19:32:16 +02:00
Andreas Hocevar 44558b7c89 Merge pull request #7125 from ahocevar/remove-error-vector-tiles
Do not try to render error tiles from VectorTile source
2017-08-15 16:34:16 -04:00
Tim Schaub 8a08ab6463 Correct types 2017-08-15 15:37:37 -04:00
Tim Schaub 9271df7e1d Pluggable renderers 2017-08-15 15:37:37 -04:00
Andreas Hocevar ee81a5e817 Do not try to render error tiles from source 2017-08-14 10:18:03 -04:00
Andreas Hocevar 992cf2b2d6 Fix hit detection for overzoomed vector tiles 2017-08-13 22:53:58 -04:00
Tim Schaub ff9ef481db Merge pull request #7064 from ahocevar/no-foreach
Do not use Array.prototype.forEach when dealing with potentially large arrays
2017-08-09 13:59:49 -06:00
Andreas Hocevar d4d371a4c2 Remove the tilePixelRatio option from ol.source.VectorTile 2017-08-03 00:20:29 +02:00
Andreas Hocevar b3be7e7ba9 Get tilePixelRatio from MVT tiles 2017-08-02 20:11:14 +02:00
Andreas Hocevar 1b46f38696 Do not use Array.prototype.forEach for potentially large arrays 2017-07-29 23:16:23 +02:00
Andreas Hocevar c6b942f185 Allow styles to configure a custom renderer
Two new examples show how custom renderers can be used to render text along
paths, and to declutter labels using 3rd party libraries.
2017-07-29 17:57:38 +02:00
Andreas Hocevar dd878e2a4c Remove lint 2017-07-25 10:42:18 +02:00
Guillaume Beraudo 645e359cde Render transparent vector layers to an intermediate canvas
Until now, the features of transparent vector layers were rendered using
the layer opacity. This caused colors to mix together and the opacities
to stack up to an higher value than the expected layer opacity.

With this commit, the features are rendered at 100% opacity to an
intermediate canvas which ensures colors do not mix up even in the case
of features using an array of styles. The intermediate canvas is then
composed to the map canvas using the layer opacity.

Transparent layers are automatically detected, non-transparent layers
are not affected by the change.
2017-07-12 09:23:04 +02:00
Andreas Hocevar 59d8d749e3 Merge pull request #6998 from openlayers/greenkeeper/eslint-4.2.0
Update eslint to the latest version 🚀
2017-07-09 16:52:47 +02:00
Andreas Hocevar cff9ef5e63 Remove lint 2017-07-09 16:11:36 +02:00