alexrvs / yii2-map
Google Map in your web app
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 1
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-04-04 23:09:28 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, ]); ?>