donfelice / polygonfieldtypebundle
多边形字段类型包是一个为 eZ Platform 提供的字段类型扩展包,用于管理和存储地理信息多边形(以 geojson 格式),以便与 mapbox 协同使用。
dev-master
2018-01-19 16:56 UTC
Requires
- php: ^7.1
- ezsystems/ezplatform-admin-ui: ^1.0@dev
- ezsystems/ezplatform-admin-ui-assets: ^1.0@dev
- ezsystems/ezplatform-admin-ui-modules: ^1.0@dev
- ezsystems/ezpublish-kernel: ^7.0@dev
This package is not auto-updated.
Last update: 2024-09-20 23:03:38 UTC
README
为 eZ Platform 开发的多边形字段类型包旨在简化向 mapbox 地图添加和管理多边形(以 geojson 格式)。要查看一个实时示例,请访问 http://arealguiden.no/eng/Stavanger-region/Forus。
安装
使用 Composer
从您的网站根目录运行以下命令以安装多边形字段类型包
$ composer require donfelice/PolygonFieldTypeBundle
激活包
在 app/AppKernel.php 文件中,通过将其添加到 registerBundles 方法中的 $bundles 数组来激活包,与其他所需包一起
public function registerBundles() { ... $bundles[] = new Donfelice\PolygonFieldTypeBundle\DonfelicePolygonFieldTypeBundle(); return $bundles; }
Assetic 配置
您需要将其添加到 app/config/config.yml 中的 Assetic 配置中,与 EzPlatformAdminUiBundle 以及已配置的所有其他包一起
assetic:
bundles: [EzPlatformAdminUiBundle, DonfelicePolygonFieldTypeBundle]