Bart van den Eijnden
4569858882
Add image loading events to image sources
2015-03-17 12:56:39 +01:00
Frédéric Junod
3079924a3d
Merge pull request #3271 from fredj/jsdoc-fixes
...
[wip] Fix misplaced comment blocks
2015-02-25 07:13:19 +01:00
Tim Schaub
22aeb3612e
Remove unused createGetTileIfLoadedFunction function
2015-02-24 15:06:10 -08:00
Frederic Junod
1620a11181
Fix misplaced comment blocks
...
Found while testing the new google-closure release (v20150126)
The code still compiles with the older (default) version.
2015-02-24 17:13:35 +01:00
Tim Schaub
e5432f7cb5
Avoid creating unnecessary images during rendering
2015-02-16 15:11:16 -07:00
bill-chadwick
0381689fb6
Resize the canvas when the tile size changes
2015-02-10 14:00:23 -07:00
Tim Schaub
33c197cf16
Layer renderers should not require a map renderer
2015-02-08 07:25:10 -07:00
Tim Schaub
e0f250483d
Layer renderers don't need access to the map
2015-02-07 16:56:10 -07:00
Tim Schaub
c4ee8518e1
Use frame state for size
2015-02-07 16:52:48 -07:00
Tim Schaub
d4b7bb7c57
Use frame state for pixel to coord conversion
2015-02-07 16:52:34 -07:00
Tim Schaub
a460cb3983
Fire change instead of calling render on map
2015-02-07 16:46:30 -07:00
Tim Schaub
7f18033171
Make layer renderers observable and re-render on change
2015-02-07 16:42:36 -07:00
Tim Schaub
693ec7706e
createLayerRenderer must be implemented by subclass
2015-02-07 16:30:28 -07:00
Tim Schaub
9081682286
Use provided frame state instead of map for pixel to coord conversion
2015-02-07 16:12:39 -07:00
Frederic Junod
078d3fb007
Add missing goog.require
2015-02-05 10:56:44 +01:00
Frederic Junod
65c2f7de5f
Remove unused goog.require
2015-02-05 10:56:44 +01:00
tsauerwein
f4500c8f89
Rename *AtPixel to *AtCoordinate if coordinate
2015-01-30 10:00:37 +01:00
tsauerwein
4d4bed454a
Avoid pixel->coord->pixel conversion
2015-01-30 10:00:37 +01:00
tsauerwein
054227fd26
Make signature for *AtPixel methods more consistent
...
pixel/coordinate is the first argument.
2015-01-30 10:00:36 +01:00
tsauerwein
dce4210a5b
Implement forEachLayerAtPixel for webgl
2015-01-30 10:00:36 +01:00
tsauerwein
6cc5bd466d
Add hasFeatureAtPixel for ImageLayer
2015-01-30 10:00:36 +01:00
tsauerwein
b4cb786f29
Implement forEachLayerAtPixel for canvas
2015-01-30 10:00:36 +01:00
tsauerwein
225f0739ec
Add forEachLayerAtPixel
2015-01-30 10:00:36 +01:00
tsauerwein
7feb8b22f6
Rename forEachGeometryAtPixel
2015-01-30 10:00:36 +01:00
Frederic Junod
cb69cecf03
Take the pixel ratio into account when clipping the layer
2015-01-28 14:21:50 +01:00
Frederic Junod
948a1f1321
Use the layerStatesArray property from the frameState
2015-01-22 17:36:26 +01:00
Tobias Sauerwein
1702a4ed36
Merge pull request #3066 from tsauerwein/webgl-point-hasFeatureAtPixel
...
Introduce hasFeatureAtPixel
2015-01-22 10:20:00 +01:00
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
tsauerwein
c85982bbe5
Remove unused variables
2015-01-09 09:21:40 +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
d39904b66b
Add @const annotation
2015-01-08 16:12:52 +01:00
tsauerwein
25612f1af2
Unify return statement
...
Only return the callback result if it is truthy,
otherwise return undefined.
2015-01-08 16:12:52 +01:00
tsauerwein
bc71a36292
Implement hasFeatureAtPixel for webgl
2015-01-08 16:12:52 +01:00
tsauerwein
d62e910239
Implement hasFeatureAtPixel for canvas
2015-01-08 16:12:52 +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