@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | * |
| 213 | 213 | * @param string $googleMapKey the googleMapKey |
| 214 | 214 | * |
| 215 | - * @return void |
|
| 215 | + * @return MapAPI |
|
| 216 | 216 | */ |
| 217 | 217 | |
| 218 | 218 | public function setKey($googleMapKey) { |
@@ -220,6 +220,9 @@ discard block |
||
| 220 | 220 | return $this; |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | + /** |
|
| 224 | + * @param boolean $inclusion |
|
| 225 | + */ |
|
| 223 | 226 | public function setIncludeDownloadJavascript($inclusion) { |
| 224 | 227 | self::$include_download_javascript = $inclusion; |
| 225 | 228 | return $this; |
@@ -253,13 +256,9 @@ discard block |
||
| 253 | 256 | * Set the useClusterer parameter (optimization to display a lot of marker) |
| 254 | 257 | * |
| 255 | 258 | * @param boolean $useClusterer use cluster or not |
| 256 | - * @param string $clusterIcon the cluster icon |
|
| 257 | - * @param int $maxVisibleMarkers max visible markers |
|
| 258 | 259 | * @param int $gridSize grid size |
| 259 | - * @param int $minMarkersPerClusterer minMarkersPerClusterer |
|
| 260 | - * @param int $maxLinesPerInfoBox maxLinesPerInfoBox |
|
| 261 | 260 | * |
| 262 | - * @return void |
|
| 261 | + * @return MapAPI |
|
| 263 | 262 | */ |
| 264 | 263 | |
| 265 | 264 | public function setClusterer($useClusterer, $gridSize=50, $maxZoom=17, |
@@ -276,7 +275,7 @@ discard block |
||
| 276 | 275 | * |
| 277 | 276 | * @param string $googleMapId the google div ID |
| 278 | 277 | * |
| 279 | - * @return void |
|
| 278 | + * @return MapAPI |
|
| 280 | 279 | */ |
| 281 | 280 | |
| 282 | 281 | public function setDivId($googleMapId) { |
@@ -289,7 +288,7 @@ discard block |
||
| 289 | 288 | * |
| 290 | 289 | * @param string $googleMapDirectionId GoogleMap Direction ID for the HTML DIV |
| 291 | 290 | * |
| 292 | - * @return void |
|
| 291 | + * @return MapAPI |
|
| 293 | 292 | */ |
| 294 | 293 | |
| 295 | 294 | public function setDirectionDivId($googleMapDirectionId) { |
@@ -304,7 +303,7 @@ discard block |
||
| 304 | 303 | * @param int $width GoogleMap width |
| 305 | 304 | * @param int $height GoogleMap height |
| 306 | 305 | * |
| 307 | - * @return void |
|
| 306 | + * @return MapAPI |
|
| 308 | 307 | */ |
| 309 | 308 | |
| 310 | 309 | public function setSize($width, $height) { |
@@ -320,7 +319,7 @@ discard block |
||
| 320 | 319 | * @param int $iconWidth GoogleMap marker icon width |
| 321 | 320 | * @param int $iconHeight GoogleMap marker icon height |
| 322 | 321 | * |
| 323 | - * @return void |
|
| 322 | + * @return MapAPI |
|
| 324 | 323 | */ |
| 325 | 324 | |
| 326 | 325 | public function setIconSize($iconWidth, $iconHeight) { |
@@ -334,7 +333,7 @@ discard block |
||
| 334 | 333 | * |
| 335 | 334 | * @param string $lang GoogleMap lang : fr,en,.. |
| 336 | 335 | * |
| 337 | - * @return void |
|
| 336 | + * @return MapAPI |
|
| 338 | 337 | */ |
| 339 | 338 | |
| 340 | 339 | public function setLang($lang) { |
@@ -347,7 +346,7 @@ discard block |
||
| 347 | 346 | * |
| 348 | 347 | * @param int $zoom GoogleMap zoom. |
| 349 | 348 | * |
| 350 | - * @return void |
|
| 349 | + * @return MapAPI |
|
| 351 | 350 | */ |
| 352 | 351 | |
| 353 | 352 | public function setZoom($zoom) { |
@@ -358,9 +357,8 @@ discard block |
||
| 358 | 357 | /** |
| 359 | 358 | * Set the zoom of the infowindow |
| 360 | 359 | * |
| 361 | - * @param int $zoom GoogleMap zoom. |
|
| 362 | 360 | * |
| 363 | - * @return void |
|
| 361 | + * @return MapAPI |
|
| 364 | 362 | */ |
| 365 | 363 | |
| 366 | 364 | public function setInfoWindowZoom($infoWindowZoom) { |
@@ -371,9 +369,8 @@ discard block |
||
| 371 | 369 | /** |
| 372 | 370 | * Enable the zoom on the marker when you click on it |
| 373 | 371 | * |
| 374 | - * @param int $zoom GoogleMap zoom. |
|
| 375 | 372 | * |
| 376 | - * @return void |
|
| 373 | + * @return MapAPI |
|
| 377 | 374 | */ |
| 378 | 375 | |
| 379 | 376 | public function setEnableWindowZoom($enableWindowZoom) { |
@@ -384,9 +381,9 @@ discard block |
||
| 384 | 381 | /** |
| 385 | 382 | * Enable theautomatic center/zoom at the gmap load |
| 386 | 383 | * |
| 387 | - * @param int $zoom GoogleMap zoom. |
|
| 388 | 384 | * |
| 389 | - * @return void |
|
| 385 | + * @param boolean $enableAutomaticCenterZoom |
|
| 386 | + * @return MapAPI |
|
| 390 | 387 | */ |
| 391 | 388 | |
| 392 | 389 | public function setEnableAutomaticCenterZoom($enableAutomaticCenterZoom) { |
@@ -399,7 +396,7 @@ discard block |
||
| 399 | 396 | * |
| 400 | 397 | * @param string $center GoogleMap center (an address) |
| 401 | 398 | * |
| 402 | - * @return void |
|
| 399 | + * @return MapAPI |
|
| 403 | 400 | */ |
| 404 | 401 | |
| 405 | 402 | public function setCenter($center) { |
@@ -412,7 +409,7 @@ discard block |
||
| 412 | 409 | * |
| 413 | 410 | * @param string $mapType Can be one of road,satellite,hybrid or terrain. Defaults to road |
| 414 | 411 | * |
| 415 | - * @return void |
|
| 412 | + * @return MapAPI |
|
| 416 | 413 | */ |
| 417 | 414 | |
| 418 | 415 | public function setMapType($mapType) { |
@@ -458,7 +455,7 @@ discard block |
||
| 458 | 455 | * |
| 459 | 456 | * @param boolean $displayDirectionFields display directions or not in the info window |
| 460 | 457 | * |
| 461 | - * @return void |
|
| 458 | + * @return MapAPI |
|
| 462 | 459 | */ |
| 463 | 460 | |
| 464 | 461 | public function setDisplayDirectionFields($displayDirectionFields) { |
@@ -471,7 +468,7 @@ discard block |
||
| 471 | 468 | * |
| 472 | 469 | * @param boolean $defaultHideMarker hide all the markers on the map by default |
| 473 | 470 | * |
| 474 | - * @return void |
|
| 471 | + * @return MapAPI |
|
| 475 | 472 | */ |
| 476 | 473 | |
| 477 | 474 | public function setDefaultHideMarker($defaultHideMarker) { |
@@ -555,7 +552,7 @@ discard block |
||
| 555 | 552 | * @param string $category marker category |
| 556 | 553 | * @param string $icon an icon url |
| 557 | 554 | * |
| 558 | - * @return void |
|
| 555 | + * @return MapAPI |
|
| 559 | 556 | */ |
| 560 | 557 | |
| 561 | 558 | public function addMarkerByCoords($lat, $lng, $html='', $category='', $icon='') { |
@@ -579,7 +576,7 @@ discard block |
||
| 579 | 576 | * @param string $category marker category |
| 580 | 577 | * @param string $icon an icon url |
| 581 | 578 | * |
| 582 | - * @return void |
|
| 579 | + * @return MapAPI |
|
| 583 | 580 | */ |
| 584 | 581 | |
| 585 | 582 | public function addMarkerByAddress($address, $content='', $category='', $icon='') { |
@@ -599,7 +596,7 @@ discard block |
||
| 599 | 596 | * @param string $category marker category |
| 600 | 597 | * @param string $icon an icon url |
| 601 | 598 | * |
| 602 | - * @return void |
|
| 599 | + * @return MapAPI |
|
| 603 | 600 | */ |
| 604 | 601 | |
| 605 | 602 | public function addArrayMarkerByCoords($coordtab, $category='', $icon='') { |
@@ -681,7 +678,7 @@ discard block |
||
| 681 | 678 | * @param string $category marker category |
| 682 | 679 | * @param string $icon an icon url |
| 683 | 680 | * |
| 684 | - * @return void |
|
| 681 | + * @return MapAPI |
|
| 685 | 682 | */ |
| 686 | 683 | |
| 687 | 684 | public function addArrayMarkerByAddress($coordtab, $category='', $icon='') { |
@@ -710,7 +707,7 @@ discard block |
||
| 710 | 707 | * |
| 711 | 708 | * @param string $url url of the kml file compatible with gmap and gearth |
| 712 | 709 | * |
| 713 | - * @return void |
|
| 710 | + * @return MapAPI |
|
| 714 | 711 | */ |
| 715 | 712 | |
| 716 | 713 | public function addKML($url) { |
@@ -870,6 +867,10 @@ discard block |
||
| 870 | 867 | return $result; |
| 871 | 868 | } |
| 872 | 869 | |
| 870 | + /** |
|
| 871 | + * @param string $templateName |
|
| 872 | + * @param ArrayData $templateVariables |
|
| 873 | + */ |
|
| 873 | 874 | function processTemplateHTML($templateName, $templateVariables = null ) { |
| 874 | 875 | if (!$templateVariables) { |
| 875 | 876 | $templateVariables = new ArrayList(); |
@@ -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)) { |
@@ -79,6 +79,9 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param boolean $new_map_already_rendered |
|
| 84 | + */ |
|
| 82 | 85 | public static function set_map_already_rendered($new_map_already_rendered) { |
| 83 | 86 | self::$map_already_rendered = $new_map_already_rendered; |
| 84 | 87 | } |
@@ -154,7 +157,7 @@ discard block |
||
| 154 | 157 | /** |
| 155 | 158 | * Get a new GoogleMapAPI object and load it with the default settings |
| 156 | 159 | * |
| 157 | - * @return GoogleMapAPI |
|
| 160 | + * @return MapAPI |
|
| 158 | 161 | */ |
| 159 | 162 | public static function instance() |
| 160 | 163 | { |
@@ -216,7 +219,6 @@ discard block |
||
| 216 | 219 | * and places all of the items in a {@link SS_List} |
| 217 | 220 | * e.g. {@link DataList} or {@link ArrayList} on the map |
| 218 | 221 | * |
| 219 | - * @param SS_List $set |
|
| 220 | 222 | * @return MapAPI |
| 221 | 223 | */ |
| 222 | 224 | public static function get_map(SS_List $list, $optionalinfowindowtemplatevalues) { |