PHPackages                             katzz0/yii2-yandex-maps - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. katzz0/yii2-yandex-maps

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

katzz0/yii2-yandex-maps
=======================

Yii 2 yandex map module

493311[1 issues](https://github.com/katzz0/yii2-yandex-maps/issues)PHP

Since Jul 2Pushed 10y ago2 watchersCompare

[ Source](https://github.com/katzz0/yii2-yandex-maps)[ Packagist](https://packagist.org/packages/katzz0/yii2-yandex-maps)[ RSS](/packages/katzz0-yii2-yandex-maps/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Yandex Maps Components
===========================

[](#yii2-yandex-maps-components)

---

This repo is the fork of the [yii2-yandex-maps](https://github.com/Mirocow/yii2-yandex-maps "yii2-yandex-maps")by [Mirocow](https://github.com/Mirocow "Mirocow")

---

Components
----------

[](#components)

- [`katzz0\yandexmaps\Api`](https://github.com/katzz0/yii2-yandex-maps#katzz0yandexmapsapi)
- [`katzz0\yandexmaps\Map`](https://github.com/katzz0/yii2-yandex-maps#katzz0yandexmapsmap)
- [`katzz0\yandexmaps\Canvas`](https://github.com/katzz0/yii2-yandex-maps#katzz0yandexmapscanvas)
- `katzz0\yandexmaps\JavaScript`
- `katzz0\yandexmaps\Placemark`
- `katzz0\yandexmaps\Polyline`
- TODO: [Geo XML](http://api.yandex.ru/maps/doc/jsapi/2.1/dg/concepts/geoxml.xml)
- TODO: [GeoObject](http://api.yandex.ru/maps/doc/jsapi/2.1/ref/reference/GeoObject.xml)
- TODO: [Balloon](http://api.yandex.ru/maps/doc/jsapi/2.1/ref/reference/Balloon.xml)
- TODO: [Hint](http://api.yandex.ru/maps/doc/jsapi/2.1/ref/reference/Hint.xml)
- TODO: [Clusterer](http://api.yandex.ru/maps/doc/jsapi/2.1/ref/reference/Clusterer.xml)

### katzz0\\yandexmaps\\Api

[](#katzz0yandexmapsapi)

Application components which register scripts.

**Usage**

Attach component to application (e.g. edit config/main.php):

```
'components' => [
	'yandexMapsApi' => [
		'class' => 'mirocow\yandexmaps\Api',
	]
 ],
```

### katzz0\\yandexmaps\\Map

[](#katzz0yandexmapsmap)

Map instance.

**Usage**

```
use katzz0\yandexmaps\Map;

$map = new Map('yandex_map', [
        'center' => [55.7372, 37.6066],
        'zoom' => 10,
        // Enable zoom with mouse scroll
        'behaviors' => array('default', 'scrollZoom'),
        'type' => "yandex#map",
    ],
    [
        // Permit zoom only fro 9 to 11
        'minZoom' => 9,
        'maxZoom' => 11,
        'controls' => [
          "new ymaps.control.SmallZoomControl()",
          "new ymaps.control.TypeSelector(['yandex#map', 'yandex#satellite'])",
        ],
    ]
);
```

### katzz0\\yandexmaps\\Canvas

[](#katzz0yandexmapscanvas)

This is widget which render html tag for your map.

**Usage**

Simple add widget to view:

```
use katzz0\yandexmaps\Canvas as YandexMaps;
