Remove the requirement to provide a size to ol.View#fit()
This commit is contained in:
@@ -53,11 +53,7 @@ function setProjection(code, name, proj4def, bbox) {
|
||||
projection: newProj
|
||||
});
|
||||
map.setView(newView);
|
||||
|
||||
var size = map.getSize();
|
||||
if (size) {
|
||||
newView.fit(extent, size);
|
||||
}
|
||||
newView.fit(extent);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user