Tobias Sauerwein
53f98dcf4e
Merge pull request #3065 from tsauerwein/webgl-point-hit-detection
...
Add hit-detection support for WebGL
2015-01-22 10:19:37 +01:00
Éric Lemoine
b27c1c82d4
Merge pull request #3107 from elemoine/imagestate
...
Also listen on loading images
2015-01-21 12:50:31 +01:00
Andreas Hocevar
c726cbfcd9
Merge pull request #2385 from ahocevar/update-vectors-while-animating
...
Option to update vector layers while animating
2015-01-14 17:34:39 +01:00
Andreas Hocevar
b1a73da9dd
Add updateWhileAnimating option
...
With this option, vector batches will be recreated with every frame.
For animations, this means that vector data won't be clipped to the
extent at which the animation started.
2015-01-14 16:33:05 +01:00
Andreas Hocevar
bbf074b70a
Add pixelRatio support for DOM vector renderer
...
Adds the scaling and transforms to support pixelRatio values other than
1.
2015-01-12 22:14:52 +01:00
Éric Lemoine
4814983306
Also listen on loading images
...
This fixes a bug that occured when an image source was used by multiple maps. In that case the map that didn't load the image wouldn't register a load listener on that image and would therefore not call render to request a re-render of the map.
2015-01-09 09:07:31 +01:00
tsauerwein
974823dbd4
Refactor createTexture
2015-01-08 15:40:03 +01:00
tsauerwein
38322d615b
Use renderBuffer for hit-detection
2015-01-08 15:38:00 +01:00
tsauerwein
cf6dd38866
Use hit-detection images
2015-01-08 15:38:00 +01:00
tsauerwein
3ef61fa1c5
Add hit-detection support for webgl
2015-01-08 15:38:00 +01:00
Tim Schaub
1ee03625e9
Optimize hit detection by rendering features in a limited extent
2015-01-07 23:04:42 -07:00
Frederic Junod
55dda99cfe
Assert that ol.layer.Tile#getUseInterimTilesOnError is always set
2015-01-07 16:59:44 +01:00
Frederic Junod
df51e55781
Assert that ol.layer.Tile#getPreload is always set
2015-01-07 16:48:15 +01:00
Tim Schaub
e62c333f32
Correct arguments for forEachGeometryAtPixel
2014-12-23 11:10:04 -05:00
Frederic Junod
eabb795624
Remove misplaced function annotation
2014-12-22 11:12:01 +01:00
Éric Lemoine
f1bf782133
Change "recreate batch" strategy
...
Only recreate batch when the (buffered) rendered extent contains the **buffered** viewport extent.
2014-12-19 08:43:47 +01:00
Éric Lemoine
8e8fc9977c
Add a renderBuffer option to ol.layer.Vector
2014-12-18 13:20:32 +01:00
Éric Lemoine
ddc51ee267
Unconditionally draw Replay's
2014-12-18 13:04:29 +01:00
Éric Lemoine
fdf52c1865
Simplify hit detection code
2014-12-05 15:42:54 +01:00
Éric Lemoine
87bb1b956b
Merge remote-tracking branch 'upstream/master' into webgl-point
...
Conflicts:
src/ol/style/circlestyle.js
src/ol/style/regularshapestyle.js
test/spec/ol/style/regularshapestyle.test.js
2014-12-04 12:57:46 +01:00
Andreas Hocevar
4cbeb5ee22
Merge pull request #2987 from kartverket/2966
...
Image layer renderers use source projection if given and equivalent
2014-12-01 13:06:42 +01:00
Thomas Hirsch
8e4d7c0715
isDefAndNotNull -> !isNull
2014-12-01 12:57:35 +01:00
Thomas Hirsch
d5bafc5e9f
linting
2014-12-01 10:53:36 +01:00
Thomas Hirsch
e385e81a20
linting
2014-11-30 10:08:41 +01:00
Thomas Hirsch
c42ec27a4a
image layer renderers use source projection if given and equivalent
2014-11-28 22:09:45 +01:00
Éric Lemoine
857a8ca2bb
Delete WebGL resources used at postcompose time
2014-11-21 16:35:05 +01:00
Éric Lemoine
57db47ac18
Rename ol.structs.Buffer to ol.webgl.Buffer
...
The Buffer class is WebGL specific, and it's not really a "data structure", in the pure sense of the term.
2014-11-21 15:48:31 +01:00
Guillaume Beraudo
fe74bd1b2c
Add missing call to flush in webgl map renderer
2014-11-21 13:36:09 +01:00
Guillaume Beraudo
20ceae2655
Webgl immediate implementation for points
...
Internally uses a replay group to share code.
Modifies the dynamic data example to use PointGeometry
and Feature in addition to MultiPoint.
2014-11-20 13:53:00 +01:00
Tim Schaub
50c0bc6879
Clip rendering to layer extent
2014-11-11 08:59:57 -08:00
Éric Lemoine
23a24973eb
Merge pull request #30 from elemoine/webgl-point-delete
...
[webgl-point] Add ol.renderer.webgl.VectorLayer#disposeInternal
2014-11-10 17:18:28 +01:00
Éric Lemoine
d9a4482393
Add ol.renderer.webgl.VectorLayer#disposeInternal
...
Implement disposeInternal to free WebGL resources (deleteBuffer and deleteTexture).
2014-11-10 16:52:32 +01:00
Éric Lemoine
501e7456c0
Merge remote-tracking branch 'upstream/master' into webgl-point-merge
2014-11-10 15:40:03 +01:00
Éric Lemoine
87865be9f4
Add "color" support to WebGL image replay
...
This adds support for layer brightness, contrast, hue, saturation.
2014-11-10 15:00:35 +01:00
Éric Lemoine
240f425c46
Add global opacity support to WebGL image replay
...
vectorLayer.setOpacity() now works as expected.
2014-11-10 14:58:57 +01:00
Éric Lemoine
c79f3aa101
Delete WebGL buffers
2014-11-10 09:54:04 +01:00
Guillaume Beraudo
6abe3047ec
Add feature overlay support to webgl map renderer.
2014-11-07 14:17:31 +01:00
Guillaume Beraudo
f715e3186a
Readability rearangement in canvasmaprenderer.js
2014-11-07 11:15:02 +01:00
Éric Lemoine
28e51740c6
Address precision/jitter problems
...
Address precision/jitter problems by using coordinates relative to the Replay max extent rather that the world.
2014-11-03 17:45:50 +01:00
Éric Lemoine
46b03e79a4
Merge remote-tracking branch 'upstream/master' into webgl-point
2014-11-03 15:02:22 +01:00
Éric Lemoine
14d7f2a797
Delete ImageReplay textures
2014-11-03 14:16:32 +01:00
Éric Lemoine
4534bb8861
Make shaders closer to WebGL image replay
2014-11-03 13:46:34 +01:00
Andreas Hocevar
87a06c0086
Rename #getImageElement to #getImage
...
This adds consistency between ol.Image and ol.ImageTile. Now both have
an exportable getImage method.
2014-10-30 08:42:09 +01:00
Éric Lemoine
bbea205a9c
Use texture to draw points with WebGL
2014-10-27 09:18:19 +01:00
Éric Lemoine
c8225e49b1
Use triangles to draw points with WebGL
2014-10-27 09:18:19 +01:00
Éric Lemoine
33adcd3903
Add very basic webgl vector renderer
2014-10-27 09:18:19 +01:00
Tim Schaub
d712b2ba54
Allow source to be set after layer construction
2014-10-25 15:34:47 -06:00
Frédéric Junod
a6c3607897
Merge pull request #2855 from fredj/blur_preventDefault
...
Move touchstart preventDefault to ol.renderer.dom.Map
2014-10-23 17:38:44 +02:00
Andreas Hocevar
45967992fb
Merge pull request #2690 from ahocevar/layer-vectoroverlay
...
Vector rendering with the DOM renderer
2014-10-23 10:19:20 +02:00
Frederic Junod
c83caa9686
Add ol.renderer.dom.Map#disposeInternal
2014-10-23 08:53:55 +02:00