@@ -16,9 +16,9 @@ |
||
| 16 | 16 | class OpenLayers extends Widget |
| 17 | 17 | { |
| 18 | 18 | /** |
| 19 | - * @var array the HTML attributes for the container div of this widget. |
|
| 20 | - * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. |
|
| 21 | - */ |
|
| 19 | + * @var array the HTML attributes for the container div of this widget. |
|
| 20 | + * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. |
|
| 21 | + */ |
|
| 22 | 22 | public $options = []; |
| 23 | 23 | /** |
| 24 | 24 | * The properties to be passed to the OpenLayers Map() constructor. In order to ease passing complex javascript structures, some simplifications are supported. |
@@ -96,10 +96,10 @@ |
||
| 96 | 96 | if (is_string($options)) |
| 97 | 97 | $options = ['source' => new OL("source.$options")]; |
| 98 | 98 | |
| 99 | - $processedLayers []= new OL("layer.$type", $options); |
|
| 99 | + $processedLayers [] = new OL("layer.$type", $options); |
|
| 100 | 100 | } |
| 101 | 101 | else // Therefore $type is simply an integer array key |
| 102 | - $processedLayers []= $options; |
|
| 102 | + $processedLayers [] = $options; |
|
| 103 | 103 | } |
| 104 | 104 | $this->mapOptions['layers'] = $processedLayers; |
| 105 | 105 | } |
@@ -82,8 +82,8 @@ |
||
| 82 | 82 | return "new ol.$this->class($properties)"; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - public function __toString() { |
|
| 86 | - return $this->expression; |
|
| 87 | - } |
|
| 85 | + public function __toString() { |
|
| 86 | + return $this->expression; |
|
| 87 | + } |
|
| 88 | 88 | |
| 89 | 89 | } |
| 90 | 90 | \ No newline at end of file |