Yii2 seznammap
Yii2 seznammap extension for easy mapy.seznam integration.
Installation
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
Options
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 ifcover
set to true. Default isfa fa-angle-up
iconOpen
:string Icon class on open (slide down) cover. It used only ifcover
set to true. Defailt isfa 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 isLoader.load();
.
Usage
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',
],
// ...
]);
Licence
Yii2-seznammap is under MIT licence. See the LICENSE
for details.