Quantcast
Channel: Live News for Yii Framework
Viewing all articles
Browse latest Browse all 2940

[extension] coordinatepicker-with-api-key

$
0
0
  1. Requirements
  2. Installation
  3. Usage

Coordinates picker with google map api key

Requirements

Yii Ver. 1.1

Installation

Download or clone this repository and paste in /protected/extensions/coconutPicker

Usage

    $this->widget('ext..coconutPicker.CoconutPicker', array(
            'model' => $model,
            'apiKey' => 'Your google map api key',
            'latitudeAttribute' => 'latitude', //latitude field to pass value from picker
            'longitudeAttribute' => 'longitude', //latitude field to pass value from picker
            //optional settings
            'zoomLevel' => 12, //default zoom level on map
            'defaultLatitude' => 21.0227, //default latitude, should load fromm model if in update form
            'defaultLongitude' => 105.852, //default longitude, should load from model if in update form
    ));

Viewing all articles
Browse latest Browse all 2940

Trending Articles