Remove the requirement to provide a size to ol.View#fit()
This commit is contained in:
@@ -118,8 +118,7 @@ dragAndDropInteraction.on('addfeatures', function(event) {
|
||||
source: vectorSource,
|
||||
style: styleFunction
|
||||
}));
|
||||
map.getView().fit(
|
||||
vectorSource.getExtent(), /** @type {ol.Size} */ (map.getSize()));
|
||||
map.getView().fit(vectorSource.getExtent());
|
||||
});
|
||||
|
||||
var displayFeatureInfo = function(pixel) {
|
||||
|
||||
Reference in New Issue
Block a user