Andreas Hocevar
2aa4f0c01c
Fix forEachLayerAtPixel for the canvas renderer
2016-12-06 08:47:41 +01:00
Andreas Hocevar
ccdb955cd9
Simplify canvas tile renderer with image composition
2016-12-06 08:47:40 +01:00
GaborFarkas
3e56dba1b4
Do not draw vectors outside viewport
2016-11-23 09:51:37 +01:00
GaborFarkas
697cbf16f0
Fix some rendering issues with complex styling
2016-11-23 09:51:37 +01:00
GaborFarkas
ac6408be3b
Add circle replay to WebGL renderer
2016-11-23 09:51:36 +01:00
GaborFarkas
c966e21e40
Fix black canvas when image is missing
2016-11-23 09:49:47 +01:00
GaborFarkas
9d6a860cd1
Fix overdraw issue with Firefox
...
As usual, Firefox is the good guy here, too, and this is an issue with Chrome
2016-11-23 09:49:47 +01:00
Tim Schaub
9272db1d25
Let the compiler know these are vector tiles
2016-11-11 05:48:06 -07:00
Andreas Hocevar
70338b928e
Revert "Merge pull request #5890 from ahocevar/no-white-lines"
...
This partially reverts commit 5f18246355 ,
reversing most of the changes made to
004afa6b9a .
2016-10-25 11:34:02 +02:00
Frederic Junod
0345055cfb
Use tile pixel ratio for gutter calculation (webgl and tests)
2016-10-20 13:15:06 +02:00
Andreas Hocevar
76e0a37d69
Use tile pixel ratio for gutter calculation
2016-10-20 10:52:55 +02:00
Frederic Junod
ed677cec4e
Rename ol.render.EventType to ol.render.Event.Type
2016-10-13 12:02:51 +02:00
Andreas Hocevar
f23921367b
Use a common origin and resolution factors for tile alignment
2016-10-10 10:25:29 +02:00
Andreas Hocevar
04649a74cd
One provide per file for vector tiles
2016-10-06 22:52:02 +02:00
Andreas Hocevar
0ae73632cc
Merge pull request #5894 from ahocevar/reuse-arrays
...
Reuse arrays for rendered tiles and extent
2016-09-26 14:35:58 +02:00
Andreas Hocevar
3026fda02b
Use pixel rounded center for the WebGL renderer transform
2016-09-26 13:28:09 +02:00
Andreas Hocevar
9950e97c54
Always use the frameState's extent
...
Since the tile renderer aligns tiles to pixels anyway, we do not need to
modify the extent to make its center align with a pixel.
2016-09-16 15:02:21 +02:00
Andreas Hocevar
b0a654534c
Reuse arrays for rendered tiles and extent
2016-09-16 14:58:39 +02:00
Tim Schaub
f61a43b3c6
Keep ol.Color as Array<number>
2016-09-10 11:12:10 -06:00
Frederic Junod
db2b8666b6
Rename ol.RendererType to ol.renderer.Type
2016-09-07 08:57:23 +02:00
Thomas Moelhave
69fc9edb4d
Render older loaded tiles while waiting for new tiles
2016-09-02 15:28:28 +02:00
Tim Schaub
5ce55d39ba
Remove the DOM renderer
2016-09-01 07:26:55 -06:00
Frederic Junod
8b3536fc85
Rename ol.layer.VectorTileRenderType to ol.layer.VectorTile.RenderType
2016-09-01 06:58:11 -06:00
Andreas Hocevar
d1e4b33760
Rename goog.DEBUG to ol.DEBUG
2016-08-31 21:10:01 +02:00
Frédéric Junod
f16e40742c
Merge pull request #5801 from fredj/rm_ol.style.ImageState
...
Remove ol.style.ImageState and use ol.ImageState instead
2016-08-29 11:16:48 +02:00
Frederic Junod
bed95e3b5b
Change ol.ImageState to ol.Image.State
2016-08-29 10:53:09 +02:00
Frederic Junod
1fecb6fd16
Remove ol.style.ImageState and use ol.ImageState instead
2016-08-29 10:39:37 +02:00
Andreas Hocevar
cb7c15c767
Fix vector tile rotation on HiDPI devices
2016-08-27 23:03:07 +02:00
Andreas Hocevar
b7c84b269c
Merge pull request #5196 from ahocevar/batch-fill-stroke
...
Batch polygon and circle fills and strokes
2016-08-24 12:02:52 +02:00
Andreas Hocevar
8992ee8e73
Entertain the compiler
2016-08-23 15:33:52 +02:00
Andreas Hocevar
f490302959
Enable extent clipping for vector tile layers
2016-08-23 15:20:00 +02:00
Andreas Hocevar
1c73dc9088
Enable extent clipping for vector layers
2016-08-23 15:12:19 +02:00
Andreas Hocevar
7e940e618e
Introduce new overlaps option for Vector and VectorTile sources
...
Instead of deciding whether to batch fills and strokes by looking at the
opacity of the style, we now rely on user input.
2016-08-23 12:05:03 +02:00
Andreas Hocevar
bee94d0d4f
Fix drawScale calculation
...
The goal of using a drawScale was to use the smallest possible canvas (i.e.
one that fits the tile pixel ratio instead of the view pixel ratio) when
composing rotated views. Instead, the drawScale caused a ridiculously
large canvas.
2016-08-23 10:55:56 +02:00
Andreas Hocevar
92e2b72f55
Fix clip extent calculation for tile layers
2016-08-23 10:55:56 +02:00
Andreas Hocevar
f9a595ed5b
Merge pull request #5752 from ahocevar/fix-rotated-replaycontext
...
Set proper replay canvas size and offset for rotated view
2016-08-22 21:40:29 +02:00
Frédéric Junod
ef07dc6eff
Merge pull request #5727 from fredj/add_missing_goog_require
...
Add missing goog require
2016-08-22 08:35:06 +02:00
Andreas Hocevar
02daf761f0
Set proper replay canvas size and offset for rotated view
2016-08-21 14:14:37 +02:00
Frederic Junod
2fb5e544c2
Take the pixelRatio into account when computing the gutter
2016-08-17 13:33:03 +02:00
Frederic Junod
d4ad9ad616
Add missing goog.require('ol')
2016-08-17 09:57:21 +02:00
Frederic Junod
793ec85b9d
Add missing goog.require('ol.render.canvas')
2016-08-17 09:57:21 +02:00
Benjamin
c3b66743fe
Added a pixelRatio adjust to the canvasTileLayer 'forEachLayerAtPixel' method
...
This method was composing a frame that was only accurate for devices
with a pixelRatio of 1. Now the canvas widths and heights are
multiplied beforehand by the pixelRatio. #5601
2016-08-15 10:28:29 -04:00
Tim Schaub
f25fd07a5e
Merge pull request #5702 from tschaub/no-missing-requires
...
Add rule to identify missing requires
2016-08-13 10:32:41 -06:00
Tim Schaub
9d276982b5
Assorted missing requires
2016-08-12 10:53:50 -06:00
Tim Schaub
3afb42828f
Add Hint and Property as ol.View properties
2016-08-12 10:53:50 -06:00
Tim Schaub
0b3c320540
Rename ol.webgl.WebGLContextEventType to ol.webgl.ContextEventType
2016-08-12 10:53:50 -06:00
Tim Schaub
9e4d80b459
Move State to ol.Tile
2016-08-12 10:53:49 -06:00
Tim Schaub
a70c6f916b
Give ol.style.IconImageCache its own file
2016-08-12 10:53:48 -06:00
Tim Schaub
d02cf1e7a9
Shuffle assertions
2016-08-12 10:53:47 -06:00
Benjamin
f73ee14e3c
Added image data value to 'forEachLayerAtPixel' method callback
...
The update has been added to the docs for all 'forEachLayerAtPixel' definitions
and currently returns null for non-supporting definitions. ol.Color typeDef
was also updated to support Uint8Arrays & Uint8ClampedArrays as it is the
reference type for the addded argument #5586
2016-08-12 12:13:11 -04:00