Commit Graph

47 Commits

Author SHA1 Message Date
Tim Schaub 89f5e711e6 Example sources in the examples dir 2015-04-17 06:22:38 -06:00
Andreas Hocevar ff1ee78ddd Build and parse examples from examples_src/ 2015-04-02 19:10:09 +02:00
Tim Schaub 947b049799 Rename ol.browserfeature to ol.has 2014-08-22 07:34:35 -06:00
Peter Robins e35531e7c6 Rename BrowserFeature to browserfeature 2014-08-15 13:53:20 +00:00
Tim Schaub 47d37fabea Rename ol.View2D to ol.View 2014-06-27 09:59:39 -04:00
Tim Schaub 5653d57712 Change default renderer to Canvas 2014-04-02 11:43:20 -06:00
Tom Payne a58aa0a40d Use string instead of ol.RendererHint enum in examples 2014-02-06 22:33:25 +01:00
Frederic Junod f058d54277 Fix ol.BrowserFeature.HAS_WEBGL test in side-by-side example 2014-01-14 09:46:02 +01:00
Bart van den Eijnden 78d20056f5 update all the other examples that used MapQuest 2014-01-08 13:36:35 +01:00
Éric Lemoine 79718151b7 Add ol.BrowserFeature.HAS_WEBGL 2013-12-18 11:20:13 +01:00
Tim Schaub 54738e29eb Export ol.webgl.SUPPORTED and provide ol.webgl 2013-09-15 15:51:17 -06:00
Tom Payne 8f8f94e697 Rename ol.layer.TileLayer to ol.layer.Tile 2013-09-09 15:14:45 +02:00
Frederic Junod aa823e2b28 Better user notification if WebGL is not supported 2013-09-06 22:36:39 +02:00
Frederic Junod 169e66835d Bind to layergroup instead of layers 2013-09-06 18:17:12 +02:00
Tom Payne 02196c94b5 Redefine ol.Coordinate to be Array.<number> 2013-04-05 12:30:37 +02:00
Tom Payne 422ed4bd43 Clean up side-by-side example 2013-03-22 14:39:17 +01:00
Bruno Binet 9b1c389c80 Remove unused goog.require directives 2013-03-14 11:39:43 +01:00
Tom Payne 21d34f1cc8 Rename projection functions for a friendlier API
The following functions are renamed:

getTransform -> getTransformForProjections
getTransformFromCodes -> getTransform
transform -> transformWithProjections
transformWithCodes -> transform

With this change, the faster functions that avoid projection look-up
have longer names and are used internally, whereas the slower but
friendlier short name functions are available for users.
2013-03-07 13:39:40 +01:00
Frederic Junod feb03b8cda Change opacity step value in side-by-side example
Avoid rounding issue (0.1 in binary format). fixes #299
2013-03-07 10:14:39 +01:00
Tom Payne 3c701067b3 Remove animations from side-by-side example 2013-03-07 02:58:00 +01:00
Tom Payne 50cb6294ee Remove brightness/contrast from side-by-side example 2013-03-07 01:56:41 +01:00
Tom Payne 8ab00689b2 Remove hue/saturation from side-by-side example 2013-03-07 01:56:41 +01:00
Tom Payne fe7f112c41 Remove mouse position control from side-by-side example 2013-03-06 20:57:48 +01:00
Tom Payne 363cb87e1a Use an array to specify additional controls 2013-03-06 13:19:34 +01:00
Tom Payne a94eadf402 Port examples to ol.control.defaults 2013-03-06 12:36:49 +01:00
Éric Lemoine 01d49ef9c9 Remove references to goog in examples 2013-03-03 17:01:37 +01:00
Tom Payne fcc620af7d Separate ol.projection module from ol.Projection class 2013-03-03 13:09:13 +01:00
Frederic Junod 5ccf94a395 Do not use goog.now() in the examples (see #229) 2013-02-27 13:58:30 +01:00
Éric Lemoine 5f5e14f253 Merge pull request #175 from elemoine/control
Simplify control architecture
2013-02-08 14:56:19 -08:00
Tim Schaub a2bbdf7ccc More natural names for animations 2013-02-06 13:43:54 -07:00
Frederic Junod 3355f9345d Replace ol.animation.createSpin with ol.animation.createRotateFrom 2013-02-06 17:10:21 +01:00
Éric Lemoine bde61a0b4b Simplify control architecture 2013-02-04 10:18:33 +01:00
Tom Payne f9eb7dc477 Add missing requires to examples 2013-01-30 23:47:13 +01:00
Frederic Junod 7568688301 Use option object rather than positional arguments for ol.animation.create* functions 2013-01-23 17:07:55 +01:00
Frederic Junod 8825251c42 Add new ol.easing.elastic and ol.easing.bounce easing functions. 2013-01-21 09:48:56 +01:00
Tom Payne aeef260101 Add canvas renderer to side-by-side demo 2013-01-17 13:54:52 +01:00
Tom Payne 11ec1de89b Refactor mouse position control to use postrender event 2013-01-16 11:25:59 +01:00
Tom Payne 434dd84c04 Add animation examples to side-by-side demo 2013-01-11 15:49:15 +01:00
Éric Lemoine 927cffb2b7 Add view abstraction 2013-01-09 14:03:16 +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:
https://github.com/WebKit/webkit/blob/8f4765e5698c9171c2b3f984d0d9d65188185de3/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
Tom Payne ee1d1fa3e7 Fold ol.CoordinateFormat into ol.Coordinate 2012-10-18 14:22:23 +02:00
Tom Payne 98340c55ce Don't use goog.* functions in examples 2012-10-15 19:11:02 +02:00
Tom Payne 1a5375fa51 Move target container in to map options 2012-09-29 13:58:15 +02:00
Tim Schaub bc5cd13855 Tiny bit of style 2012-09-29 01:17:46 +02:00
Tom Payne 1be9e97489 Add attribution control by default 2012-09-28 14:53:45 +02:00
Éric Lemoine 896f5203db Change examples directory names to "examples" 2012-09-28 14:01:51 +02:00