mmedojevicbg/yii2-geopicker

Geolocation picker widget for Yii2 based on Google Maps

Installs: 693

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

dev-master 2016-06-27 11:29 UTC

This package is auto-updated.

Last update: 2024-04-10 20:32:55 UTC


README

This is a form widget which displays Google map and stores data as latitude/longitude pair.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist mmedojevicbg/yii2-geopicker "dev-master"

or add

"mmedojevicbg/yii2-geopicker": "dev-master"

to the require section of your composer.json file.

Usage

$form->field($model, 'location1')->widget(mmedojevicbg\GeoPicker\GeoPicker::className(), [
	'apiKey' => 'YOUR_API_KEY'
])