PHPackages                             bscheshirwork/yii2-ymaps-widget - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. bscheshirwork/yii2-ymaps-widget

ActiveYii2-extension[Image &amp; Media](/categories/media)

bscheshirwork/yii2-ymaps-widget
===============================

Widget for include yandex maps

054PHP

Since Sep 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/bscheshirwork/yii2-ymaps-widget)[ Packagist](https://packagist.org/packages/bscheshirwork/yii2-ymaps-widget)[ RSS](/packages/bscheshirwork-yii2-ymaps-widget/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Yandex map widget for yii2
==========================

[](#yandex-map-widget-for-yii2)

This is widget for representation yandex maps from yii2 widget.

Installation
------------

[](#installation)

Add

```
    "bscheshirwork/yii2-ymaps-widget": "*@dev",

```

into `require` section of you `composer.json` file.

Configure (optional)
--------------------

[](#configure-optional)

You can change default values of `Connector` for customize [connection to yandex map API](https://tech.yandex.ru/maps/doc/jsapi/2.1/dg/concepts/load-docpage/)

First: add into config of application the `ymaps` components:

```

```

Usage
-----

[](#usage)

### Simple

[](#simple)

Inject canvas for map.

In view: Inject code for generate map (optional, default).

```

```

The

 will be generated; The yandex maps will be initialized and assign to this canvas.Tips: `mapState` and `mapOptions` can accept `json` string or php `array`

### Advanced usage

[](#advanced-usage)

Advanced: Inject js vars for external js file.

In view:

```
