@@ -198,8 +198,7 @@ |
||
198 | 198 | $this->jvname = $this->jvname . str_replace('_', '-', $this->map) . ".js"; |
199 | 199 | if (file_exists(yii::getAlias((!$this->maptype ? $this->jvpath : $this->jvpathcustom) . $this->jvname))) { |
200 | 200 | JvectormapAsset::register(Yii::$app->view); |
201 | - $this->bundle = !$this->maptype ? MapAsset::register(Yii::$app->view) : |
|
202 | - MapcustomAsset::register(Yii::$app->view); |
|
201 | + $this->bundle = !$this->maptype ? MapAsset::register(Yii::$app->view) : MapcustomAsset::register(Yii::$app->view); |
|
203 | 202 | $this->bundle->js[] = $this->jvname; // dynamic map added |
204 | 203 | $this->bundle->publishOptions[] = [ |
205 | 204 | '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 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | public $sourcePath = "@cjtterabytesoft/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 |