heimrichhannot/contao-google-maps-list-bundle

此包已被废弃,不再维护。作者建议使用heimrichhannot/contao-google-maps-bundle包代替。

此包作为heimrichhannot/contao-list-bundle和heimrichhannot/contao-google-maps-bundle之间的桥梁,以将列表渲染为谷歌地图。

2.0.0 2020-10-06 13:36 UTC

This package is auto-updated.

Last update: 2021-10-27 09:47:03 UTC


README

此包已停止开发。其功能已直接集成到google-maps-bundle中。

此包作为heimrichhannot/contao-list-bundleheimrichhannot/contao-google-maps-bundle之间的桥梁,以将列表渲染为谷歌地图。

安装

使用composer安装:composer require heimrichhannot/contao-google-maps-list-bundle并更新您的数据库。

配置

将列表渲染为谷歌地图

  1. 创建一个谷歌地图,就像通常一样。
  2. 创建一个列表配置,就像通常一样,并激活选项“将项目作为地图渲染”。之后选择之前创建的地图。
  3. 将列表类切换到HeimrichHannot\GoogleMapsListBundle\Lists\DefaultList,项目类切换到HeimrichHannot\GoogleMapsListBundle\Item\DefaultItem
  4. 您还可以添加一个包含项目的普通文本列表,作为触发地图上标记(代表之前提到的相同项目)点击事件的链接。
    1. 为此,在列表配置中激活“添加地图控件列表”。
    2. 将列表模板切换到list_google_maps_default.html.twig,将项目模板切换到list_item_google_maps_default.html.twig