Recently I was working on project that has many objects for displaying on a map.
So there was need ta build an interface, for simple coordinate picking for database objects.
After some googling, I have found nice jQuery plugin for this purpose.
So I have made widget for Yii with this jQuery plugin.
Example of usage:
echo $form->textField($model, 'lat'); echo $form->textField($model,'long'); $this->widget('ext.coordinatepicker.CoordinatePicker', array( 'model' => $model, 'latitudeAttribute' => 'lat', 'longitudeAttribute' => 'long', ));
Fork me on bitbucket