rgmappicker This is Yii extension for GMap latitude and longtitude picker as form component.

RGmapPicker

  1. Requirement
  2. Configuration
  3. How to

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.

0 0
2 followers
0 downloads
Yii Version: Unknown
License: MIT
Category: User Interface
Developed by: TheBee
Created on: Feb 24, 2014
Last updated: 10 years ago

Related Extensions