Update faq.md
Fixed typos in description, and tried to make the text more readable.
This commit is contained in:
committed by
GitHub
parent
3aa93014c0
commit
301b45cb7c
+3
-5
@@ -372,12 +372,10 @@ const vectorLayer = new VectorLayer({
|
|||||||
|
|
||||||
The recommended value is the size of the largest symbol, line width or label.
|
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
|
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
|
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.
|
||||||
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.
|
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user