openlayers,使用 YUI 进行错误压缩
当我尝试使用 YUI 2.4.2(默认版本,而不是自定义构建)压缩 OpenLayers.js 2.10 时,我遇到了问题。即使我使用位于此处的 js 托管版本,也已经从 OL 站点下载了新包: OpenLayers Hosted
问题是除了加载地图之外几乎所有功能都被破坏了(我使用谷歌作为地图提供商) ,而在过去(OL 2.8)我有成功的尝试。
那么有人有解决方案吗?或者也许愿意分享已经成功的压缩版本?
谢谢
I have an issue when i tried to compress OpenLayers.js 2.10 with YUI 2.4.2 (the default one, not custom build). Already download the new package from OL site even i use hosted version of their js located here:
OpenLayers Hosted
The problem was almost every feature broken except for loading map (i use google as map provider), while in past (OL 2.8) i have successful attempt.
So anyone has solution for this? Or maybe willing to share the already successful compressed version?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://comments.gmane.org/gmane.comp.gis。 openlayers.user/17193
FTA:
如果做不到这一点,问题可能是单文件构建与多文件构建。请参阅此处: http://docs.openlayers.org/library/deploying .html#single-file-build
http://comments.gmane.org/gmane.comp.gis.openlayers.user/17193
FTA:
Failing that, the problem might be that single vs. multi file build. See here: http://docs.openlayers.org/library/deploying.html#single-file-build