From 50cb6294ee027829264e8bfcc4b522eb01e0c92c Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Thu, 7 Mar 2013 01:54:51 +0100 Subject: [PATCH] Remove brightness/contrast from side-by-side example --- examples/side-by-side.html | 2 -- examples/side-by-side.js | 15 --------------- 2 files changed, 17 deletions(-) diff --git a/examples/side-by-side.html b/examples/side-by-side.html index 40dfd96f5c..b937863e3d 100644 --- a/examples/side-by-side.html +++ b/examples/side-by-side.html @@ -60,8 +60,6 @@
double-click, Shift+double-click, mouse wheel, +/- keys; Shift+drag
Rotate
Alt+Shift+drag, r to reset
-
Brightness/contrast
-
b/B/c/C keys (WebGL only)
Opacity
o/O keys
Visibility
diff --git a/examples/side-by-side.js b/examples/side-by-side.js index ffcccd6ed5..01d7971372 100644 --- a/examples/side-by-side.js +++ b/examples/side-by-side.js @@ -53,24 +53,9 @@ if (canvasMap !== null) { var keyboardInteraction = new ol.interaction.Keyboard(); keyboardInteraction.addCallback('0', function() { - layer.setBrightness(0); - layer.setContrast(1); layer.setOpacity(1); layer.setVisible(true); }); -keyboardInteraction.addCallback('b', function() { - layer.setBrightness(layer.getBrightness() - 0.1); -}); -keyboardInteraction.addCallback('B', function() { - layer.setBrightness(layer.getBrightness() + 0.1); -}); -keyboardInteraction.addCallback('c', function() { - layer.setContrast(layer.getContrast() - 0.1); -}); -keyboardInteraction.addCallback('C', function() { - // contrast is unbounded, but for this example we clamp to 3 - layer.setContrast(Math.min(3, layer.getContrast() + 0.1)); -}); keyboardInteraction.addCallback('j', function() { var bounce = ol.animation.bounce({ resolution: 2 * view.getResolution()