This extension let you pick and search location City, Country and coordinates on map.
Requirements ¶
(Yii 1.1 or above) and you must get your own map key using Google API Console: https://code.google.com/apis/console
Usage ¶
<?php
Yii::import('ext.LocationPicker.Location');
$model = new Location();
$this->widget ( 'ext.LocationPicker.LocationWidget',
array (
'model' => $model,
'map_key' => 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
));
?>
Nice Demo
I like this extension demo
add some feture
Hi
Thank you I suggest for you to add current city related to visitor ip .
will be good add .
@samilo
Thanks , i'll do that.
issue in div map wrapper
Nice and very useful extension.
But i had a problem using the extension inside a div of mine: a custom button called after map was rendering outside the div.
I corrected the problem replacing line 84
<div id="gmap" class="map_canvas" />
for
<div id="gmap" class="map_canvas">
because the
at line 107 was double closing same div (open and closed at line 84) so this extra closing tag was closing my div.
Thansk @Fábio Felicidade
Thank you so much. I shall correct this in next release.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.