简体   繁体   中英

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.

ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'pan' of undefined

ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'bounce' of undefined

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

在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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