plone的单叶图集成
collective.js.leaflet的Python项目详细描述
Description
用传单地图的力量丰富你的plone站点。此包的传单版本为0.7.3。
https://github.com/Leaflet/Leaflet
这个插件注册了基于传单的javascript和css资源,并且 可选一些有趣的传单插件。通过安装这个插件, 传单地图资源自动集成。激活一些 插件,您必须将这些资源包之一添加到registry.xml中 注册:
- leaflet.markercluster - https://github.com/Leaflet/Leaflet.markercluster
- leaflet.fullscreen - https://github.com/brunob/leaflet.fullscreen
- leaflet.zoomfs - https://github.com/elidupuis/leaflet.zoomfs
- leaflet.geosearch - https://github.com/smeijer/L.GeoSearch
- leaflet.geosearch.openstreetmap
- leaflet.geosearch.bing
- leaflet.geosearch.esri
- leaflet.geosearch.google
- leaflet.geosearch.nokia
- leaflet.draw - https://github.com/Leaflet/Leaflet.draw
- leaflet.stamen - http://maps.stamen.com/
- leaflet.locatecontrol - https://github.com/domoritz/leaflet-locatecontrol
- leaflet.MiniMap - https://github.com/Norkart/Leaflet-MiniMap
- leaflet.providers - https://github.com/leaflet-extras/leaflet-providers leaflet.awesome-markers - https://github.com/lvoogdt/Leaflet.awesome-markers
因为这个插件只提供传单资源,所以您最终提供了一些 地图的html标记并为 传单地图工作。
您有一个示例视图,位于/@单张地图视图。
你可以在这里观看演示视频:Youtube DEMO。
TODO
- 编写适当的测试。
Credits
Contributors
- 埃里克·布雷哈尔特eric.brehault@makina-corpus.com>;
- 约翰内斯拉格姆dev@programmatic.pro>;
collective.js.leaflet Installation
要将collective.js.fluel安装到全局python环境(或workingenv)中, 使用传统的zope 2实例,您可以这样做:
When you’re reading this you have probably already run
``easy_install collective.js.leaflet``.Find out how to install setuptools (and EasyInstall) here: http://peak.telecommunity.com/DevCenter/EasyInstall
If you are using Zope 2.9 (not 2.10), get pythonproducts and install it via:
python setup.py install --home /path/to/instanceinto your Zope instance.
Create a file called ^{tt1}$ in the ^{tt2}$ directory. The file should only contain this:
<include package="collective.js.leaflet" />
或者,如果您使用的是zc.buildout和plone.recipe.zope2instance 配方管理您的项目,您可以这样做:
Add ^{tt3}$ to the list of eggs to install, e.g.:
[buildout] ... eggs = ... collective.js.leafletTell the plone.recipe.zope2instance recipe to install a ZCML slug:
[instance] recipe = plone.recipe.zope2instance ... zcml = collective.js.leafletRe-run buildout, e.g. with:
$ ./bin/buildout
如果要显式地包含包,可以跳过zcml slug 从另一个包的configure.zcml文件。
Changelog
1.0.0 (2018-10-10)
- 迁移到第5层 [安培数]
0.7.1 (2015-06-25)
- 将所有javascript注册设置为cachable和cookable true。 [时间]
- 删除传单.ie.css,因为它已从传单中删除。 [时间]
0.7 (2014-08-26)
- 更新此软件包的传单版本(现在为0.7.3)。 [b按钮]
0.6 (2014-04-30)
- Laflet+插件从2013-06-24更新。 [时间]
0.5 (2013-06-11)
- 添加一些有趣的插件并引入bundle概念来启用 单个插件。 [时间]
- 新的传单资源结构:直接从github获取源代码并调整 使用新子目录的资源目录。这个变化是倒退的 兼容的。 [时间]
- PEP8清理。 [时间]
0.4.4.1 (2012-09-24)
- 修复css图像url[ebrehault]
0.4.4 (2012-09-13)
- 升级至传单0.4.4[ebrehault]
- 注:我们现在使用传单库版本作为鸡蛋版本。
0.3.3 (2012-09-03)
- 固定蛋[ebrehault]
0.3.2 (2012-08-02)
- 升级至传单0.4[ebrehault]
0.3.1.5 (unreleased)
- 什么都没变。
0.3.1.4 (2012-02-24)
- 修复后台URL
0.3.1.3 (2012-02-24)
- 修正:只在ie[kiorky]上启用ie css
0.3.1.2 (2012-02-24)
- 修复plone<;41[kiorky]
0.3.1 (2012-02-23)
- 初始版本[Kiorky]