简体   繁体   English

Openlayers中缺少ol.animate函数

[英]ol.animate functions missing from Openlayers

I am currently developing an application using openlayers 3, attempting to apply some animation hence the use of ol.animate object, however it is missing evidently by the screenshot attached. 我当前正在使用openlayers 3开发一个应用程序,尝试应用一些动画,因此使用ol.animate对象,但是所附的屏幕快照显然缺少该对象。

ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'pan' of undefined 错误错误:未捕获(承诺):TypeError:无法读取未定义的属性“ pan”

ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'bounce' of undefined 错误错误:未捕获(承诺):TypeError:无法读取未定义的属性“ bounce”

./Package.json - "openlayers": "^4.0.1" ./Package.json- “ openlayers”:“ ^ 4.0.1”

在此处输入图片说明

在此处阅读文档/发行说明: https : //github.com/openlayers/openlayers/releases/tag/v4.0.0删除不赞成使用的方法现在,动画方法位于ol.view对象中,因此位于view.animate()中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM