Merge pull request #236 from fredj/exports

Add some missing exports and fix side-by-side example
This commit is contained in:
Frédéric Junod
2013-02-27 12:51:43 -08:00
3 changed files with 8 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ keyboardInteraction.addCallback('l', function() {
view.setCenter(LONDON);
});
keyboardInteraction.addCallback('L', function() {
var start = goog.now();
var start = +new Date();
var duration = 5000;
var bounce = ol.animation.bounce({
resolution: 2 * view.getResolution(),
@@ -166,7 +166,7 @@ keyboardInteraction.addCallback('m', function() {
view.setCenter(MOSCOW);
});
keyboardInteraction.addCallback('M', function() {
var start = goog.now();
var start = +new Date();
var duration = 5000;
var bounce = ol.animation.bounce({
resolution: 2 * view.getResolution(),

View File

@@ -2,3 +2,4 @@
@exportProperty ol.animation.bounce
@exportProperty ol.animation.pan
@exportProperty ol.animation.rotate
@exportProperty ol.animation.zoom

5
src/ol/easing.exports Normal file
View File

@@ -0,0 +1,5 @@
@exportSymbol ol.easing
@exportProperty ol.easing.linear
@exportProperty ol.easing.upAndDown
@exportProperty ol.easing.elastic
@exportProperty ol.easing.bounce