Yii2 seznammap extension for easy mapy.seznam integration.

The preferred way to install this extension is through composer.

$ composer require braunmar/yii2-seznammap

Or add:

"braunmar/yii2-seznammap": "*"

To the require section of your composer.json file. Then rune:

$ composer update
  • cover:boolean Use cover (overlay with arrow) which react on click and slide down. Default value istrue.
  • iconClose:string Icon class on close (slide up) cover. It used only if cover set to true. Default is fa fa-angle-up
  • iconOpen:string Icon class on open (slide down) cover. It used only if cover set to true. Defailt is fa fa-angle-down
  • options:array HTML options for element.
  • scriptApi:string Loader script. Default value is //api.mapy.cz/loader.js
  • scriptLoad:string Script which run on document ready. Default value is Loader.load();.
use braunmar\yii\seznammap\SeznamMap;
// basic usage, with default values
echo SeznamMap::widget();

echo SeznamMap::widget([
    'cover' => false,
    'iconOpen' => 'fa fa-angle-down',
    'iconClose' => 'fa fa-angle-up',
    'options' => [
        'class' => 'my-map',
    ],
    // ...
]);

Yii2-seznammap is under MIT licence. See the LICENSE for details.