|
@@ 769-779 (lines=11) @@
|
| 766 |
|
|
| 767 |
|
if ($circle['radius'] > 0 && $circle['center'] != "") { |
| 768 |
|
$lat_long_to_push = ''; |
| 769 |
|
if ($this->is_lat_long($circle['center'])) { |
| 770 |
|
$lat_long_to_push = $circle['center']; |
| 771 |
|
$circle_output = ' |
| 772 |
|
var circleCenter = new google.maps.LatLng('.$circle['center'].') |
| 773 |
|
'; |
| 774 |
|
} else { |
| 775 |
|
$lat_long = $this->get_lat_long_from_address($circle['center']); |
| 776 |
|
$circle_output = ' |
| 777 |
|
var circleCenter = new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].')'; |
| 778 |
|
$lat_long_to_push = $lat_long[0].', '.$lat_long[1]; |
| 779 |
|
} |
| 780 |
|
$circle_output .= ' |
| 781 |
|
lat_longs_'.$this->map_name.'.push(new google.maps.LatLng('.$lat_long_to_push.')); |
| 782 |
|
'; |
|
@@ 900-910 (lines=11) @@
|
| 897 |
|
|
| 898 |
|
if ($rectangle['positionSW'] != "" && $rectangle['positionNE'] != "") { |
| 899 |
|
$lat_long_to_push = ''; |
| 900 |
|
if ($this->is_lat_long($rectangle['positionSW'])) { |
| 901 |
|
$lat_long_to_push = $rectangle['positionSW']; |
| 902 |
|
$rectangle_output .= ' |
| 903 |
|
var positionSW = new google.maps.LatLng('.$rectangle['positionSW'].') |
| 904 |
|
'; |
| 905 |
|
} else { |
| 906 |
|
$lat_long = $this->get_lat_long_from_address($rectangle['positionSW']); |
| 907 |
|
$rectangle_output .= ' |
| 908 |
|
var positionSW = new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].')'; |
| 909 |
|
$lat_long_to_push = $lat_long[0].', '.$lat_long[1]; |
| 910 |
|
} |
| 911 |
|
$rectangle_output .= ' |
| 912 |
|
lat_longs_'.$this->map_name.'.push(new google.maps.LatLng('.$lat_long_to_push.')); |
| 913 |
|
'; |
|
@@ 916-926 (lines=11) @@
|
| 913 |
|
'; |
| 914 |
|
|
| 915 |
|
$lat_long_to_push = ''; |
| 916 |
|
if ($this->is_lat_long($rectangle['positionNE'])) { |
| 917 |
|
$lat_long_to_push = $rectangle['positionNE']; |
| 918 |
|
$rectangle_output .= ' |
| 919 |
|
var positionNE = new google.maps.LatLng('.$rectangle['positionNE'].') |
| 920 |
|
'; |
| 921 |
|
} else { |
| 922 |
|
$lat_long = $this->get_lat_long_from_address($rectangle['positionNE']); |
| 923 |
|
$rectangle_output .= ' |
| 924 |
|
var positionNE = new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].')'; |
| 925 |
|
$lat_long_to_push = $lat_long[0].', '.$lat_long[1]; |
| 926 |
|
} |
| 927 |
|
$rectangle_output .= ' |
| 928 |
|
lat_longs_'.$this->map_name.'.push(new google.maps.LatLng('.$lat_long_to_push.')); |
| 929 |
|
'; |
|
@@ 1036-1046 (lines=11) @@
|
| 1033 |
|
|
| 1034 |
|
if ($overlay['image'] != "" && $overlay['positionSW'] != "" && $overlay['positionNE'] != "") { |
| 1035 |
|
$lat_long_to_push = ''; |
| 1036 |
|
if ($this->is_lat_long($overlay['positionSW'])) { |
| 1037 |
|
$lat_long_to_push = $overlay['positionSW']; |
| 1038 |
|
$overlay_output .= ' |
| 1039 |
|
var positionSW = new google.maps.LatLng('.$overlay['positionSW'].') |
| 1040 |
|
'; |
| 1041 |
|
} else { |
| 1042 |
|
$lat_long = $this->get_lat_long_from_address($overlay['positionSW']); |
| 1043 |
|
$overlay_output .= ' |
| 1044 |
|
var positionSW = new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].')'; |
| 1045 |
|
$lat_long_to_push = $lat_long[0].', '.$lat_long[1]; |
| 1046 |
|
} |
| 1047 |
|
$overlay_output .= ' |
| 1048 |
|
lat_longs_'.$this->map_name.'.push(new google.maps.LatLng('.$lat_long_to_push.')); |
| 1049 |
|
'; |
|
@@ 1052-1062 (lines=11) @@
|
| 1049 |
|
'; |
| 1050 |
|
|
| 1051 |
|
$lat_long_to_push = ''; |
| 1052 |
|
if ($this->is_lat_long($overlay['positionNE'])) { |
| 1053 |
|
$lat_long_to_push = $overlay['positionNE']; |
| 1054 |
|
$overlay_output .= ' |
| 1055 |
|
var positionNE = new google.maps.LatLng('.$overlay['positionNE'].') |
| 1056 |
|
'; |
| 1057 |
|
} else { |
| 1058 |
|
$lat_long = $this->get_lat_long_from_address($overlay['positionNE']); |
| 1059 |
|
$overlay_output .= ' |
| 1060 |
|
var positionNE = new google.maps.LatLng('.$lat_long[0].', '.$lat_long[1].')'; |
| 1061 |
|
$lat_long_to_push = $lat_long[0].', '.$lat_long[1]; |
| 1062 |
|
} |
| 1063 |
|
$overlay_output .= ' |
| 1064 |
|
lat_longs_'.$this->map_name.'.push(new google.maps.LatLng('.$lat_long_to_push.')); |
| 1065 |
|
'; |