Andreas Hocevar
5c5364bbb7
Merge pull request #3815 from ahocevar/tilegrid-no-surprises
...
Simplify tilegrid API and internals
2015-06-19 19:05:19 +02:00
Andreas Hocevar
af319c259b
Do not transform tile coordinates for tileUrlFunction
2015-06-19 18:34:09 +02:00
Andreas Hocevar
f645a9e1e4
Make unmanaged vector layers behave more like ol.FeatureOverlay
...
* Skipped features need to be hit-detected on unmanaged layers.
* updateWhileAnimating and updateWhileInteracting are recommended to
achieve the same instant visual feedback that ol.FeatureOverlay had.
2015-06-19 13:06:29 +02:00
Andreas Hocevar
e848acd806
Merge pull request #3780 from ahocevar/call-tileurlfunction-with-transformed-tilecoord
...
Only expose transformed tile coordinates to the API
2015-06-12 11:18:16 +02:00
Andreas Hocevar
4b3aac32c3
Return transformed tile coordinates from ol.TileGrid's API methods
2015-06-12 09:47:32 +02:00
Andreas Hocevar
817370a65b
Use 'managed' instead of 'unmanaged' in LayerState
2015-06-11 18:34:20 +02:00
Andreas Hocevar
53d5d8c1d9
Get rid of ol.FeatureOverlay
...
This also introduces a wrapX option to the Draw, Modify and Select
interaction.
2015-06-09 15:44:31 +02:00
Andreas Hocevar
54da473991
Allow layers that are not managed by the map
...
When a layer is configured with a map, it will be added on top of other
layers, and not be managed in the map's features collection. The layerState
will have an 'unmanaged' flag for such layers. For vector layers, this flag
is used to not skip any features.
2015-06-09 15:44:29 +02:00
Frederic Junod
bb6192bc10
Revert "Implement ol.renderer.Layer#forEachFeatureAtCoordinate"
...
This reverts commit dd07fd7977 .
2015-05-05 09:38:50 +02:00
Frederic Junod
dd07fd7977
Implement ol.renderer.Layer#forEachFeatureAtCoordinate
...
And remove identical implementation in children classes.
2015-04-28 14:08:45 +02:00
Andreas Hocevar
90b736c62e
Merge pull request #3571 from ahocevar/vector-wrapx
...
Add wrapX support for vector layers (canvas renderer only)
2015-04-22 09:21:02 +02:00
Andreas Hocevar
513677fecd
Render map replay group on the correct world instead of wrapping it
...
By using the frameState's focus, we can adjust extent and transform and
render it for the world of interest instead of wrapping it and rendering
for every visible world.
2015-04-22 09:11:19 +02:00
Andreas Hocevar
23ed120361
Clarify when we make feature overlays wrap the x-axis
2015-04-21 09:56:03 +02:00
Andreas Hocevar
40feabc3c8
Do not require an extent for global projections
2015-04-21 09:11:06 +02:00
Andreas Hocevar
4f8dca92ba
Ensure functions are always called with the same number of args
2015-04-21 08:21:31 +02:00
Frederic Junod
8fd2fae0cb
Only draw the layer if visible and inside the resolution range
2015-04-20 12:15:34 +02:00
Andreas Hocevar
8fd4e2c7c5
Improve docs, comments and code readability
2015-04-19 08:52:37 +02:00
Andreas Hocevar
b51aaa5055
Wrap the x-axis for the map's replay group
2015-04-18 19:10:53 +02:00
Andreas Hocevar
45cc660c48
Use x of the real world in forEachFeatureAtCoordinate
2015-04-18 19:10:53 +02:00
Andreas Hocevar
a90a012e5d
Replay vector batches for each world
2015-04-18 19:10:53 +02:00
Andreas Hocevar
2b75341068
Add support for non-square tiles
2015-04-14 22:54:57 +02:00
Éric Lemoine
9ce3bc7f3d
Fix WebGL image layer rendering on retina displays
...
This commit takes the device pixel ratio into account when calculating the matrix used to apply the image to the output canvas.
2015-04-07 12:13:16 +02:00
Éric Lemoine
42c4ae9ced
Add updateWhileInteracting to olx.layer.VectorOptions
2015-04-01 08:27:29 +02:00
Marc Jansen
fb9ba22c30
Add message to assertions.
2015-03-30 22:53:03 +02:00
Frederic Junod
c0c3057498
Remove unused goog.require
2015-03-26 11:54:37 +01:00
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