Openlayer Zoomify 依赖项

发布于 2024-10-21 09:21:17 字数 98 浏览 4 评论 0原文

我需要一些关于 Zoomify 的帮助。 我想显示大图像,一切正常,但我不想包含我需要的所有 openlayer Javascript 文件。

一切顺利, 罗伯特

I need a little help about the zoomify.
I want to display big images, everything is working, but I don't want to include all openlayer Javascript files which Javascript do I need there.

All the best,
Robert

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

秋日私语 2024-10-28 09:21:17

OpenLayers 有特殊的工具来帮助我们进行部署。您可以使用它们构建一个个人 OpenLayers 文件,该文件仅包含您需要的内容。

链接位于:http://docs.openlayers.org/library/deploying.html(阅读“自定义构建配置文件”部分)

OpenLayers has special tools to help us with our deployments. You can use them to build a personal OpenLayers file that has only and exactly what you need.

The link is here: http://docs.openlayers.org/library/deploying.html (read section 'Custom Build Profiles')

泛滥成性 2024-10-28 09:21:17

下载openlayer后,在build目录中你会发现不同的配置文件。你可以自己做。例如,为了仅使用 Zoomify,这个应该可以工作。

[first]

[last]

[include]
OpenLayers/Map.js
OpenLayers/Layer/Zoomify.js
OpenLayers/Layer/Markers.js
OpenLayers/Layer/Boxes.js
OpenLayers/Marker/Box.js
OpenLayers/Control/Navigation.js
OpenLayers/Control/Zoom.js
OpenLayers/Protocol/HTTP.js
OpenLayers/Strategy/Fixed.js
OpenLayers/Strategy/BBOX.js
OpenLayers/StyleMap.js
OpenLayers/Rule.js
OpenLayers/Filter/Comparison.js
OpenLayers/Filter/Logical.js
[exclude]

使用 python 构建自定义 openlayer.js

python build.py mycustomconfig.cfg

After downloading openlayer, in the directory build you will find different config file. You can make your own. For example in order to use only zoomify, this one should work.

[first]

[last]

[include]
OpenLayers/Map.js
OpenLayers/Layer/Zoomify.js
OpenLayers/Layer/Markers.js
OpenLayers/Layer/Boxes.js
OpenLayers/Marker/Box.js
OpenLayers/Control/Navigation.js
OpenLayers/Control/Zoom.js
OpenLayers/Protocol/HTTP.js
OpenLayers/Strategy/Fixed.js
OpenLayers/Strategy/BBOX.js
OpenLayers/StyleMap.js
OpenLayers/Rule.js
OpenLayers/Filter/Comparison.js
OpenLayers/Filter/Logical.js
[exclude]

Build the custom openlayer.js with python

python build.py mycustomconfig.cfg
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文