coordinatepicker-with-api-key Coordinates picker with google map api key

  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 when initial
            'defaultLongitude' => 105.852, //default longitude when initial
            //'defaultLatitude' => !$model->isNewRecord ? $model->latitude : 51.5287352, //default latitude, loaded from model if in update form
            //'defaultLongitude' => !$model->isNewRecord ? $model->longitude : -0.3817841, //default longitude, loaded from model if in update form
    ));
1 0
1 follower
0 downloads
Yii Version: 1.1.*
License: BSD-3-Clause
Category: Others
Developed by: mrhy
Created on: Jun 7, 2019
Last updated: 4 days ago
Github Repository

Downloads

show all

Related Extensions