From c546751989d95cc32cac206fa45cc8ad13476897 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Tue, 2 Feb 2021 12:50:12 +0000 Subject: [PATCH 1/3] Remove obsolete ol-mapbox-style polyfills --- examples/vector-tiles-4326.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/vector-tiles-4326.html b/examples/vector-tiles-4326.html index 8599afee6b..fb93133566 100644 --- a/examples/vector-tiles-4326.html +++ b/examples/vector-tiles-4326.html @@ -6,8 +6,6 @@ docs: > Example showing vector tiles in EPSG:4326 (styled using `ol-mapbox-style`) loaded from maptiler.com. **Note**: Make sure to get your own API key at https://www.maptiler.com/cloud/ when using this example. No map will be visible when the API key has expired. tags: "vector tiles, epsg4326, mapbox style, ol-mapbox-style, maptiler" -resources: - - https://cdn.polyfill.io/v2/polyfill.min.js?features=String.prototype.startsWith,Object.assign" cloak: - key: get_your_own_D6rA4zTHduk6KOKTXzGB value: Get your own API key at https://www.maptiler.com/cloud/ From 63612bd2f28c45ff268584746ab614ebd1dabfb1 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Tue, 2 Feb 2021 12:55:36 +0000 Subject: [PATCH 2/3] Add Number.isInteger polyfill to displayed html --- examples/templates/example.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/templates/example.html b/examples/templates/example.html index 4562431e01..b6f7598625 100644 --- a/examples/templates/example.html +++ b/examples/templates/example.html @@ -192,9 +192,9 @@ <meta charset="UTF-8"> <title>{{ title }}</title> <!-- Pointer events polyfill for old browsers, see https://caniuse.com/#feat=pointer --> - <script src="https://unpkg.com/elm-pep"></script>{{#if extraHead.remote}} + <script src="https://unpkg.com/elm-pep"></script> <!-- The line below is only needed for old environments like Internet Explorer and Android 4.x --> - <script src="https://cdn.polyfill.io/v3/polyfill.min.js?features=fetch,requestAnimationFrame,Element.prototype.classList,URL,TextDecoder"></script> + <script src="https://cdn.polyfill.io/v3/polyfill.min.js?features=fetch,requestAnimationFrame,Element.prototype.classList,URL,TextDecoder,Number.isInteger"></script>{{#if extraHead.remote}} {{ indent extraHead.remote spaces=4 }}{{/if}} <style> .map { From c324baf07426dbf20f30ec9319a7e4b2f9c4f4cb Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Tue, 2 Feb 2021 13:01:18 +0000 Subject: [PATCH 3/3] Add Number.isInteger to polyfills --- doc/tutorials/background.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorials/background.md b/doc/tutorials/background.md index 61896c758a..cf0d96a4bf 100644 --- a/doc/tutorials/background.md +++ b/doc/tutorials/background.md @@ -19,7 +19,7 @@ OpenLayers is available as [`ol` npm package](https://npmjs.com/package/ol), whi By default, OpenLayers uses a performance optimized Canvas renderer. -OpenLayers runs on all modern browsers that support [HTML5](https://html.spec.whatwg.org/multipage/) and [ECMAScript 5](http://www.ecma-international.org/ecma-262/5.1/). This includes Chrome, Firefox, Safari and Edge. For older browsers and platforms like Internet Explorer (down to version 9) and Android 4.x, [polyfills](http://polyfill.io), the application bundle needs to be transpiled (e.g. using [Babel](https://babeljs.io)) and bundled with polyfills for `fetch`, `requestAnimationFrame`, `Element.prototype.classList`, `URL` and `TextDecoder`. +OpenLayers runs on all modern browsers that support [HTML5](https://html.spec.whatwg.org/multipage/) and [ECMAScript 5](http://www.ecma-international.org/ecma-262/5.1/). This includes Chrome, Firefox, Safari and Edge. For older browsers and platforms like Internet Explorer (down to version 9) and Android 4.x, [polyfills](http://polyfill.io), the application bundle needs to be transpiled (e.g. using [Babel](https://babeljs.io)) and bundled with polyfills for `fetch`, `requestAnimationFrame`, `Element.prototype.classList`, `URL`, `TextDecoder` and `Number.isInteger`. The library is intended for use on both desktop/laptop and mobile devices, and supports pointer and touch interactions.