定制 igor-rinkovec/map-form-type-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

igor-rinkovec/map-form-type-bundle

Composer 安装命令:

composer require igor-rinkovec/map-form-type-bundle

包简介

Generic Map FormType for Symfony 3

README 文档

README

Generic Map FormType for Symfony 3 and Sonata Project.

Set latitude, longitude and any other value from Nominatim on a form using Leaflet. Supports the configuration of a fallback layer, base layers and overlay layers. When a pin is dragged or an address is filled in, the fields are updated.

License: MIT

Branch Travis
master Build Status
develop Build Status

Installation

1) Install Prerequisites

Make sure bootstrap styles and scripts are included.

Note: when using bootstrap v4, make sure glyphicons are included too.

2) Install the Bundle

Install the bundle using composer:

composer require curious-inc/map-form-type-bundle

3) Enable the Bundle

Register the bundle in app/AppKernel.php to enable it:

// app/AppKernel.php
 
// ...
class AppKernel extends Kernel
{
    // ...
 
    public function registerBundles()
    {
        $bundles = [
            // ...
            new CuriousInc\MapFormTypeBundle\CuriousIncMapFormTypeBundle(),
        ];
 
        // ...
    }
}

4) Configure the Bundle

Add the following configuration to app/config/config.yml and change it to needs or wishes accordingly:

curious_inc_map_form_type: ~

5) Configure the MapType template

Add the MapType template to app/config/config.yml under twig, like so:

# Twig Configuration
twig:
    form_themes:
        - CuriousIncMapFormTypeBundle:Form:fields.html.twig

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固