Fix typo in example.

This commit is contained in:
Marc Jansen
2013-04-04 07:27:53 +02:00
parent 3395319018
commit 66c03f4178
2 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ var london = ol.projection.transform(
new ol.Coordinate(-0.12755, 51.507222), 'EPSG:4326', 'EPSG:3857');
var moscow = ol.projection.transform(
new ol.Coordinate(37.6178, 55.7517), 'EPSG:4326', 'EPSG:3857');
var instanbul = ol.projection.transform(
var istanbul = ol.projection.transform(
new ol.Coordinate(28.9744, 41.0128), 'EPSG:4326', 'EPSG:3857');
var rome = ol.projection.transform(
new ol.Coordinate(12.5, 41.9), 'EPSG:4326', 'EPSG:3857');
@@ -30,7 +30,7 @@ var map = new ol.Map({
renderers: ol.RendererHints.createFromQueryData(),
target: 'map',
view: new ol.View2D({
center: instanbul,
center: istanbul,
zoom: 6
})
});
@@ -75,15 +75,15 @@ elasticToMoscow.addEventListener('click', function() {
map.getView().getView2D().setCenter(moscow);
}, false);
var bounceToInstanbul = document.getElementById('bounce-to-instanbul');
bounceToInstanbul.addEventListener('click', function() {
var bounceToIstanbul = document.getElementById('bounce-to-istanbul');
bounceToIstanbul.addEventListener('click', function() {
var pan = ol.animation.pan({
duration: 2000,
easing: ol.easing.bounce,
source: map.getView().getView2D().getCenter()
});
map.addPreRenderFunction(pan);
map.getView().getView2D().setCenter(instanbul);
map.getView().getView2D().setCenter(istanbul);
}, false);
var spinToRome = document.getElementById('spin-to-rome');