Commit Graph

55 Commits

Author SHA1 Message Date
Tom Payne
f3cace499c Implement frame state and animation architecture 2013-01-11 15:48:24 +01:00
Tom Payne
06bb56eff2 Fix typecasts in ol.layer.TileLayer 2013-01-07 13:18:59 +01:00
Tom Payne
3ef85a3651 Fix typecasts in ol.layer.Layer 2013-01-07 13:18:59 +01:00
tschaub
9622395c86 Use radians for hue rotation
This commit is a cherry-pick from 7f578f0.

Conflicts:

	src/ol/renderer/dom/domlayerrenderer.js
2012-12-12 15:22:01 +01:00
tschaub
4d97b583c6 Match the current Filter Effects spec
This commit is a cherry-pick of 19f7778.

The current draft of the [filter spec](https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html)
describes brightness, contrast, hue-rotate, and saturate functions that
roughly match our layer's setBrightness, setContrast, setHue, and
setSaturation methods.  These changes make the range of our methods match
the corresponding functions in the spec.  The one exception is the
brightness function.  The spec says it has a range of 0 to positive infinity.
The WebKit implementation accepts a range of -1 to 1 (as of
https://github.com/WebKit/webkit/commit/8f4765e569).  There's an open
(ticket)[https://www.w3.org/Bugs/Public/show_bug.cgi?id=15647] recommending
that the spec be changed to match.

I'm not stuck on having our methods match those of the filter spec, but the
parity would be nice.

These changes leave the WebGL map renderer "broken" (whacky colors).  It would
be straightforward to update the current fragment shader to handle the new
range of hue, but the brightness, contrast, and saturation handling will
need to be reworked.

For inspiration, here are the color transformation
matrix calculations the WebKit filters:
8f4765e569/Source/WebCore/platform/graphics/chromium/cc/CCRenderSurfaceFilters.cpp (L64-80)

Conflicts:

	src/ol/renderer/dom/domlayerrenderer.js
2012-12-12 15:18:34 +01:00
Éric Lemoine
576c54eb61 Move object literal exports to their own file 2012-10-24 17:05:33 +02:00
Éric Lemoine
d81b232587 Granularize the exports
This commit decomposes exports.txt into multiple, per-component, export files.  This will be required for custom builds;
2012-10-20 22:31:33 +02:00
Tom Payne
9d253ab6bb Refactor exports and externs 2012-10-04 15:11:26 +02:00
Tom Payne
24771c73a0 Export layer options type 2012-09-29 15:36:17 +02:00
Éric Lemoine
d99a0c164e Make functions @protected or @private
This also makes jsdoc3 happy along the way.
2012-09-27 17:56:29 +02:00
Tom Payne
65b8e0f915 Use object literals and use generic tile layer 2012-09-27 12:45:00 +02:00
Tom Payne
d3b9af30d0 Don't modify return type of method 2012-09-27 09:36:55 +02:00
Tom Payne
96bd703271 s/tilesource/source/ 2012-09-27 09:36:55 +02:00
Tom Payne
50334b7971 s/ol.TileLayer/ol.layer.TileLayer/ 2012-09-27 09:36:55 +02:00
Tom Payne
290d03e76f s/store/source/ 2012-09-26 19:43:23 +02:00
Tom Payne
88fd7729e2 Add missing dependency 2012-09-25 12:18:49 +02:00
Éric Lemoine
3e01ca97c3 remove the jsunit tests 2012-09-25 12:03:36 +02:00
Tom Payne
8394147df1 Satisfy gjslint 2012-09-24 21:25:29 +02:00
Tim Schaub
1f9e2aa3c4 Move Layer into ol.layer namespace. 2012-09-24 17:08:36 +02:00
Tom Payne
a416d1f601 s/TileBounds/TileRange/ 2012-09-24 14:33:24 +02:00
Tom Payne
f8c31ba45c s/ol3/ol/ 2012-09-24 14:21:41 +02:00
Tom Payne
f3d9b3332c Move code to be merged into src/attic 2012-07-26 00:21:37 +02:00
Tom Payne
3eefbaa337 Remove merged code 2012-07-22 03:10:33 +02:00
Tom Payne
a2cf655bfa Add ol.Layer 2012-07-11 17:20:06 +02:00
Éric Lemoine
fbd4023d6a [ol.layer.TileLayer] better func comment 2012-06-24 22:30:48 +02:00
Éric Lemoine
192caa1c65 [ol.layer.TileLayer] do not load tiles outside the layer's extent 2012-06-24 22:25:01 +02:00
ahocevar
9c46aadd22 Adding attribution control and attribution. 2012-06-24 22:22:18 +02:00
Éric Lemoine
f92e128636 [ol.layer.WMS] add a basic tiled WMS layer implementation 2012-06-22 20:39:56 +02:00
Éric Lemoine
5dc156995a [ol.layer.TileLayer] use ol.error 2012-06-22 18:46:52 +02:00
Éric Lemoine
a26913f26e [ol.layer.TileLayer] getTileUrl should be implemented in subclasses 2012-06-22 18:31:32 +02:00
Éric Lemoine
68fdab6824 [ol.layer.TileLayer] do not create tiles outside the layer extent 2012-06-22 17:30:35 +02:00
Éric Lemoine
e5c3dcfe09 [ol.layer.TileLayer] fix maxResolution calculation 2012-06-22 15:43:18 +02:00
Éric Lemoine
1df7c048b8 [ol.layer.TileLayer] tileOriginCorner is tl by default 2012-06-22 15:43:18 +02:00
Tim Schaub
ef06bee222 Allowing people to set up things backwards. 2012-06-22 15:42:56 +02:00
Éric Lemoine
71a804c5e0 [ol.layer.TileLayer] add a getTileForXYZ func 2012-06-22 15:16:58 +02:00
Éric Lemoine
01668a2748 [ol.layer.TileLayer] add a getTileSize function 2012-06-22 14:09:57 +02:00
Éric Lemoine
a0e5741774 [ol.layer.TileLayer, ol.layer.XYZ] add a getMaxResolution func to TileLayer, and make ol.layer.XYZ be just a projection and a number of zoom levels 2012-06-22 11:52:40 +02:00
Éric Lemoine
86a3eaad19 [ol.layer.TileLayer] move getData from layer.XYZ to layer.TileLayer 2012-06-22 11:09:08 +02:00
Éric Lemoine
0cf1a830d9 [ol.layer.XYZ] no need to call setResolutions 2012-06-22 10:41:06 +02:00
Éric Lemoine
7c36d2f42f [ol.layer.XYZ] does not require ol.Tile 2012-06-22 10:40:25 +02:00
Éric Lemoine
9d21d6f20f [ol.TileLayer] no setTileSize method anymore 2012-06-22 10:39:53 +02:00
Éric Lemoine
f7a956f404 [ol.Tile] add ol.Tile.createConstructor and set width and height to the img archetype 2012-06-22 10:38:40 +02:00
Éric Lemoine
1c7e0f8481 add an ol.TileCache and use it in ol.TileLayer 2012-06-21 19:00:09 +02:00
Éric Lemoine
1cca6b4069 add numZoomLevels and maxResolution properties to the TileLayer 2012-06-21 14:18:52 +02:00
Éric Lemoine
5f1e53a0c9 move properties from layer/XYZ to layer/TileLayer 2012-06-21 12:42:36 +02:00
Éric Lemoine
b91769f00b [ol.layer.XYZ] less than 8 chars lines 2012-06-21 08:38:38 +02:00
Tim Schaub
4baf760b7e Layer for demo. 2012-06-21 01:15:54 +02:00
Tim Schaub
57764813e3 Constructing tiles with bounds. 2012-06-20 23:38:15 +02:00
Tim Schaub
c9c1f79928 Layer hierarchy for renderers. 2012-06-20 23:38:14 +02:00
Petr Pridal
5ed80bcf6c Adding @export tags to functions missing it - for advanced compilation. 2012-06-20 18:37:56 +02:00