简体   繁体   English

如何解决OPEN LAYERS 3地图中的“ za”错误?

[英]How to resolve 'za' error in OPEN LAYERS 3 map?

When I am try to animate the map on the basis pf markers fetching. 当我尝试根据pf标记获取为地图设置动画时。 Till sometime map line animation is working properly but after sometime the line animation stops and when I see the browser's console I see : Cannot get the property 'za' of undefined. 直到有时地图线条动画正常工作,但一段时间后线条动画停止,并且当我看到浏览器的控制台时,我看到:无法获取未定义的属性“ za”。 How to get rid of this. 如何摆脱这一点。 Any help will be appreciated. 任何帮助将不胜感激。 Thanks in advance. 提前致谢。

If you use ol-debug.js this will give you a more informative error, and allow you to step through the library using a browser's developer tools. 如果您使用ol-debug.js这将给您带来更多信息错误,并允许您使用浏览器的开发人员工具逐步浏览该库。

When bug fixing, or developing, I usually have a commented out bit of html to pull in an ol-debug.js cdn as needed, and switch with ol.js : 在进行错误修复或开发时,我通常会注释掉一些html,以便根据需要插入ol-debug.js cdn并使用ol.js切换:

<!--  <script src="https://cdnjs.cloudflare.com/ajax/libs/ol3/3.14.0/ol-debug.js"></script>-->

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

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