@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | public $sourcePath = "@cjtterabytesoft/widget/jvectormap/assets/maps/js"; |
| 26 | 26 | |
| 27 | - public function registerAssetFiles($view) { |
|
| 27 | + public function registerAssetFiles($view) { |
|
| 28 | 28 | parent::registerAssetFiles($view); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -203,8 +203,7 @@ |
||
| 203 | 203 | $this->jvname = $this->jvname . str_replace('_', '-', $this->map) . ".js"; |
| 204 | 204 | if (file_exists(yii::getAlias((!$this->maptype ? $this->jvpath : $this->jvpathcustom) . $this->jvname))) { |
| 205 | 205 | JvectorMapAsset::register(Yii::$app->view); |
| 206 | - $this->bundle = !$this->maptype ? MapAsset::register(Yii::$app->view) : |
|
| 207 | - MapCustomAsset::register(Yii::$app->view); |
|
| 206 | + $this->bundle = !$this->maptype ? MapAsset::register(Yii::$app->view) : MapCustomAsset::register(Yii::$app->view); |
|
| 208 | 207 | $this->bundle->js[] = $this->jvname; // dynamic map added |
| 209 | 208 | $this->bundle->publishOptions[] = [ |
| 210 | 209 | 'only' => [ |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | public $sourcePath = '@webroot/maps/js'; |
| 26 | 26 | |
| 27 | - public function registerAssetFiles($view) { |
|
| 27 | + public function registerAssetFiles($view) { |
|
| 28 | 28 | parent::registerAssetFiles($view); |
| 29 | 29 | } |
| 30 | 30 | |