@@ -666,6 +666,11 @@ function geocodeAddress(address) {
666666 /**
667667 * Build directions form (type get) for directions inside infoWindows
668668 *
669+ * Options for directions (if array)
670+ * - label
671+ * - submit
672+ * - escape: defaults to true
673+ *
669674 * @param mixed $directions
670675 * - bool TRUE for autoDirections (using lat/lng)
671676 * @param array $markerOptions
@@ -1314,6 +1319,7 @@ public function mapLink($title, $mapOptions = [], $linkOptions = []) {
13141319 * - to: 1x necessary (address or lat,lng - can be an array of multiple destinations: array('dest1', 'dest2'))
13151320 * - zoom: optional (defaults to none)
13161321 * - query: Additional query strings as array
1322+ * - escape: defaults to true
13171323 *
13181324 * @param array $options Options
13191325 * @return string link: http://...
@@ -1397,6 +1403,9 @@ public function staticMapLink($title, $mapOptions = [], $linkOptions = []) {
13971403 /**
13981404 * Creates a URL to a plain image map.
13991405 *
1406+ * Options:
1407+ * - escape: defaults to true
1408+ *
14001409 * @param array $options
14011410 * - see staticMap() for details
14021411 * @return string urlOfImage: http://...
@@ -1439,7 +1448,7 @@ public function staticMapUrl($options = []) {
14391448 $ params ['visible ' ] = urlencode ($ mapOptions ['visible ' ]);
14401449 }
14411450
1442- // center and zoom are not necccessary if path, visible or markers are given
1451+ // center and zoom are not necessary if path, visible or markers are given
14431452 if (!isset ($ options ['center ' ]) || $ options ['center ' ] === false ) {
14441453 // dont use it
14451454 } elseif ($ options ['center ' ] === true && $ mapOptions ['lat ' ] !== null && $ mapOptions ['lng ' ] !== null ) {
0 commit comments