Update type annotations in examples

This commit is contained in:
Tim Schaub
2018-05-07 15:41:33 -06:00
parent ae55814875
commit cfe88663aa
9 changed files with 13 additions and 13 deletions

View File

@@ -87,6 +87,6 @@ const centerlausanne = document.getElementById('centerlausanne');
centerlausanne.addEventListener('click', function() {
const feature = source.getFeatures()[1];
const point = /** @type {module:ol/geom/Point~Point} */ (feature.getGeometry());
const size = /** @type {ol.Size} */ (map.getSize());
const size = /** @type {module:ol/size~Size} */ (map.getSize());
view.centerOn(point.getCoordinates(), size, [570, 500]);
}, false);