@@ 1699-1706 (lines=8) @@ | ||
1696 | '; |
|
1697 | $autocompleteOptions = ''; |
|
1698 | if ($this->placesAutocompleteBoundSW != "" && $this->placesAutocompleteBoundNE != "") { |
|
1699 | if ($this->is_lat_long($this->placesAutocompleteBoundSW)) { |
|
1700 | $autocompleteOptionsSW = 'new google.maps.LatLng('.$this->placesAutocompleteBoundSW.') |
|
1701 | '; |
|
1702 | } else { // if centering the map on an address |
|
1703 | $lat_long = $this->get_lat_long_from_address($this->placesAutocompleteBoundSW); |
|
1704 | $autocompleteOptionsSW = 'new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].') |
|
1705 | '; |
|
1706 | } |
|
1707 | ||
1708 | if ($this->is_lat_long($this->placesAutocompleteBoundNE)) { |
|
1709 | $autocompleteOptionsNE = 'new google.maps.LatLng('.$this->placesAutocompleteBoundNE.') |
|
@@ 1708-1715 (lines=8) @@ | ||
1705 | '; |
|
1706 | } |
|
1707 | ||
1708 | if ($this->is_lat_long($this->placesAutocompleteBoundNE)) { |
|
1709 | $autocompleteOptionsNE = 'new google.maps.LatLng('.$this->placesAutocompleteBoundNE.') |
|
1710 | '; |
|
1711 | } else { // if centering the map on an address |
|
1712 | $lat_long = $this->get_lat_long_from_address($this->placesAutocompleteBoundNE); |
|
1713 | $autocompleteOptionsNE = 'new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].') |
|
1714 | '; |
|
1715 | } |
|
1716 | $autocompleteOptions .= 'bounds: new google.maps.LatLngBounds('.$autocompleteOptionsSW.', '.$autocompleteOptionsNE.')'; |
|
1717 | } |
|
1718 | if (count($this->placesAutocompleteTypes)) { |