示例#1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if (Yii::$app->params['google.map.api.key']) {
         $this->js[] = 'https://maps.googleapis.com/maps/api/js?sensor=false&language=' . Yii::$app->language . '&key=' . Yii::$app->params['google.map.api.key'];
     } else {
         $this->js[] = 'https://maps.googleapis.com/maps/api/js?sensor=false&language=' . Yii::$app->language;
     }
 }
示例#2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     //Icon::map(Yii::$app->getView(), Icon::FA);
 }