Example #1
0
 /**
  * @param int $position
  */
 public function registerClientScript($position = View::POS_END)
 {
     $view = Yii::$app->getView();
     MapAsset::register($view);
     $view->registerJs($this->getJs(), $position);
 }
Example #2
0
 public function run()
 {
     MapAsset::register($this->getView());
     return $this->map->display();
 }