Commit Graph

1310 Commits

Author SHA1 Message Date
Tim Schaub 87295a74dd Use named exports from ol/index.js 2017-12-12 12:34:23 -07:00
Tim Schaub 50737f7f73 Remove unused code, get tests passing on Travis 2017-12-12 06:58:02 -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
Andreas Hocevar c48685565d Merge pull request #7497 from nicholas-l/patch-1
Use getGeometry
2017-11-23 09:38:54 +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 3e574529ad Remove layer renderers when viewport is removed 2017-11-22 23:56:28 +01: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 55b5d0c719 Merge pull request #7327 from tschaub/tile-management
Prune the tile cache after updating a source's URL
2017-10-09 17:01:12 -06:00
Tim Schaub 5558994827 Merge pull request #7333 from waxenegger/pluggable_calling
Pluggable Map/Layers - function calls to handles and create
2017-10-09 16:59:59 -06:00
Harald Waxenegger 01b17de36d access functions via bracked/string to avoid compilation mangling 2017-10-09 15:23:56 +10:00
Tim Schaub 2dd8fdb5b7 Reworked attribution handling 2017-10-08 20:29:02 -06:00
Tim Schaub c692b98fa9 Maintain rendering order in the LRU cache 2017-10-08 08:51:09 -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 efc86d59b0 Implement text rendering along paths
This commit also changes the TextReplay.drawText() signature, and moves
geometry calculation into drawText(). This improves performance where no
text needs to be rendered (TextStyle.getText() == ''), which is used often
in applications.
2017-09-11 16:54:27 +02: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 cf8c72c992 Fix provide/require structure for autogenerated shader files 2017-08-29 23:11:24 +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 5161a99925 Remove ol.ENABLE_WEBGL condition from webgl files 2017-08-17 13:21:53 -04: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 8e90976bf2 Indentation fix 2017-08-15 15:37:37 -04:00
Tim Schaub cada78459f Only use WebGL renderer if ol.has.WEBGL 2017-08-15 15:37:37 -04:00
Tim Schaub 9271df7e1d Pluggable renderers 2017-08-15 15:37:37 -04:00