@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | * |
| 154 | 154 | * @param string $googleMapKey the googleMapKey |
| 155 | 155 | * |
| 156 | - * @return void |
|
| 156 | + * @return MapAPI |
|
| 157 | 157 | */ |
| 158 | 158 | |
| 159 | 159 | public function setKey($googleMapKey) { |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | * |
| 395 | 395 | * @param boolean $defaultHideMarker hide all the markers on the map by default |
| 396 | 396 | * |
| 397 | - * @return void |
|
| 397 | + * @return MapAPI |
|
| 398 | 398 | */ |
| 399 | 399 | |
| 400 | 400 | public function setDefaultHideMarker($defaultHideMarker) { |
@@ -439,7 +439,7 @@ discard block |
||
| 439 | 439 | * |
| 440 | 440 | * @param string $address an address |
| 441 | 441 | * |
| 442 | - * @return array array with precision, lat & lng |
|
| 442 | + * @return string array with precision, lat & lng |
|
| 443 | 443 | */ |
| 444 | 444 | |
| 445 | 445 | public function geocoding($address) { |
@@ -468,7 +468,7 @@ discard block |
||
| 468 | 468 | * @param string $category marker category |
| 469 | 469 | * @param string $icon an icon url |
| 470 | 470 | * |
| 471 | - * @return void |
|
| 471 | + * @return MapAPI |
|
| 472 | 472 | */ |
| 473 | 473 | |
| 474 | 474 | public function addMarkerByCoords($lat, $lng, $html = '', $category = '', $icon = '') { |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | * @param string $category marker category |
| 493 | 493 | * @param string $icon an icon url |
| 494 | 494 | * |
| 495 | - * @return void |
|
| 495 | + * @return MapAPI |
|
| 496 | 496 | */ |
| 497 | 497 | |
| 498 | 498 | public function addMarkerByAddress($address, $content = '', $category = '', $icon = '') { |
@@ -510,7 +510,7 @@ discard block |
||
| 510 | 510 | * @param string $category marker category |
| 511 | 511 | * @param string $icon an icon url |
| 512 | 512 | * |
| 513 | - * @return void |
|
| 513 | + * @return MapAPI |
|
| 514 | 514 | */ |
| 515 | 515 | |
| 516 | 516 | public function addArrayMarkerByCoords($coordtab, $category = '', $icon = '') { |
@@ -593,7 +593,7 @@ discard block |
||
| 593 | 593 | * @param string $category marker category |
| 594 | 594 | * @param string $icon an icon url |
| 595 | 595 | * |
| 596 | - * @return void |
|
| 596 | + * @return MapAPI |
|
| 597 | 597 | */ |
| 598 | 598 | |
| 599 | 599 | public function addArrayMarkerByAddress($coordtab, $category = '', $icon = '') { |
@@ -608,7 +608,7 @@ discard block |
||
| 608 | 608 | * |
| 609 | 609 | * @param string $url url of the kml file compatible with gmap and gearth |
| 610 | 610 | * |
| 611 | - * @return void |
|
| 611 | + * @return MapAPI |
|
| 612 | 612 | */ |
| 613 | 613 | |
| 614 | 614 | public function addKML($url) { |
@@ -755,6 +755,10 @@ discard block |
||
| 755 | 755 | $this->content = $this->processTemplateHTML('Map', $vars); |
| 756 | 756 | } |
| 757 | 757 | |
| 758 | + /** |
|
| 759 | + * @param string $templateName |
|
| 760 | + * @param ArrayData $templateVariables |
|
| 761 | + */ |
|
| 758 | 762 | function processTemplateHTML($templateName, $templateVariables = null) { |
| 759 | 763 | if (!$templateVariables) { |
| 760 | 764 | $templateVariables = new ArrayList(); |
@@ -185,6 +185,9 @@ |
||
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | |
| 188 | + /** |
|
| 189 | + * @param Member $instance |
|
| 190 | + */ |
|
| 188 | 191 | private function addMapPinToInstance(&$instance) { |
| 189 | 192 | // Create a pin |
| 190 | 193 | $imageFile = new Image(array('Name' => 'mapicontest.png', 'Filename' => 'mappable/tests/images/mapicontest.png')); |