Update faq.md

Fixed typos in description, and tried to make the text more readable.
This commit is contained in:
Lasse Brudeskar Vikås
2019-02-26 16:13:06 +01:00
committed by GitHub
parent 3aa93014c0
commit 301b45cb7c

View File

@@ -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.