Fix type notation in examples

This commit is contained in:
Frederic Junod
2018-12-07 10:55:26 +01:00
parent cd3e65e3df
commit 759b317707
11 changed files with 34 additions and 41 deletions

View File

@@ -53,7 +53,7 @@ exportButton.addEventListener('click', function() {
const dim = dims[format];
const width = Math.round(dim[0] * resolution / 25.4);
const height = Math.round(dim[1] * resolution / 25.4);
const size = /** @type {module:ol/size~Size} */ (map.getSize());
const size = map.getSize();
const extent = map.getView().calculateExtent(size);
map.once('rendercomplete', function(event) {