Collective.geo dexterity integration
collective.geo.behaviour的Python项目详细描述
Introduction
此包提供将地理信息分配给 plone和does中基于灵活性的(plone.app.dexterity)内容类型 所以使用collective.geo.geographer和collective.geo.mapwidget。
通过将行为collective geo maps应用于灵巧的内容类型,可以 坐标字段在创建或编辑所述内容时变为可用。
这允许用户通过 地理编码,在 映射,或以众所周知的文本(WKT)格式手动输入详细信息。
collective.geo.behavior还提供collective geo styles行为。 通过这种行为,可以定制特性的样式 将显示在每个内容类型的地图上。
地理信息可以被$ 一套包裹。例如,可以使用collective.geo.kml在集合或文件夹的地图上显示坐标。
找到虫子了吗?请使用issue tracker。
Installation
此加载项可以安装有任何其他加载项,请遵循官方 documentation。
About the Maps behaviour
该行为将coordinates字段添加到内容类型,并使用 collective.z3cform.mapwidget小部件,以便允许用户 操纵地理信息。
该行为有效地充当一个代理,将数据加载并保存到 通过查询 collective.geo.geographer.interfaces.IGeoreferenced适配器和 collective.geo.geographer.interfaces.IWriteGeoreferenced分别用于 给定的上下文。
这意味着在对内容对象进行编辑时所做的更改和更改 在坐标选项卡中生成的数据都在修改完全相同的数据。
Usage
一旦您的类型配置应用了collective geo maps行为,那么所述类型的内容对象将被标记为collective.geo.geographer的georeferenceable。 这是通过marker接口实现的 collective.geo.geographer.interfaces.IGeoreferenceable。
Through the web
如果您正在通过基于web的 界面,然后继续编辑灵活内容中的内容类型 类型控制面板。在行为选项卡下,您将找到 Collective Geo Mapsbehavior–选择此选项并保存内容类型。
同样地,您可以选择collective geo styles来帮助 另一种行为。
在添加或编辑内容类型的对象时,您将看到 相应地。
Generic Setup (file system)
如果已经创建了文件系统灵巧类型配置,则需要 将相关接口指定为行为:
collective.geo.behaviour.interfaces.ICoordinates collective.geo.behaviour.interfaces.IGeoFeatureStyle
以及导入或重新导入类型配置。例如,类型 配置在${product_dir}/profiles/default/types/my.datatype.xml 会是这样的:
<?xml version="1.0"?> <object name="my.datatype" meta_type="Dexterity FTI" i18n:domain="tdh.metadata" xmlns:i18n="http://xml.zope.org/namespaces/i18n"> ... <property name="behaviors"> <element value="collective.geo.behaviour.interfaces.ICoordinates" /> <element value="collective.geo.behaviour.interfaces.IGeoFeatureStyle" /> </property> ... </object>
Changelog
1.2 (2015-05-02)
- 更新翻译 [GBorelli]
- 增加了法语翻译 [蒂亚兹马]
1.1 (2014-02-26)
- 将robot测试移动到collective.geo.bundle并添加灵活性测试 [GBorelli]
- 添加集体地理样式行为以管理要素的样式 [GBorelli]
- 自定义样式选项卡的修复程序无法正常工作 [博格丹吉]
- 解决问题https://github.com/collective/collective.geo.geographer/issues/5 [博格丹吉]
- 增加德语翻译 [资源]
1.0 (2013-10-29)
- 更改包布局 [GBorelli]
- 移除对grok的依赖 [健爱军]
1.0b2 (2013-06-02)
- 什么都没变。
1.0b1 (2013-06-02)
- 添加install pro文件 [GBorelli]
- 已从rwproperty中移除依赖项 [GBorelli]
- 打开行为上下文,当灵巧对象时引发错误 是地理参照系 [GBorelli]
- 删除了形状依赖项,添加了pygeoif [GBorelli]
- 增加了对西班牙语本地化的支持 [麦加瓜]
- 增加了国际化方面的改进 [麦加瓜]