Tom Payne
b59eec7a83
Merge remote-tracking branch 'openlayers/master' into vector-api
2013-12-13 20:22:06 +01:00
Tom Payne
9dc3dc6c11
Make ol.renderer.Layer a @struct
2013-12-13 18:59:26 +01:00
Tom Payne
e9267e401c
Pass layer to forEachFeatureAtPixel callback
2013-12-04 00:05:45 +01:00
Tom Payne
d7591594ca
Allow forEachFeatureAtPixel callback to break out of loop
2013-12-04 00:05:44 +01:00
Éric Lemoine
e9843ced57
Add ol.renderer.Layer#forEachFeatureAtPixel
2013-12-02 15:06:19 +01:00
ahocevar
912ac29f31
Merge pull request #1298 from ahocevar/gfi-callback
...
The source determines who can do GetFeatureInfo
2013-11-20 07:11:51 -08:00
ahocevar
b8a9aeb14e
Avoid source check in map renderer
...
By returning true or false from the layer renderer's
getFeatureInfoForPixel method, we know whether the source
supports GetFeatureInfo or not.
2013-11-20 16:05:00 +01:00
Tom Payne
bd82e1aa1a
Remove vector code from files
2013-11-20 11:41:04 +01:00
Tom Payne
2b2e7bf786
Rename ol.renderer.Layer#renderFrame to prepareFrame
2013-11-20 11:31:20 +01:00
Tom Payne
a613b19360
Improve type checking in ol.renderer.Layer
2013-11-20 11:13:46 +01:00
Tom Payne
167b309242
Replace source ready flag with loading/ready/error enum
2013-09-30 13:30:54 +02:00
Tim Schaub
3b20cc7b53
Rename ol.Projection to ol.proj.Projection
2013-09-15 22:01:56 -06:00
Tom Payne
71a396a189
Rename ol.source.TileSource to ol.source.Tile
2013-09-09 14:40:23 +02:00
Bruno Binet
46ea218d0f
Make layer renderers more stupid
...
Layer renderers should not be responsible for listening to layer
properties change and triggering a render.
Layer change events are now forwarded to the map which will trigger a render.
2013-08-13 16:24:44 +02:00
ahocevar
f333acc183
Interface for GetFeatureInfo
...
When a source implements this interface, the layer renderer can
access the source to get feature info.
2013-07-31 12:09:39 +02:00
Frederic Junod
a1a7e21f92
Redefine ol.Size to be Array.<number>
2013-06-01 10:22:06 +02:00
Frederic Junod
984002a7ec
Change ol.Object event name syntax
...
'changed' to 'change' and '<attribute>_changed' to 'change:<attribute>'.
2013-05-31 12:38:37 +02:00
Tom Payne
2690410cbe
Improve type checking in ol.renderer.Layer
2013-04-30 22:00:22 +02:00
Tom Payne
6976fd96e3
Refactor tile functions
...
* Add support for minZoom in XYZ tile grids and tile sources
* Factor out common tile coordinate transforms
2013-04-29 19:54:26 +02:00
Éric Lemoine
4f1b7c70b8
Remove unused function
2013-04-21 21:50:03 +02:00
Tom Payne
945d2f6f5d
Merge pull request #631 from twpayne/dont-use-foreach-in-loops
...
Don't use forEach in loops
2013-04-20 03:02:13 -07:00
Tom Payne
fb0f1fb209
Cache array length in layer renderer
2013-04-20 11:34:48 +02:00
Tom Payne
d291d23092
ol.renderer.Layer no longer needs to inherit from ol.Object
2013-04-18 18:59:22 +02:00
Tom Payne
85a95a0036
Call render and requestRenderFrame directly instead of using changed events
2013-04-18 18:58:59 +02:00
Tom Payne
302e65e140
Render instead of requestRenderFrame when single image loads
2013-04-18 13:24:25 +02:00
Tom Payne
be629a7ed8
Sort jsdoc comments alphabetically
2013-04-12 00:48:55 +02:00
Tom Payne
0371b891a6
Tighten up permission on layer renderers
2013-04-12 00:48:35 +02:00
Tom Payne
5680b89c48
Update logos in renderers
2013-04-05 18:27:51 +02:00
Tom Payne
02196c94b5
Redefine ol.Coordinate to be Array.<number>
2013-04-05 12:30:37 +02:00
Éric Lemoine
e128bab625
Do not pass tile grid to getTile and tileUrlFunc
...
getTile and the tileUrlFunc are functions of the source, so they do need to be passed the tile grid. The tile source knows its tile grid, and can get the projection's tile grid if it doesn't have a tile grid.
2013-04-02 11:12:43 +02:00
Tom Payne
66c6a8a3e0
Make preload a number of levels instead of a boolean
2013-03-27 14:34:29 +01:00
Tom Payne
494d61250e
Make tile pre-loading a per-layer option
2013-03-27 14:34:29 +01:00
Tom Payne
96912c271d
Add optional per-tile callback to manageTilePyramid
2013-03-27 14:34:28 +01:00
Tom Payne
27f9e83780
Refactor ol.TileQueue to extend ol.structs.PriorityQueue
2013-03-27 14:34:28 +01:00
Tom Payne
9906c518a7
Rename useTileZXY to useTile
2013-03-25 11:45:20 +01:00
Tom Payne
65e6ed3485
Rename getTileZXY to getTile
2013-03-25 10:10:03 +01:00
Tom Payne
dfb631a08f
Replace getTile with getTileZXY
...
This massively reduces the number of temporary ol.TileCoord objects.
Previously an ol.TileCoord object was generated for every potentially
visible tile at the current zoom level and lower, every frame. This
commit eliminates all of those. Now new ol.TileCoord objects are only
allocated when a new tile is created.
2013-03-24 15:24:49 +01:00
Tom Payne
80df629319
Premptively load low resolution tiles
2013-03-22 21:02:09 +01:00
Éric Lemoine
1d575309da
Tile renderers needn't listen for tile change
2013-03-21 10:29:01 +01:00
Tom Payne
06463471e1
Add ol.renderer.Layer.snapCenterToPixel
2013-03-10 15:51:08 +01:00
Éric Lemoine
251e9a09fa
Fix js error when image source has no attributions
2013-03-07 12:41:15 +01:00
Éric Lemoine
59271ae2d8
Fix typo (thanks @bbinet)
2013-03-05 18:35:21 +01:00
Éric Lemoine
4e758f87ae
Do not register multiple listeners on same tile
2013-03-05 17:01:34 +01:00
ahocevar
586f393492
Support tile sources without configured projection
...
This change adds a lot of flexibility to working with tile
layers: Sources where the server projection or tile grid do not
matter can now be constructed without specifying a projection or
tile grid.
The tileUrlFunction/imageUrlFunction now also creates updated
URLs when the params of the layer change, so things like
mergeNewParams in ol2 will be possible.
A nice side effect of this whole change is that there is no more
duplicated code between tiled and single image WMS layers.
While I was at it, I also fixed a WMS 1.1.1 axis order issue
and incorrect STYLES params (STYLES=& instead of STYLES&).
2013-03-05 00:46:58 +01:00
Tom Payne
4c9b70fa5c
Move useLowResolutionTiles from layer renderer to tile source
2013-02-21 16:47:10 +01:00
Tom Payne
47e799ced0
Mark all low resolution tiles as used to prevent cache expiration
2013-02-21 16:19:38 +01:00
Tom Payne
e513b8cc39
Make it explicit that functions operate on tile sources
2013-02-21 16:12:45 +01:00
Éric Lemoine
f540dd8689
Image layer renderers add attributions to frame state
2013-02-19 15:19:44 +01:00
Éric Lemoine
85eec4e9b8
Avoid busy-waiting while images load
...
This is to be in conformance with the work done with #184 .
2013-02-17 22:47:19 +01:00
Tim Schaub
e079c19413
Don't repeatedly render while waiting for tiles to load
...
Instead of going into an unnecessary animation loop, we can simply wait to be notified when tiles load.
The WebGL renderer still sets frameState.animate true, but I think this too should be unnecessary (full page example works without it, side-by-side example shows it cannot yet be removed).
2013-02-06 16:10:46 -07:00