org_heigl/geolocation
Composer 安装命令:
composer require org_heigl/geolocation
包简介
Provides a form-element for locating a spot on the earth and providing Latitude/Longitude-values
README 文档
README
Geolocation-FormElement
This module provides a form-element for Latitude/Longitude-values.
This element adds a map into your form where you can select any location on earth by simply clicking onto it on a map. The form-element is hidden but without JS it is still displayed so that you still can insert Latitude-Longitude values like so:
50.1234,8.1234
Later on this element will provides a search form so you can search for adresses.
Installation
The module is best installed using composer
composer require org_heigl/geolocation
Prerequisites
-
Add
Org_Heigl\Geolocationto the list of your enabled modules.return [ 'modules' => [ … 'Org_Heigl\Contact', … ] ];
-
The content of the
public-folder needs to be available to the public. When you use the AssetManager-Module that is already taken care of. -
This module also needs a working jQuery available. You will have to take care about that yourself!
Usage
After installation you should be able to add a form-element Geolocation to your forms right away
like the following example:
$form = new Zend\Form(); $form->addElement('geolocation');
统计信息
- 总下载量: 930
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-07-31