2017 © Pedro Peláez
 

yii2-extension yii2-google-maps-markers

Google Maps Markers displays a set of user addresses as markers on the map.

image

yii2mod/yii2-google-maps-markers

Google Maps Markers displays a set of user addresses as markers on the map.

  • Saturday, August 26, 2017
  • by disem
  • Repository
  • 4 Watchers
  • 14 Stars
  • 4,145 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 13 Forks
  • 2 Open issues
  • 6 Versions
  • 11 % Grown

The README.md

, (*1)

Google Maps Markers Widget for Yii2


GoogleMaps Widget displays a set of user addresses as markers on the map., (*2)

Latest Stable Version Total Downloads License Build Status, (*3)

Installation

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

php composer.phar require yii2mod/yii2-google-maps-markers "*"

or add, (*6)

"yii2mod/yii2-google-maps-markers": "*"

to the require section of your composer.json., (*7)

Usage

To use GoogleMaps, you need to configure its [[userLocations]] property. For example:, (*8)

echo yii2mod\google\maps\markers\GoogleMaps::widget([
    'userLocations' => [
        [
            'location' => [
                'address' => 'Kharkiv',
                'country' => 'Ukraine',
            ],
            'htmlContent' => '<h1>Kharkiv</h1>',
        ],
        [
            'location' => [
                'city' => 'New York',
                'country' => 'United States',
            ],
            'htmlContent' => '<h1>New York</h1>',
        ],
    ],
]);

Configuration

To configure the Google Maps key or other options like language, version, library, or map options:, (*9)

echo yii2mod\google\maps\markers\GoogleMaps::widget([
    'userLocations' => [...],
    'googleMapsUrlOptions' => [
        'key' => 'this_is_my_key',
        'language' => 'id',
        'version' => '3.1.18',
    ],
    'googleMapsOptions' => [
        'mapTypeId' => 'roadmap',
        'tilt' => 45,
        'zoom' => 5,
    ],
]);

OR via yii params configuration. For example:, (*10)

'params' => [
    'googleMapsUrlOptions' => [
        'key' => 'this_is_my_key',
        'language' => 'id',
        'version' => '3.1.18',
     ],
    'googleMapsOptions' => [
        'mapTypeId' => 'roadmap',
        'tilt' => 45,
        'zoom' => 10,
    ],
],

To get key, please visit page, (*11)

Google Maps Options

You can find them on the options page, (*12)

#### Example

Alt text, (*13)

The Versions

26/08 2017

dev-master

9999999-dev

Google Maps Markers displays a set of user addresses as markers on the map.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Igor Chepurnoy

extension yii2 google maps google maps markers

26/08 2017

1.4

1.4.0.0

Google Maps Markers displays a set of user addresses as markers on the map.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Igor Chepurnoy

extension yii2 google maps google maps markers

01/01 2017

1.3

1.3.0.0

Google Maps Markers displays a set of user addresses as markers on the map.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Igor Chepurnoy

extension yii2 google maps google maps markers

22/11 2016

1.2

1.2.0.0

Google Maps Markers displays a set of user addresses as markers on the map.

  Sources   Download

MIT

The Requires

 

by Igor Chepurnoy

extension yii2

17/11 2016

1.1

1.1.0.0

Google Maps Markers displays a set of user addresses as markers on the map.

  Sources   Download

MIT

The Requires

 

by Igor Chepurnoy

extension yii2

05/08 2015

1.0

1.0.0.0

Google Maps Markers displays a set of user addresses as markers on the map.

  Sources   Download

MIT

by Igor Chepurnoy

extension yii2