From 6e7814817483ccf58e0f0256093453c362980950 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 5 Oct 2017 16:42:45 -0600 Subject: [PATCH 1/4] Use lowercase module identifiers until ol@5 --- transforms/module.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transforms/module.js b/transforms/module.js index 6c71ca7735..8de0944187 100644 --- a/transforms/module.js +++ b/transforms/module.js @@ -57,7 +57,8 @@ function resolve(fromName, toName) { } const back = new Array(fromLength - commonDepth).join('../') || './'; - let relative = back + toParts.slice(commonDepth).join('/'); + // TODO: remove .toLowerCase() after running tasks/filename-case-from-module.js + let relative = back + toParts.slice(commonDepth).join('/').toLowerCase(); if (relative.endsWith('/')) { relative += 'index'; } From c4f460bcc20a5080878ca16af5da76f590e7eeb7 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 6 Oct 2017 09:12:52 -0600 Subject: [PATCH 2/4] Only clear the canvas when needed --- src/ol/renderer/canvas/tilelayer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ol/renderer/canvas/tilelayer.js b/src/ol/renderer/canvas/tilelayer.js index ab7ad60e1d..d8fcd7a898 100644 --- a/src/ol/renderer/canvas/tilelayer.js +++ b/src/ol/renderer/canvas/tilelayer.js @@ -228,7 +228,9 @@ ol.renderer.canvas.TileLayer.prototype.prepareFrame = function(frameState, layer canvas.width = width; canvas.height = height; } else { - context.clearRect(0, 0, width, height); + if (this.renderedExtent_ && !ol.extent.equals(imageExtent, this.renderedExtent_)) { + context.clearRect(0, 0, width, height); + } oversampling = this.oversampling_; } } From 917359107da97711ea33457770805c3fb7cbc6ee Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 6 Oct 2017 09:34:36 -0600 Subject: [PATCH 3/4] Changes for v4.4.1 --- changelog/v4.4.1.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 changelog/v4.4.1.md diff --git a/changelog/v4.4.1.md b/changelog/v4.4.1.md new file mode 100644 index 0000000000..d9f3787e13 --- /dev/null +++ b/changelog/v4.4.1.md @@ -0,0 +1,8 @@ +# 4.4.1 + +The v4.4.1 release includes a fix for the [`ol` package](https://www.npmjs.com/package/ol) and a fix for a tile rendering regression. + +## Fixes + + * [#7323](https://github.com/openlayers/openlayers/pull/7323) - Only clear the canvas when needed ([@tschaub](https://github.com/tschaub)) + * [#7313](https://github.com/openlayers/openlayers/pull/7313) - Use lowercase module identifiers until ol@5 ([@tschaub](https://github.com/tschaub)) From 77892c435f4bb7334a93c34cd57599c574b076b8 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 6 Oct 2017 09:34:54 -0600 Subject: [PATCH 4/4] Update versions for v4.4.1 --- package.json | 2 +- package/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index efd8eae994..48960df307 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openlayers", - "version": "4.4.0", + "version": "4.4.1", "description": "Build tools and sources for developing OpenLayers based mapping applications", "keywords": [ "map", diff --git a/package/package.json b/package/package.json index 47595dc581..a22edee852 100644 --- a/package/package.json +++ b/package/package.json @@ -1,6 +1,6 @@ { "name": "ol", - "version": "4.4.0", + "version": "4.4.1", "description": "OpenLayers as ES2015 modules", "main": "index.js", "module": "index.js",