Commit Graph

1814 Commits

Author SHA1 Message Date
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
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
Andreas Hocevar 7739239e89 Make VectorTile source work with multiple layers 2017-07-09 14:08:08 +02:00
Andreas Hocevar 4a0f97ac6a Merge pull request #6988 from ahocevar/vectortile-types
Add missing type annotations
2017-07-06 16:53:23 +02:00
Andreas Hocevar a0e0e76995 Add missing type annotations 2017-07-06 12:31:57 +02:00
Andreas Hocevar 4f0bfbc1db Merge pull request #6970 from cmortazavi/patch-1
Fix Bug when adding/removing layer with no cache
2017-07-03 20:34:13 +02:00
cmortazavi db63cc1b23 Fix Bug when adding/removing layer with no cache 2017-07-02 09:34:14 +02:00
Andreas Hocevar 970265acb0 Give preloaded lower resolution tiles a chance to display immediately 2017-06-29 00:02:24 +02:00
Andreas Hocevar fe18636ff9 Remove lint 2017-06-26 14:56:07 +02:00
Marc Jansen feabb6440d Add reindented shader sources 2017-06-20 11:45:48 +02:00
Marc Jansen 7d6929c710 Manual adjustment of indentation 2017-06-20 10:41:03 +02:00
Marc Jansen d0ef05977b Autofix indentation issues (eslint --fix) 2017-06-19 11:58:00 +02:00
Frédéric Junod aeed1f79bb Merge pull request #6832 from oterral/fix_5269
Force state of error tiles when usInterimTilesOnError is false
2017-05-24 15:27:11 +02:00
oterral c1abe4a550 Force state of error tiles when usInterimTilesOnError is false 2017-05-22 09:31:07 +02:00
Andreas Hocevar 9af01c515f Make ol.VectorTile#getFeatures and #getProjection exportable 2017-05-16 22:57:03 +02:00
Andreas Hocevar 9b9ac03760 Merge pull request #6796 from ahocevar/rendered-resolution
Re-add accidently dropped condition
2017-05-11 08:55:03 +02:00
Andreas Hocevar 4a6945ac17 Merge pull request #6779 from ahocevar/vector-tile-grid
Decouple source and rendered tile grid of vector tile sources
2017-05-10 19:07:21 +02:00
Andreas Hocevar c9ca9737a7 Re-add condition accidently dropped in 5061555 2017-05-10 19:04:55 +02:00
Andreas Hocevar 50615557d9 Create intermediate canvas when resolutions have changed 2017-05-10 11:58:38 +02:00
Andreas Hocevar 55e3746554 Avoid garbage creation on frame preparation/composition 2017-05-09 14:04:05 +02:00
Andreas Hocevar 785e7135a7 Decouple source and rendered tile grid of vector tile sources 2017-05-09 14:04:04 +02:00
Tim Schaub 479d98212b Disable no-missing-requires rule in generated shader code 2017-05-02 15:04:20 -06:00
Thomas Chandelle 76ddcd405d Clip image only if the layer extent intersects the view extent 2017-04-10 14:42:57 +02:00
Andreas Hocevar 7db5eea56b Performance improvement: only create context when it is needed 2017-02-14 22:20:38 +01:00
Andreas Hocevar db58db396f Remove renderedResolution which is defined in superclass 2017-02-14 22:19:38 +01:00
Jan Klaas Kollhof b152f06973 Fix rendered.canvas.TileLayer to calculate correct canvas height for drawing. 2017-02-13 13:50:09 +11:00
Andreas Hocevar e561504d27 Save and restore context when rotating 2017-02-10 10:05:07 +00:00
Andreas Hocevar ca23c7337f Merge pull request #6361 from tchandelle/canvas-margin
Remove "margin" at the bottom of the canvas
2017-02-06 14:47:16 +01:00
Thomas Chandelle ade0b7898b Remove "margin" at the bottom of the canvas 2017-02-03 16:54:29 +01:00
Andreas Hocevar ec8d8228cf Less redraws while zooming in 2017-02-02 22:14:01 +01:00
Andreas Hocevar 72af545a4a Avoid oversampling when view resolution lower than tile resolution 2017-02-02 22:13:25 +01:00
Frederic Junod d59224f5eb Add missing override and inheritDoc jsdoc tags 2017-01-30 17:16:01 +01:00
Frederic Junod 546fc97cd4 Add abstract tag at class level 2017-01-30 17:16:01 +01:00
Tim Schaub fcb9dafc33 Use the ol.DEBUG_WEBGL flag to debug shader sources 2017-01-16 16:57:37 -07:00
Frederic Junod 01e161e19f Remove unused private variable 2017-01-10 08:50:39 +01:00
Andreas Hocevar dcbf3a97e8 Wrap WebGL shader code in define condition 2017-01-02 22:01:58 +01:00
Andreas Hocevar fd92982661 Wrap ol.renderer.webgl code in define condition 2017-01-02 21:40:22 +01:00