RGmapPicker ¶
This is Yii extension for GMap latitude and longtitude picker as form component, this extension is based on JQuery GMap Longtitude and Latitude Picker by Richard Dancsi you can see live demo here.
Requirement ¶
- jQuery Javascript Framework
Configuration ¶
- Copy all files to
`protected/extensions/RGmapPicker`
How to ¶
Add GMap Picker to form ¶
Inside your `<form></form>` tag add this php code
$this->widget('ext.RGmapPicker.RGmapPicker',
array(
'title' => 'Location',
'element_id' => 'GMapLocation',
'map_width' => 670,
'map_height' => 300,
'map_latitude' => '-6.2', # Your default position
'map_longtitude' => '106', # Your default position
'map_location_name' => 'Default position name',
)
);
See Github for any updates and more informations.
User Contributed Notes
Leave a comment
If you have any questions, please ask in the forum instead.
Join the conversation to share a note.