public function registerClientScript($position = View::POS_END) { $view = Yii::$app->getView(); MapAsset::register($view); $view->registerJs($this->getJs(), $position); }