Sort properties alphabetically

This commit is contained in:
Tom Payne
2013-03-09 02:22:16 +01:00
parent 194edc7f26
commit 4a7a5fe220
2 changed files with 9 additions and 9 deletions

View File

@@ -56,8 +56,8 @@ rotateRight.addEventListener('click', function() {
var panToLondon = document.getElementById('pan-to-london'); var panToLondon = document.getElementById('pan-to-london');
panToLondon.addEventListener('click', function() { panToLondon.addEventListener('click', function() {
var pan = ol.animation.pan({ var pan = ol.animation.pan({
source: map.getView().getView2D().getCenter(), duration: 2000,
duration: 2000 source: map.getView().getView2D().getCenter()
}); });
map.addPreRenderFunction(pan); map.addPreRenderFunction(pan);
map.getView().getView2D().setCenter(london); map.getView().getView2D().setCenter(london);
@@ -66,9 +66,9 @@ panToLondon.addEventListener('click', function() {
var elasticToMoscow = document.getElementById('elastic-to-moscow'); var elasticToMoscow = document.getElementById('elastic-to-moscow');
elasticToMoscow.addEventListener('click', function() { elasticToMoscow.addEventListener('click', function() {
var pan = ol.animation.pan({ var pan = ol.animation.pan({
source: map.getView().getView2D().getCenter(),
duration: 2000, duration: 2000,
easing: ol.easing.elastic easing: ol.easing.elastic,
source: map.getView().getView2D().getCenter()
}); });
map.addPreRenderFunction(pan); map.addPreRenderFunction(pan);
map.getView().getView2D().setCenter(moscow); map.getView().getView2D().setCenter(moscow);
@@ -77,9 +77,9 @@ elasticToMoscow.addEventListener('click', function() {
var bounceToInstanbul = document.getElementById('bounce-to-instanbul'); var bounceToInstanbul = document.getElementById('bounce-to-instanbul');
bounceToInstanbul.addEventListener('click', function() { bounceToInstanbul.addEventListener('click', function() {
var pan = ol.animation.pan({ var pan = ol.animation.pan({
source: map.getView().getView2D().getCenter(),
duration: 2000, duration: 2000,
easing: ol.easing.bounce easing: ol.easing.bounce,
source: map.getView().getView2D().getCenter()
}); });
map.addPreRenderFunction(pan); map.addPreRenderFunction(pan);
map.getView().getView2D().setCenter(instanbul); map.getView().getView2D().setCenter(instanbul);

View File

@@ -1,8 +1,8 @@
@exportSymbol ol.easing @exportSymbol ol.easing
@exportProperty ol.easing.linear
@exportProperty ol.easing.upAndDown
@exportProperty ol.easing.elastic
@exportProperty ol.easing.bounce @exportProperty ol.easing.bounce
@exportProperty ol.easing.easeIn @exportProperty ol.easing.easeIn
@exportProperty ol.easing.easeOut @exportProperty ol.easing.easeOut
@exportProperty ol.easing.elastic
@exportProperty ol.easing.inAndOut @exportProperty ol.easing.inAndOut
@exportProperty ol.easing.linear
@exportProperty ol.easing.upAndDown