alexrvs/yii2-map

Google Map in your web app

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 1

Open Issues: 1

Type:yii2-extension

dev-master 2017-03-20 09:21 UTC

This package is not auto-updated.

Last update: 2024-05-17 18:51:17 UTC


README

Google Map in your web app

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist alexrvs/yii2-map "*"

or add

"alexrvs/yii2-map": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

use namespace

<?php 
use alexrvs\Map;		

?>

how to use widget: 

```php

<?= 

Map::widget([
    'zoom' => 16,
    'center' => 'Red Square',
    'width' => 700,
    'height' => 400,
    'mapType' => Map::MAP_TYPE_SATELLITE,
]);
?>