From 301b45cb7c2b5662deed1ebcded2c255fcc81cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20Brudeskar=20Vik=C3=A5s?= Date: Tue, 26 Feb 2019 16:13:06 +0100 Subject: [PATCH 1/2] Update faq.md Fixed typos in description, and tried to make the text more readable. --- doc/faq.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/faq.md b/doc/faq.md index f7d0d91e1d..230c3f69d8 100644 --- a/doc/faq.md +++ b/doc/faq.md @@ -372,12 +372,10 @@ const vectorLayer = new VectorLayer({ The recommended value is the size of the largest symbol, line width or label. -## Why is zooming or clicking off, inaccurate? +## Why is zooming or clicking in the map off/inaccurate? -OpenLayers does not update the map when the container element is resized. This cas be caused by progressive updates -to CSS styles or manually resizing the map manually. When that happens, any interaction will become -inaccurate: the map would zoom in and out not centered on the pointer and any clicking will be -off, making it hard to select the desired featyre, etc. +OpenLayers does not update the map when the container element is resized. This can be caused by progressive updates +to CSS styles or manually resizing the map manually. When that happens, any interaction will become inaccurate: the map would zoom in and out, and end up not being centered on the pointer. This makes it hard to do certain interactions, e.g. selecting the desired feature. There is currently no built-in way to react to element's size changes, as [Resize Observer API](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver) is only implemented in Chrome. From 6b1f9e681cd4ff9468d793a26a11a8ab22114a8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20Brudeskar=20Vik=C3=A5s?= Date: Wed, 27 Feb 2019 11:30:55 +0100 Subject: [PATCH 2/2] Update faq.md --- doc/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/faq.md b/doc/faq.md index 230c3f69d8..908e14d54e 100644 --- a/doc/faq.md +++ b/doc/faq.md @@ -375,7 +375,7 @@ The recommended value is the size of the largest symbol, line width or label. ## Why is zooming or clicking in the map off/inaccurate? OpenLayers does not update the map when the container element is resized. This can be caused by progressive updates -to CSS styles or manually resizing the map manually. When that happens, any interaction will become inaccurate: the map would zoom in and out, and end up not being centered on the pointer. This makes it hard to do certain interactions, e.g. selecting the desired feature. +to CSS styles or manually resizing the map. When that happens, any interaction will become inaccurate: the map would zoom in and out, and end up not being centered on the pointer. This makes it hard to do certain interactions, e.g. selecting the desired feature. There is currently no built-in way to react to element's size changes, as [Resize Observer API](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver) is only implemented in Chrome.