Skip to content

Commit

Permalink
Docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Mar 3, 2017
1 parent af9db33 commit 8884c8f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/View/Helper/GoogleMapHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,11 @@ function geocodeAddress(address) {
/**
* Build directions form (type get) for directions inside infoWindows
*
* Options for directions (if array)
* - label
* - submit
* - escape: defaults to true
*
* @param mixed $directions
* - bool TRUE for autoDirections (using lat/lng)
* @param array $markerOptions
Expand Down Expand Up @@ -1314,6 +1319,7 @@ public function mapLink($title, $mapOptions = [], $linkOptions = []) {
* - to: 1x necessary (address or lat,lng - can be an array of multiple destinations: array('dest1', 'dest2'))
* - zoom: optional (defaults to none)
* - query: Additional query strings as array
* - escape: defaults to true
*
* @param array $options Options
* @return string link: http://...
Expand Down Expand Up @@ -1397,6 +1403,9 @@ public function staticMapLink($title, $mapOptions = [], $linkOptions = []) {
/**
* Creates a URL to a plain image map.
*
* Options:
* - escape: defaults to true
*
* @param array $options
* - see staticMap() for details
* @return string urlOfImage: http://...
Expand Down Expand Up @@ -1439,7 +1448,7 @@ public function staticMapUrl($options = []) {
$params['visible'] = urlencode($mapOptions['visible']);
}

// center and zoom are not necccessary if path, visible or markers are given
// center and zoom are not necessary if path, visible or markers are given
if (!isset($options['center']) || $options['center'] === false) {
// dont use it
} elseif ($options['center'] === true && $mapOptions['lat'] !== null && $mapOptions['lng'] !== null) {
Expand Down

0 comments on commit 8884c8f

Please sign in to comment.