mmedojevicbg/yii2-geopicker

Geolocation picker widget for Yii2 based on Google Maps

Installs: 60

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

dev-master 2016-06-27 11:29 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'
])