承接 aminkt/yii2-map-location-picker 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

aminkt/yii2-map-location-picker

Composer 安装命令:

composer require aminkt/yii2-map-location-picker

包简介

A widget based on https://innostudio.de/fileuploader to create a file input to upload files for yii2 framework

README 文档

README

How to install this module:

Step1: Add flowing line to require part of composer.json :

"aminkt/yii2-map-location-picker": "@dev",

And after that run bellow command in your composer :

Composer update aminkt/yii2-map-location-picker

Step2: Add flowing lines in your application view file:

echo LocationInput::widget([
    'apiKey' => 'Your api key',
    'name' => 'field name',
    'id' => 'field id',
    'options' => [
        // Input options
    ],
    'mapOptions' => [
        'center' => [
            'lat' => 37.4419,
            'lng' => -122.1419,
        ],
        'zoom' => 13,
        // Other google map options.
    ],
    'markerOptions' => [
        'draggable'=> true,
        // Other google map maker options.
    ],
    'disableLocationPicker' => 0, // Or 1 to define input become enabled or not to use just map view.
    'width' => '100%', // Map container width
    'height' => '200px', // Map container height
    'containerOptions' => [
        'class' => 'map-container' // Map container html options.
    ]
]);

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-03-09