[英]can we animate the view while updating padding in openlayers 6.5?
I am trying to update padding or View while the side menu is open or close on my website.我正在尝试在我的网站上打开或关闭侧边菜单时更新填充或视图。 but when I update the padding map also updates its position.
但是当我更新填充 map 时,它也会更新它的 position。 I want to animate the map view while updating the padding of the view.
我想在更新视图的填充时为 map 视图设置动画。
i am using following code to update padding:我正在使用以下代码来更新填充:
view.padding = [50, 50, 50, 150]
or或者
view.padding = [50, 50, 50, 50]
this is an issue with the current release(6.5.0) and it will be fixed in the next version.这是当前版本(6.5.0)的一个问题,它将在下一个版本中修复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.