mmedojevicbg / yii2-geopicker
Geolocation picker widget for Yii2 based on Google Maps
Installs: 786
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-12-10 21:46:17 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' ])