Provide center in the correct projection

This commit is contained in:
ahocevar
2019-02-07 12:23:45 +01:00
parent d24ae3c2ac
commit b3bc78daec
+2 -2
View File
@@ -344,7 +344,7 @@ describe('ol.control.ScaleLine', function() {
const ctrl = new ScaleLine(); const ctrl = new ScaleLine();
ctrl.setMap(map); ctrl.setMap(map);
map.setView(new View({ map.setView(new View({
center: fromLonLat([7, 0]), center: [7, 0],
zoom: 2, zoom: 2,
projection: 'EPSG:4326' projection: 'EPSG:4326'
})); }));
@@ -362,7 +362,7 @@ describe('ol.control.ScaleLine', function() {
}); });
ctrl.setMap(map); ctrl.setMap(map);
map.setView(new View({ map.setView(new View({
center: fromLonLat([7, 0]), center: [7, 0],
zoom: 2, zoom: 2,
projection: 'EPSG:4326' projection: 'EPSG:4326'
})); }));