diff --git a/examples/custom-interactions.js b/examples/custom-interactions.js index 7f146d6823..ce411e676d 100644 --- a/examples/custom-interactions.js +++ b/examples/custom-interactions.js @@ -141,13 +141,13 @@ const map = new Map({ features: [pointFeature, lineFeature, polygonFeature] }), style: new Style({ - image: new Icon(/** @type {module:ol/style/Icon~Options} */ ({ + image: new Icon({ anchor: [0.5, 46], anchorXUnits: 'fraction', anchorYUnits: 'pixels', opacity: 0.95, src: 'data/icon.png' - })), + }), stroke: new Stroke({ width: 3, color: [255, 0, 0, 1] diff --git a/examples/geolocation-orientation.js b/examples/geolocation-orientation.js index 2adb79d1eb..b9eae92681 100644 --- a/examples/geolocation-orientation.js +++ b/examples/geolocation-orientation.js @@ -36,7 +36,7 @@ map.addOverlay(marker); // LineString to store the different geolocation positions. This LineString // is time aware. // The Z dimension is actually used to store the rotation (heading). -const positions = new LineString([], /** @type {module:ol/geom/GeometryLayout} */ ('XYZM')); +const positions = new LineString([], 'XYZM'); // Geolocation Control const geolocation = new Geolocation({ diff --git a/examples/icon-color.js b/examples/icon-color.js index f7ffafe23e..f69c2cffde 100644 --- a/examples/icon-color.js +++ b/examples/icon-color.js @@ -22,27 +22,27 @@ const madrid = new Feature({ }); rome.setStyle(new Style({ - image: new Icon(/** @type {module:ol/style/Icon~Options} */ ({ + image: new Icon({ color: '#8959A8', crossOrigin: 'anonymous', src: 'data/dot.png' - })) + }) })); london.setStyle(new Style({ - image: new Icon(/** @type {module:ol/style/Icon~Options} */ ({ + image: new Icon({ color: '#4271AE', crossOrigin: 'anonymous', src: 'data/dot.png' - })) + }) })); madrid.setStyle(new Style({ - image: new Icon(/** @type {module:ol/style/Icon~Options} */ ({ + image: new Icon({ color: [113, 140, 0], crossOrigin: 'anonymous', src: 'data/dot.png' - })) + }) })); diff --git a/examples/icon-negative.js b/examples/icon-negative.js index e123f96352..dfa83db624 100644 --- a/examples/icon-negative.js +++ b/examples/icon-negative.js @@ -11,13 +11,13 @@ import {Icon, Style} from '../src/ol/style.js'; function createStyle(src, img) { return new Style({ - image: new Icon(/** @type {module:ol/style/Icon~Options} */ ({ + image: new Icon({ anchor: [0.5, 0.96], crossOrigin: 'anonymous', src: src, img: img, imgSize: img ? [img.width, img.height] : undefined - })) + }) }); } diff --git a/examples/icon.js b/examples/icon.js index 980ea3b255..857ba37a3b 100644 --- a/examples/icon.js +++ b/examples/icon.js @@ -17,12 +17,12 @@ const iconFeature = new Feature({ }); const iconStyle = new Style({ - image: new Icon(/** @type {module:ol/style/Icon~Options} */ ({ + image: new Icon({ anchor: [0.5, 46], anchorXUnits: 'fraction', anchorYUnits: 'pixels', src: 'data/icon.png' - })) + }) }); iconFeature.setStyle(iconStyle); diff --git a/examples/reprojection.js b/examples/reprojection.js index 990bf33f91..9b83a0e8d7 100644 --- a/examples/reprojection.js +++ b/examples/reprojection.js @@ -109,7 +109,7 @@ fetch(url).then(function(response) { options.projection = 'EPSG:3413'; options.wrapX = false; layers['wmts3413'] = new TileLayer({ - source: new WMTS(/** @type {!module:ol/source/WMTS~Options} */ (options)) + source: new WMTS(options) }); }); diff --git a/examples/wmts-hidpi.js b/examples/wmts-hidpi.js index d9a0566a8b..99766071e0 100644 --- a/examples/wmts-hidpi.js +++ b/examples/wmts-hidpi.js @@ -34,6 +34,6 @@ fetch(capabilitiesUrl).then(function(response) { }); options.tilePixelRatio = tilePixelRatio; map.addLayer(new TileLayer({ - source: new WMTS(/** @type {!module:ol/source/WMTS~Options} */ (options)) + source: new WMTS(options) })); }); diff --git a/examples/wmts-layer-from-capabilities.js b/examples/wmts-layer-from-capabilities.js index 669e7e534f..4faa8953f9 100644 --- a/examples/wmts-layer-from-capabilities.js +++ b/examples/wmts-layer-from-capabilities.js @@ -25,7 +25,7 @@ fetch('data/WMTSCapabilities.xml').then(function(response) { }), new TileLayer({ opacity: 1, - source: new WMTS(/** @type {!module:ol/source/WMTS~Options} */ (options)) + source: new WMTS(options) }) ], target: 'map',