@@ -184,7 +184,7 @@ |
||
| 184 | 184 | |
| 185 | 185 | /** |
| 186 | 186 | * Access the map editing field for the purpose of adding guide points |
| 187 | - * @return [LatLongField] instance of location editing field |
|
| 187 | + * @return FormField instance of location editing field |
|
| 188 | 188 | */ |
| 189 | 189 | public function getMapField() { |
| 190 | 190 | if (!isset($this->mapField)) { |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | * |
| 164 | 164 | * @param string $googleMapKey the googleMapKey |
| 165 | 165 | * |
| 166 | - * @return void |
|
| 166 | + * @return MapAPI |
|
| 167 | 167 | */ |
| 168 | 168 | |
| 169 | 169 | public function setKey($googleMapKey) { |
@@ -171,6 +171,9 @@ discard block |
||
| 171 | 171 | return $this; |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | + /** |
|
| 175 | + * @param boolean $inclusion |
|
| 176 | + */ |
|
| 174 | 177 | public function setIncludeDownloadJavascript($inclusion) { |
| 175 | 178 | self::$include_download_javascript = $inclusion; |
| 176 | 179 | return $this; |
@@ -424,7 +427,7 @@ discard block |
||
| 424 | 427 | * |
| 425 | 428 | * @param boolean $defaultHideMarker hide all the markers on the map by default |
| 426 | 429 | * |
| 427 | - * @return void |
|
| 430 | + * @return MapAPI |
|
| 428 | 431 | */ |
| 429 | 432 | |
| 430 | 433 | public function setDefaultHideMarker($defaultHideMarker) { |
@@ -508,7 +511,7 @@ discard block |
||
| 508 | 511 | * @param string $category marker category |
| 509 | 512 | * @param string $icon an icon url |
| 510 | 513 | * |
| 511 | - * @return void |
|
| 514 | + * @return MapAPI |
|
| 512 | 515 | */ |
| 513 | 516 | |
| 514 | 517 | public function addMarkerByCoords($lat, $lng, $html = '', $category = '', $icon = '') { |
@@ -532,7 +535,7 @@ discard block |
||
| 532 | 535 | * @param string $category marker category |
| 533 | 536 | * @param string $icon an icon url |
| 534 | 537 | * |
| 535 | - * @return void |
|
| 538 | + * @return MapAPI |
|
| 536 | 539 | */ |
| 537 | 540 | |
| 538 | 541 | public function addMarkerByAddress($address, $content = '', $category = '', $icon = '') { |
@@ -550,7 +553,7 @@ discard block |
||
| 550 | 553 | * @param string $category marker category |
| 551 | 554 | * @param string $icon an icon url |
| 552 | 555 | * |
| 553 | - * @return void |
|
| 556 | + * @return MapAPI |
|
| 554 | 557 | */ |
| 555 | 558 | |
| 556 | 559 | public function addArrayMarkerByCoords($coordtab, $category = '', $icon = '') { |
@@ -631,7 +634,7 @@ discard block |
||
| 631 | 634 | * @param string $category marker category |
| 632 | 635 | * @param string $icon an icon url |
| 633 | 636 | * |
| 634 | - * @return void |
|
| 637 | + * @return MapAPI |
|
| 635 | 638 | */ |
| 636 | 639 | |
| 637 | 640 | public function addArrayMarkerByAddress($coordtab, $category = '', $icon = '') { |
@@ -660,7 +663,7 @@ discard block |
||
| 660 | 663 | * |
| 661 | 664 | * @param string $url url of the kml file compatible with gmap and gearth |
| 662 | 665 | * |
| 663 | - * @return void |
|
| 666 | + * @return MapAPI |
|
| 664 | 667 | */ |
| 665 | 668 | |
| 666 | 669 | public function addKML($url) { |
@@ -814,6 +817,10 @@ discard block |
||
| 814 | 817 | return $result; |
| 815 | 818 | } |
| 816 | 819 | |
| 820 | + /** |
|
| 821 | + * @param string $templateName |
|
| 822 | + * @param ArrayData $templateVariables |
|
| 823 | + */ |
|
| 817 | 824 | function processTemplateHTML($templateName, $templateVariables = null) { |
| 818 | 825 | if (!$templateVariables) { |
| 819 | 826 | $templateVariables = new ArrayList(); |