[英]Openlayers, when panning (holding click), features don't render
https://openlayers.org/en/latest/examples/feature-move-animation.html https://openlayers.org/en/latest/examples/feature-move-animation.html
If you pan in this example away from the features, then you pan back but you don't release the click, you hold it, the feature isn't visible unless you release the click.如果您在此示例中平移远离要素,然后向后平移但您没有释放点击,而是按住它,除非您释放点击,否则要素不可见。
Why does that happens and how to fix that?为什么会发生这种情况以及如何解决?
Solution:解决方案:
https://openlayers.org/en/latest/apidoc/module-ol_layer_Vector-VectorLayer.html https://openlayers.org/en/latest/apidoc/module-ol_layer_Vector-VectorLayer.html
layer options - updateWhileInteracting: true图层选项 - updateWhileInteracting: true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.