@@ -49,11 +49,11 @@ |
||
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * @param array $position |
|
| 53 | - * @param boolean $animation |
|
| 54 | - * @param String $title |
|
| 55 | - * @return Markers |
|
| 56 | - */ |
|
| 52 | + * @param array $position |
|
| 53 | + * @param boolean $animation |
|
| 54 | + * @param String $title |
|
| 55 | + * @return Markers |
|
| 56 | + */ |
|
| 57 | 57 | public function addMarker(array $position, $animation = false, $title = null) |
| 58 | 58 | { |
| 59 | 59 | if (!is_string($animation) && !is_bool($animation)) |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2015 Petr Olišar (http://olisar.eu) |
|
| 4 | - * |
|
| 5 | - * For the full copyright and license information, please view |
|
| 6 | - * the file LICENSE.md that was distributed with this source code. |
|
| 7 | - */ |
|
| 3 | + * Copyright (c) 2015 Petr Olišar (http://olisar.eu) |
|
| 4 | + * |
|
| 5 | + * For the full copyright and license information, please view |
|
| 6 | + * the file LICENSE.md that was distributed with this source code. |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Oli\GoogleAPI; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2015 Petr Olišar (http://olisar.eu) |
|
| 4 | - * |
|
| 5 | - * For the full copyright and license information, please view |
|
| 6 | - * the file LICENSE.md that was distributed with this source code. |
|
| 7 | - */ |
|
| 3 | + * Copyright (c) 2015 Petr Olišar (http://olisar.eu) |
|
| 4 | + * |
|
| 5 | + * For the full copyright and license information, please view |
|
| 6 | + * the file LICENSE.md that was distributed with this source code. |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Oli\GoogleAPI; |
| 10 | 10 | |
@@ -18,21 +18,21 @@ |
||
| 18 | 18 | { |
| 19 | 19 | |
| 20 | 20 | public $defaults = array( |
| 21 | - 'key' => null, |
|
| 22 | - 'width' => '100%', |
|
| 23 | - 'height' => '100%', |
|
| 24 | - 'zoom' => 7, |
|
| 25 | - 'coordinates' => array(), |
|
| 26 | - 'type' => 'ROADMAP', |
|
| 27 | - 'scrollable' => true, |
|
| 28 | - 'static' => false, |
|
| 29 | - 'markers' => array( |
|
| 21 | + 'key' => null, |
|
| 22 | + 'width' => '100%', |
|
| 23 | + 'height' => '100%', |
|
| 24 | + 'zoom' => 7, |
|
| 25 | + 'coordinates' => array(), |
|
| 26 | + 'type' => 'ROADMAP', |
|
| 27 | + 'scrollable' => true, |
|
| 28 | + 'static' => false, |
|
| 29 | + 'markers' => array( |
|
| 30 | 30 | 'bound' => false, |
| 31 | 31 | 'markerClusterer' => false, |
| 32 | 32 | 'iconDefaultPath' => null, |
| 33 | 33 | 'icon' => null, |
| 34 | 34 | 'addMarkers' => array() |
| 35 | - ) |
|
| 35 | + ) |
|
| 36 | 36 | ); |
| 37 | 37 | |
| 38 | 38 | |
@@ -330,8 +330,8 @@ discard block |
||
| 330 | 330 | |
| 331 | 331 | |
| 332 | 332 | /** |
| 333 | - * @see Nette\Application\Control#render() |
|
| 334 | - */ |
|
| 333 | + * @see Nette\Application\Control#render() |
|
| 334 | + */ |
|
| 335 | 335 | public function render() |
| 336 | 336 | { |
| 337 | 337 | if ($this->staticMap) |
@@ -346,16 +346,16 @@ discard block |
||
| 346 | 346 | } else |
| 347 | 347 | { |
| 348 | 348 | $map = array( |
| 349 | - 'position' => $this->coordinates, |
|
| 350 | - 'height' => $this->height, |
|
| 351 | - 'width' => $this->width, |
|
| 352 | - 'zoom' => $this->zoom, |
|
| 353 | - 'type' => $this->type, |
|
| 354 | - 'scrollable' => $this->scrollable, |
|
| 355 | - 'key' => $this->key, |
|
| 356 | - 'bound' => $this->bound, |
|
| 357 | - 'cluster' => $this->markerClusterer, |
|
| 358 | - 'waypoint' => !is_null($this->waypoints) ? array_merge($this->waypoints, $this->direction) : NULL |
|
| 349 | + 'position' => $this->coordinates, |
|
| 350 | + 'height' => $this->height, |
|
| 351 | + 'width' => $this->width, |
|
| 352 | + 'zoom' => $this->zoom, |
|
| 353 | + 'type' => $this->type, |
|
| 354 | + 'scrollable' => $this->scrollable, |
|
| 355 | + 'key' => $this->key, |
|
| 356 | + 'bound' => $this->bound, |
|
| 357 | + 'cluster' => $this->markerClusterer, |
|
| 358 | + 'waypoint' => !is_null($this->waypoints) ? array_merge($this->waypoints, $this->direction) : NULL |
|
| 359 | 359 | ); |
| 360 | 360 | $this->template->map = \Nette\Utils\Json::encode($map); |
| 361 | 361 | $this->template->setFile(dirname(__FILE__) . '/template.latte'); |