Commit d17c0a15930ad0837954cb4ababa89183bb7352e
1 parent
9b0d0da0
bugfix
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
frontend/views/site/index.php
| ... | ... | @@ -24,11 +24,15 @@ $settings = Settings::getInstance(); |
| 24 | 24 | |
| 25 | 25 | $module=\Yii::$app->getModule('contact'); |
| 26 | 26 | $moduleRequest=\Yii::$app->getModule('request_1'); |
| 27 | -$this->registerJsFile("@web/js/markerclusterer", | |
| 27 | +$this->registerJsFile("http://maps.googleapis.com/maps/api/js?key=AIzaSyCoR1Jb-mIFUjPwKiuSlmtYBEwnJOBnAgg", | |
| 28 | 28 | [ |
| 29 | 29 | 'depends' => ["\\frontend\assets\AppAsset"] |
| 30 | 30 | ]); |
| 31 | -$this->registerJsFile("@web/js/js/map", | |
| 31 | +$this->registerJsFile("@web/js/markerclusterer.js", | |
| 32 | + [ | |
| 33 | + 'depends' => ["\\frontend\assets\AppAsset"] | |
| 34 | + ]); | |
| 35 | +$this->registerJsFile("@web/js/map.js", | |
| 32 | 36 | [ |
| 33 | 37 | 'depends' => ["\\frontend\assets\AppAsset"] |
| 34 | 38 | ]); |
| ... | ... | @@ -39,8 +43,6 @@ $this->registerJsFile("@web/js/js/map", |
| 39 | 43 | |
| 40 | 44 | ?> |
| 41 | 45 | |
| 42 | -<!-- <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyCoR1Jb-mIFUjPwKiuSlmtYBEwnJOBnAgg"></script>--> | |
| 43 | - | |
| 44 | 46 | |
| 45 | 47 | |
| 46 | 48 | ... | ... |