Provide center in the correct projection
This commit is contained in:
@@ -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'
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user